| | |
| | | multiple: true, |
| | | showSearch: true, |
| | | total: 0, |
| | | treeId: ["532"], |
| | | treeId: [], |
| | | ListId: [], |
| | | noclick: false, |
| | | consumableList: [], |
| | |
| | | this.debounceFilter(val); |
| | | }, |
| | | treeId(newVal) { |
| | | console.log(newVal,8989) |
| | | if (newVal && newVal.length > 0) { |
| | | this.$nextTick(() => { |
| | | const lastId = newVal[newVal.length - 1] || "532"; |
| | |
| | | traverse(this.deptOptions); |
| | | }, |
| | | filterNode(value, data) { |
| | | if (!value) return true; // 如果搜索值为空,返回所有节点 |
| | | if (!value) return true; |
| | | const cached = this.pinyinCache.get(data.id); |
| | | if (!cached) return false; // 如果没有缓存数据,不显示该节点 |
| | | const searchLower = value.toLowerCase(); // 将搜索词转为小写 |
| | |
| | | }, |
| | | handleNodeClick(date) { |
| | | this.treeDate = date; |
| | | console.log(this.treeDate); |
| | | this.treeId = [] |
| | | console.log(this.treeId,2222); |
| | | this.xiugais = date.qf === "0"; |
| | | let proId = date.id; |
| | | getInfoByProId(proId).then((response) => { |
| | |
| | | this.precomputePinyin(); |
| | | }); |
| | | } |
| | | console.log(this.treeId) |
| | | }, |
| | | submit() { |
| | | this.ChangeList.forEach((item) => { |