左侧树过滤

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();