bug修改
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user