bug修改

This commit is contained in:
caoyang
2022-03-09 10:26:48 +08:00
parent f4b834726d
commit 100a7f4962
6 changed files with 54 additions and 22 deletions
+28 -11
View File
@@ -176,20 +176,33 @@
// this.loadData()
},
created() {
const date = new Date(),
year = date.getFullYear(),
month = date.getMonth()+1,
myDate = date.getDate()
this.today = `${year}/${month < 10 ? '0'+month : month}/${myDate < 10 ? '0'+myDate : myDate}`
if(this.timer){
clearInterval(this.timer)
}else{
eventBUs.$emit('searchReset')
this.initSetTimeout(this.today)//调用每隔10秒刷新数据
this.refresh()
},
watch:{
drawVisible(val){
if(val&&this.timer){
clearInterval(this.timer)
}else{
clearInterval(this.timer)
this.initSetTimeout(this.today)//调用每隔10秒刷新数据
}
}
},
methods:{
// 定时刷新页面
refresh(){
const date = new Date(),
year = date.getFullYear(),
month = date.getMonth()+1,
myDate = date.getDate()
this.today = `${year}/${month < 10 ? '0'+month : month}/${myDate < 10 ? '0'+myDate : myDate}`
if(this.timer){
clearInterval(this.timer)
}else{
eventBUs.$emit('searchReset')
this.initSetTimeout(this.today)//调用每隔10秒刷新数据
}
},
//上传
handleUpload(){
// if(this.timer){
@@ -200,6 +213,9 @@
//调取已入库文件
handleFileExport(){
this.drawVisible=true
if(this.timer){
clearInterval(this.timer)
}
},
//批量删除
handleDel(){
@@ -336,6 +352,7 @@
},
docVisible(val){
this.drawVisible=val
},
//文件详情跳转
detailClick(val){