doway-coms 1.4.11 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1123,17 +1123,20 @@ export default {
|
|
|
1123
1123
|
break;
|
|
1124
1124
|
case "clearFilter":
|
|
1125
1125
|
// 示例
|
|
1126
|
-
const filterList =
|
|
1126
|
+
const filterList = this.$refs.baseGrid.getCheckedFilters();
|
|
1127
|
+
this.$refs.baseGrid.clearFilter();
|
|
1127
1128
|
filterList.forEach((col) => {
|
|
1128
|
-
if (
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
) {
|
|
1129
|
+
// if (
|
|
1130
|
+
// col.column.params.controlType === "select" ||
|
|
1131
|
+
// col.column.params.controlType === "checkbox"
|
|
1132
|
+
// ) {
|
|
1133
|
+
// col.column.filters = [{ data: [] }];
|
|
1134
|
+
// } else {
|
|
1135
|
+
// col.column.filters = [{ data: [] }];
|
|
1136
|
+
// }
|
|
1132
1137
|
col.column.filters = [{ data: [] }];
|
|
1133
|
-
} else {
|
|
1134
|
-
col.column.filters = [];
|
|
1135
|
-
}
|
|
1136
1138
|
});
|
|
1139
|
+
XEUtils.clear(this.filterExpression)
|
|
1137
1140
|
vm.$emit("filterChange");
|
|
1138
1141
|
break;
|
|
1139
1142
|
case "desc":
|
|
@@ -2325,6 +2328,7 @@ export default {
|
|
|
2325
2328
|
}
|
|
2326
2329
|
colFilterExpression.expressions.push(tempPushExp);
|
|
2327
2330
|
});
|
|
2331
|
+
// debugger
|
|
2328
2332
|
this.filterExpression.push(colFilterExpression);
|
|
2329
2333
|
tempStr.exp = expStr + tempStr.exp.substring(0, tempStr.exp.length - 1);
|
|
2330
2334
|
this.filterStr.push(tempStr);
|