bug
This commit is contained in:
@@ -13,6 +13,9 @@ instance.interceptors.request.use(config => {
|
|||||||
if (/AppCountryAlbum/.test(location.pathname)) {
|
if (/AppCountryAlbum/.test(location.pathname)) {
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
}
|
}
|
||||||
|
if (sessionStorage.getItem("prj") == "saas") {
|
||||||
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
|
}
|
||||||
if (!config.withoutToken && store.state.token) {
|
if (!config.withoutToken && store.state.token) {
|
||||||
config.headers["Authorization"] = store.state.token
|
config.headers["Authorization"] = store.state.token
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.emptyWrap {
|
.emptyWrap {
|
||||||
width: 100vw;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/online": {
|
"/online": {
|
||||||
"target": "http://192.168.1.34:19898",
|
"target": "https://test87xcxc.cunwuyun.cn",
|
||||||
"changeOrigin": true,
|
"changeOrigin": true,
|
||||||
"pathRewrite": {
|
"pathRewrite": {
|
||||||
"^/online": "/"
|
"^/online": "/"
|
||||||
@@ -53,7 +53,9 @@
|
|||||||
"target": "https://apis.map.qq.com",
|
"target": "https://apis.map.qq.com",
|
||||||
"changeOrigin": true,
|
"changeOrigin": true,
|
||||||
"secure": false,
|
"secure": false,
|
||||||
"ws": true
|
"pathRewrite": {
|
||||||
|
"^/online/tmap/": "/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -33,13 +33,13 @@
|
|||||||
<span>工作时长</span>
|
<span>工作时长</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-body">
|
<div class="table-body">
|
||||||
<div class="table-row" v-for="(item, index) in 10" :key="index">
|
<div class="table-row" v-for="(item, index) in list" :key="index">
|
||||||
<div class="table-row__left">
|
<div class="table-row__left">
|
||||||
<h2>陶白白</h2>
|
<h2><AiOpenData v-if="item.userId" type="userName" :openid="item.userId"></AiOpenData></h2>
|
||||||
<p>已上传1张</p>
|
<p>已上传{{ item.photoCount || 0 }}张</p>
|
||||||
</div>
|
</div>
|
||||||
<span>8:30-6:00</span>
|
<span>{{ item.workInTime }}-{{ item.workOutTime || '' }}</span>
|
||||||
<span>10.5小时</span>
|
<span>{{ item.workHours || 0 }}小时</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -114,6 +114,13 @@
|
|||||||
getList () {
|
getList () {
|
||||||
this.$http.post(`/api/appattendancerecord/alldetail?queryTime=${this.date.replace(/年|月/g, '-')}`).then(res => {
|
this.$http.post(`/api/appattendancerecord/alldetail?queryTime=${this.date.replace(/年|月/g, '-')}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
this.list = res.data.map(v => {
|
||||||
|
return {
|
||||||
|
...v,
|
||||||
|
workInTime: v.workInTime ? v.workInTime.split(' ')[1] : '',
|
||||||
|
workOutTime: v.workOutTime ? v.workOutTime.split(' ')[1] : ''
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
<image src="./images/fanhui.png" />
|
<image src="./images/fanhui.png" />
|
||||||
<span>返回</span>
|
<span>返回</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item" @click="back">
|
<!-- <div class="item" @click="share">
|
||||||
<image src="./images/fenxiang.png" />
|
<image src="./images/fenxiang.png" />
|
||||||
<span>分享</span>
|
<span>分享</span>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="item" @click="remove">
|
<div class="item" @click="remove">
|
||||||
<image src="./images/shanchu.png" />
|
<image src="./images/shanchu.png" />
|
||||||
<span>删除</span>
|
<span>删除</span>
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {mapActions} from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: 'Photo',
|
name: 'Photo',
|
||||||
|
|
||||||
@@ -37,12 +38,43 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapActions(['wxInvoke']),
|
||||||
|
|
||||||
back () {
|
back () {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
share () {
|
||||||
|
uni.showActionSheet({
|
||||||
|
itemList: ['分享', '微信分享'],
|
||||||
|
success: data => {
|
||||||
|
if (data.tapIndex === 0 || data.tapIndex === 1) {
|
||||||
|
if (data.tapIndex === 0) {
|
||||||
|
this.wxInvoke(['shareAppMessage', {
|
||||||
|
title: this.info.title,
|
||||||
|
desc: this.info.tableExplain,
|
||||||
|
link: this.linkUrl,
|
||||||
|
imgUrl: this.info.headPicture
|
||||||
|
}, () => {
|
||||||
|
this.isShow = false
|
||||||
|
}])
|
||||||
|
} else {
|
||||||
|
this.wxInvoke(['shareWechatMessage', {
|
||||||
|
title: this.info.title,
|
||||||
|
desc: this.info.tableExplain,
|
||||||
|
link: this.linkUrl,
|
||||||
|
imgUrl: this.info.headPicture
|
||||||
|
}, () => {
|
||||||
|
this.isShow = false
|
||||||
|
}])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
remove () {
|
remove () {
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
this.$http.post(`/api/appalbumphoto/delete?ids=${this.id}`).then(res => {
|
this.$http.post(`/api/appalbumphoto/delete?ids=${this.id}`).then(res => {
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
<span>张</span>
|
<span>张</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<AiEmpty v-if="!list.length"></AiEmpty>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
import Watermark6 from './components/watermark/Watermark6'
|
import Watermark6 from './components/watermark/Watermark6'
|
||||||
import Watermark7 from './components/watermark/Watermark7'
|
import Watermark7 from './components/watermark/Watermark7'
|
||||||
import Watermark8 from './components/watermark/Watermark8'
|
import Watermark8 from './components/watermark/Watermark8'
|
||||||
|
import { mapActions } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Watermark',
|
name: 'Watermark',
|
||||||
@@ -115,9 +116,17 @@
|
|||||||
this.height = uni.getSystemInfoSync().windowHeight
|
this.height = uni.getSystemInfoSync().windowHeight
|
||||||
|
|
||||||
this.getWatermarkList()
|
this.getWatermarkList()
|
||||||
|
|
||||||
|
this.getLocation()
|
||||||
|
|
||||||
|
this.$http.post('/api/appdvcpconfig/apiForward', 'https://apis.map.qq.com/ws/geocoder/v1/?location=39.984154,116.307490&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1').then(res => {
|
||||||
|
console.log(res)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapActions(['injectJWeixin']),
|
||||||
|
|
||||||
save () {
|
save () {
|
||||||
this.isHide = true
|
this.isHide = true
|
||||||
this.$loading()
|
this.$loading()
|
||||||
@@ -161,6 +170,27 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getLocation () {
|
||||||
|
this.injectJWeixin(['getLocation']).then(res => {
|
||||||
|
console.log(res)
|
||||||
|
wx.getLocation({
|
||||||
|
type: 'wgs84',
|
||||||
|
success: function (res) {
|
||||||
|
var lat = res.latitude
|
||||||
|
var lng = res.longitude
|
||||||
|
console.log(lat, lng)
|
||||||
|
this.$http.post('/api/appdvcpconfig/apiForward',
|
||||||
|
`https://apis.map.qq.com/ws/geocoder/v1/?location=${lat},${lng}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
|
||||||
|
console.log(res)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
error: res => {
|
||||||
|
console.log(res)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
dataURLtoFile (dataurl, filename) {
|
dataURLtoFile (dataurl, filename) {
|
||||||
let arr = dataurl.split(',')
|
let arr = dataurl.split(',')
|
||||||
let mime = arr[0].match(/:(.*?);/)[1]
|
let mime = arr[0].match(/:(.*?);/)[1]
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
save () {
|
save () {
|
||||||
for (let i = 0; i < this.config.length; i ++) {
|
for (let i = 0; i < this.config.length; i ++) {
|
||||||
if ((this.config[i].fieldType === '0' || this.config[i].fieldType === '1') && !this.config[i].defaultValue && this.config[i].status === '1') {
|
if (['2', '3', '4', '5'].indexOf(this.config[i].fieldType) === -1 && !this.config[i].defaultValue && this.config[i].status === '1') {
|
||||||
return this.$u.toast(`请输入${this.mapFieldLable(this.config[i].type)}`)
|
return this.$u.toast(`请输入${this.mapFieldLable(this.config[i].type)}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,6 +85,7 @@
|
|||||||
<span>张</span>
|
<span>张</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<AiEmpty v-if="!list.length && isMore"></AiEmpty>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -100,6 +101,7 @@
|
|||||||
photoTotal: {},
|
photoTotal: {},
|
||||||
date: '',
|
date: '',
|
||||||
list: [],
|
list: [],
|
||||||
|
isMore: false,
|
||||||
attendanceCount: {}
|
attendanceCount: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -157,6 +159,8 @@
|
|||||||
num: res.data[v]
|
num: res.data[v]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
this.isMore = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
this.week = new Date().getDay()
|
this.week = new Date().getDay()
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
this.getLocation()
|
// this.getLocation()
|
||||||
|
|
||||||
uni.$on('change', e => {
|
uni.$on('change', e => {
|
||||||
this.configList = e
|
this.configList = e
|
||||||
@@ -98,32 +98,21 @@
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['injectJWeixin']),
|
...mapActions(['injectJWeixin']),
|
||||||
|
|
||||||
getLocation () {
|
getLocation () {
|
||||||
this.injectJWeixin(['getLocation']).then(res => {
|
this.injectJWeixin(['getLocation']).then(res => {
|
||||||
console.log(res)
|
|
||||||
wx.getLocation({
|
wx.getLocation({
|
||||||
type: 'wgs84',
|
type: 'wgs84',
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
var lat = res.latitude
|
||||||
|
var lng = res.longitude
|
||||||
|
console.log(lat, lng)
|
||||||
|
},
|
||||||
|
error: res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
var latitude = res.latitude
|
|
||||||
var longitude = res.longitude
|
|
||||||
var speed = res.speed
|
|
||||||
var accuracy = res.accuracy
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
// uni.getLocation({
|
|
||||||
// type: 'wgs84',
|
|
||||||
// success: res => {
|
|
||||||
// console.log(res)
|
|
||||||
// this.$http.get('https://apis.map.qq.com/ws/geocoder/v1/?location=39.984154,116.307490&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1').then(res => {
|
|
||||||
// console.log(res)
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
// fail: error => {
|
|
||||||
// console.log(error)
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
|
|
||||||
linkTo (url) {
|
linkTo (url) {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<span v-if="isShowWeather">{{ weather }}</span>
|
<span v-if="isShowWeather">{{ weather }}</span>
|
||||||
</div>
|
</div>
|
||||||
<p v-if="isShowDate">{{ date }} {{ weekCn }}</p>
|
<p v-if="isShowDate">{{ date }} {{ weekCn }}</p>
|
||||||
<div class="text" v-if="isShowMatters">
|
<div class="text" v-if="isShowMatters && matters">
|
||||||
<span>{{ matters }}</span>
|
<span>{{ matters }}</span>
|
||||||
<image src="./../../images/quotes.png" />
|
<image src="./../../images/quotes.png" />
|
||||||
</div>
|
</div>
|
||||||
@@ -76,6 +76,7 @@
|
|||||||
const title = v.filter(v => v.type === '5')[0]
|
const title = v.filter(v => v.type === '5')[0]
|
||||||
const name = v.filter(v => v.type === '6')[0]
|
const name = v.filter(v => v.type === '6')[0]
|
||||||
const matters = v.filter(v => v.type === '7')[0]
|
const matters = v.filter(v => v.type === '7')[0]
|
||||||
|
|
||||||
this.isShowWeather = weather.status === '1'
|
this.isShowWeather = weather.status === '1'
|
||||||
this.isShowDate = date.status === '1'
|
this.isShowDate = date.status === '1'
|
||||||
this.isShowTitle = title.status === '1'
|
this.isShowTitle = title.status === '1'
|
||||||
@@ -84,7 +85,10 @@
|
|||||||
this.isShowMatters = matters.status === '1'
|
this.isShowMatters = matters.status === '1'
|
||||||
this.title = title.defaultValue || ''
|
this.title = title.defaultValue || ''
|
||||||
this.name = name.defaultValue || ''
|
this.name = name.defaultValue || ''
|
||||||
|
this.date = date.defaultValue || this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||||
|
this.time = time.defaultValue || this.$dayjs().format('HH:mm')
|
||||||
this.matters = matters.defaultValue || ''
|
this.matters = matters.defaultValue || ''
|
||||||
|
this.week = date.defaultValue ? this.$dayjs(date.defaultValue).day() : new Date().getDay()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
@@ -92,15 +96,23 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||||
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
if (v.fieldType === '7') {
|
||||||
this.time = this.$dayjs().format('HH:mm')
|
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||||
|
this.week = new Date().getDay()
|
||||||
|
}
|
||||||
|
if (v.fieldType === '6') {
|
||||||
|
v.defaultValue = this.$dayjs().format('HH:mm')
|
||||||
|
}
|
||||||
|
|
||||||
this.timer = setInterval(() => {
|
return v
|
||||||
this.date = this.$dayjs().format('YYYY-MM-DD')
|
})
|
||||||
this.time = this.$dayjs().format('HH:mm')
|
|
||||||
this.week = new Date().getDay()
|
// this.timer = setInterval(() => {
|
||||||
}, 1000)
|
// this.date = this.$dayjs().format('YYYY-MM-DD')
|
||||||
|
// this.time = this.$dayjs().format('HH:mm')
|
||||||
|
// this.week = new Date().getDay()
|
||||||
|
// }, 1000)
|
||||||
|
|
||||||
uni.$on('change', e => {
|
uni.$on('change', e => {
|
||||||
this.configList = e
|
this.configList = e
|
||||||
@@ -142,7 +154,7 @@
|
|||||||
|
|
||||||
image {
|
image {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 14px;
|
top: -6px;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 28px;
|
width: 28px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
|
|||||||
@@ -73,7 +73,18 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||||
|
if (v.fieldType === '7') {
|
||||||
|
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||||
|
this.week = new Date().getDay()
|
||||||
|
}
|
||||||
|
if (v.fieldType === '6') {
|
||||||
|
v.defaultValue = this.$dayjs().format('HH:mm')
|
||||||
|
}
|
||||||
|
|
||||||
|
return v
|
||||||
|
})
|
||||||
|
|
||||||
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||||
this.time = this.$dayjs().format('HH:mm')
|
this.time = this.$dayjs().format('HH:mm')
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,17 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||||
|
if (v.fieldType === '7') {
|
||||||
|
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||||
|
this.week = new Date().getDay()
|
||||||
|
}
|
||||||
|
if (v.fieldType === '6') {
|
||||||
|
v.defaultValue = this.$dayjs().format('HH:mm')
|
||||||
|
}
|
||||||
|
|
||||||
|
return v
|
||||||
|
})
|
||||||
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||||
this.time = this.$dayjs().format('HH:mm')
|
this.time = this.$dayjs().format('HH:mm')
|
||||||
this.week = new Date().getDay()
|
this.week = new Date().getDay()
|
||||||
|
|||||||
@@ -67,10 +67,10 @@
|
|||||||
configList: {
|
configList: {
|
||||||
handler: function (v) {
|
handler: function (v) {
|
||||||
if (v.length) {
|
if (v.length) {
|
||||||
const title = v.filter(v => v.type === '3')[0]
|
const title = v.filter(v => v.type === '5')[0]
|
||||||
const address = v.filter(v => v.type === '4')[0]
|
const address = v.filter(v => v.type === '3')[0]
|
||||||
const date = v.filter(v => v.type === '4')[0]
|
const date = v.filter(v => v.type === '1')[0]
|
||||||
const time = v.filter(v => v.type === '4')[0]
|
const time = v.filter(v => v.type === '0')[0]
|
||||||
this.isShowAddress = address.status === '1'
|
this.isShowAddress = address.status === '1'
|
||||||
this.isShowDate = date.status === '1'
|
this.isShowDate = date.status === '1'
|
||||||
this.isShowTime = time.status === '1'
|
this.isShowTime = time.status === '1'
|
||||||
@@ -82,7 +82,17 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||||
|
if (v.fieldType === '7') {
|
||||||
|
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||||
|
this.week = new Date().getDay()
|
||||||
|
}
|
||||||
|
if (v.fieldType === '6') {
|
||||||
|
v.defaultValue = this.$dayjs().format('HH:mm')
|
||||||
|
}
|
||||||
|
|
||||||
|
return v
|
||||||
|
})
|
||||||
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||||
this.time = this.$dayjs().format('HH:mm')
|
this.time = this.$dayjs().format('HH:mm')
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,6 @@
|
|||||||
if (v.length) {
|
if (v.length) {
|
||||||
const address = v.filter(v => v.type === '3')[0]
|
const address = v.filter(v => v.type === '3')[0]
|
||||||
const title = v.filter(v => v.type === '5')[0]
|
const title = v.filter(v => v.type === '5')[0]
|
||||||
console.log(address)
|
|
||||||
this.isShowAddress = address.status === '1'
|
this.isShowAddress = address.status === '1'
|
||||||
this.title = title.defaultValue || ''
|
this.title = title.defaultValue || ''
|
||||||
}
|
}
|
||||||
@@ -74,7 +73,17 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||||
|
if (v.fieldType === '7') {
|
||||||
|
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||||
|
this.week = new Date().getDay()
|
||||||
|
}
|
||||||
|
if (v.fieldType === '6') {
|
||||||
|
v.defaultValue = this.$dayjs().format('HH:mm')
|
||||||
|
}
|
||||||
|
|
||||||
|
return v
|
||||||
|
})
|
||||||
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||||
this.time = this.$dayjs().format('HH:mm')
|
this.time = this.$dayjs().format('HH:mm')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user