|
@@ -141,16 +141,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
srcDeviceCode (newValue, oldValue) {
|
|
|
- this.queryParam.beginDate = getDate.getRecentday().starttime
|
|
|
- this.queryParam.endDate = getDate.getRecentday().endtime
|
|
|
- this.time = [
|
|
|
- moment(getDate.getRecentday().starttime, this.dateFormat),
|
|
|
- moment(getDate.getRecentday().endtime, this.dateFormat)
|
|
|
- ]
|
|
|
- const _this = this
|
|
|
- setTimeout(() => {
|
|
|
- _this.$refs.table.refresh(true)
|
|
|
- }, 100)
|
|
|
+ if (this.isShow && newValue) {
|
|
|
+ this.queryParam.beginDate = getDate.getRecentday().starttime
|
|
|
+ this.queryParam.endDate = getDate.getRecentday().endtime
|
|
|
+ this.time = [
|
|
|
+ moment(getDate.getRecentday().starttime, this.dateFormat),
|
|
|
+ moment(getDate.getRecentday().endtime, this.dateFormat)
|
|
|
+ ]
|
|
|
+ const _this = this
|
|
|
+ setTimeout(() => {
|
|
|
+ _this.$refs.table.refresh(true)
|
|
|
+ }, 100)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|