增加首次加载时间判断

This commit is contained in:
庞东林
2021-12-16 20:55:05 +08:00
parent d9dec2a30e
commit ba36439ac7
4 changed files with 16 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
@filterColumns="changeFilter"
:visiable="visiable"
:loading="loading"
:loadSearch="true"
/>
<!-- 表格 -->
<ele-pro-table

View File

@@ -130,6 +130,9 @@ export default {
},
visiable:{
typeof:Boolean
},
loadSearch:{
typeof:Boolean
}
},
data() {
@@ -199,7 +202,8 @@ export default {
// 根据父级传回来需要去掉勾的值映射到复选框
this.initFilter(this.filterKeys);
// 将父级回传的搜索条件上传父级进行页面搜索
this.emitData(true)
let isSearch = (this.where.monitorStartTime && this.where.monitorEndTime) || this.loadSearch;
this.emitData(isSearch)
},
methods: {

View File

@@ -130,6 +130,9 @@ export default {
},
visiable:{
typeof:Boolean
},
loadSearch:{
typeof:Boolean
}
},
data() {
@@ -199,7 +202,8 @@ export default {
// 根据父级传回来需要去掉勾的值映射到复选框
this.initFilter(this.filterKeys);
// 将父级回传的搜索条件上传父级进行页面搜索
this.emitData(true)
let isSearch = (this.where.monitorStartTime && this.where.monitorEndTime) || this.loadSearch;
this.emitData(isSearch)
},
methods: {

View File

@@ -130,6 +130,9 @@ export default {
},
visiable:{
typeof:Boolean
},
loadSearch:{
typeof:Boolean
}
},
data() {
@@ -199,7 +202,8 @@ export default {
// 根据父级传回来需要去掉勾的值映射到复选框
this.initFilter(this.filterKeys);
// 将父级回传的搜索条件上传父级进行页面搜索
this.emitData(true)
let isSearch = (this.where.monitorStartTime && this.where.monitorEndTime) || this.loadSearch;
this.emitData(isSearch)
},
methods: {