左侧树过滤

This commit is contained in:
DESKTOP-J7ED0MB\yinjinlu 2022-12-12 18:02:51 +08:00
parent 501806a899
commit 6cca5b5226

View File

@ -162,6 +162,7 @@ export default {
multiple: true, multiple: true,
// //
showSearch: true, showSearch: true,
itemTypeName: null,
// //
total: 0, total: 0,
// //
@ -204,6 +205,12 @@ export default {
form: {}, form: {},
}; };
}, },
watch: {
//
itemTypeName(val) {
this.$refs.tree.filter(val);
}
},
created() { created() {
this.getList(); this.getList();
this.getTreeselect(); this.getTreeselect();