添加过滤条件
This commit is contained in:
@@ -201,7 +201,7 @@ export default {
|
|||||||
|
|
||||||
emitData(val){
|
emitData(val){
|
||||||
if(val && this.where.startTime && this.where.endTime){
|
if(val && this.where.startTime && this.where.endTime){
|
||||||
this.$emit("search", this.where);
|
this.searchData();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -253,9 +253,12 @@ export default {
|
|||||||
this.where = {
|
this.where = {
|
||||||
checked: 1,
|
checked: 1,
|
||||||
};
|
};
|
||||||
|
this.filter = innerFilterColumns.map((item) => item.dataIndex);
|
||||||
|
this.handleOk()
|
||||||
this.searchData();
|
this.searchData();
|
||||||
},
|
},
|
||||||
searchData() {
|
searchData() {
|
||||||
|
this.where.filter = [...this.filter]
|
||||||
this.$emit("search", this.where);
|
this.$emit("search", this.where);
|
||||||
},
|
},
|
||||||
exportFile() {
|
exportFile() {
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ export default {
|
|||||||
|
|
||||||
emitData(val){
|
emitData(val){
|
||||||
if(val && this.where.startTime && this.where.endTime){
|
if(val && this.where.startTime && this.where.endTime){
|
||||||
this.$emit("search", this.where);
|
this.searchData()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -253,9 +253,13 @@ export default {
|
|||||||
this.where = {
|
this.where = {
|
||||||
checked: 1,
|
checked: 1,
|
||||||
};
|
};
|
||||||
|
this.filter = innerFilterColumns.map((item) => item.dataIndex);
|
||||||
|
this.handleOk()
|
||||||
this.searchData();
|
this.searchData();
|
||||||
|
|
||||||
},
|
},
|
||||||
searchData() {
|
searchData() {
|
||||||
|
this.where.filter = [...this.filter]
|
||||||
this.$emit("search", this.where);
|
this.$emit("search", this.where);
|
||||||
},
|
},
|
||||||
exportFile() {
|
exportFile() {
|
||||||
|
|||||||
Reference in New Issue
Block a user