doway-coms 1.4.11 → 1.4.12
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,16 +1123,18 @@ 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
|
});
|
|
1137
1139
|
vm.$emit("filterChange");
|
|
1138
1140
|
break;
|