优化
This commit is contained in:
@@ -129,6 +129,7 @@ export default {
|
||||
showSubmit: false,
|
||||
taskId: '',
|
||||
customerId: '',
|
||||
doDebounce: null,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -136,6 +137,9 @@ export default {
|
||||
this.taskId = JSON.parse(sessionStorage.getItem('tidCid')).taskId
|
||||
this.customerId = JSON.parse(sessionStorage.getItem('tidCid')).customerId
|
||||
this.getHistory()
|
||||
this.doDebounce = debounce(function () {
|
||||
this.save()
|
||||
}, 5000, true)
|
||||
},
|
||||
methods: {
|
||||
// 查询打卡记录
|
||||
@@ -240,9 +244,9 @@ export default {
|
||||
})
|
||||
return list
|
||||
},
|
||||
handleClick:debounce(function () {
|
||||
this.save()
|
||||
}, 5000, true),
|
||||
handleClick(){
|
||||
this.doDebounce()
|
||||
},
|
||||
// 保存
|
||||
save() {
|
||||
if (this.$refs.uploaderRef.checkImgisUpload(this.text1)) {
|
||||
|
||||
Reference in New Issue
Block a user