| | |
| | | this.$nextTick(() => { |
| | | const lastId = newVal[newVal.length - 1] || "532"; |
| | | const node = this.findNodeById(this.deptOptions, lastId); |
| | | this.queryParams.proId = lastId |
| | | this.getList() |
| | | this.queryParams.proId = lastId; |
| | | this.getList(); |
| | | if (node) { |
| | | this.$refs.tree1.setCurrentKey(lastId); |
| | | const nodeElement = document.querySelector( |
| | |
| | | |
| | | if (this.treeDate?.id) { |
| | | this.treeId.push(this.treeDate.id); |
| | | |
| | | } else { |
| | | this.treeId.push("532"); |
| | | } |
| | |
| | | }[item.tjType] || item.tjType; |
| | | }); |
| | | } |
| | | getlist().then((response) => { |
| | | getlist().then((response) => { |
| | | if (response.code == 200) { |
| | | // this.loading = false; |
| | | this.projectOptions = []; |
| | |
| | | console.log(this.treeId); |
| | | }, */ |
| | | async handleSuccess(isY) { |
| | | this.cancel(); |
| | | this.cancel(); |
| | | |
| | | if (this.proParent || isY) { |
| | | // 等待左侧树加载和拼音处理 |
| | | await this.getDeptTree(); |
| | | this.precomputePinyin(); |
| | | } |
| | | if (this.proParent || isY) { |
| | | // 等待左侧树加载和拼音处理 |
| | | await this.getDeptTree(); |
| | | this.precomputePinyin(); |
| | | } |
| | | |
| | | // 等待右侧表格刷新 |
| | | await this.getList(); |
| | | // 等待右侧表格刷新 |
| | | await this.getList(); |
| | | |
| | | this.pageLoading = false; // ✅ 统一加载状态控制 |
| | | }, |
| | | this.pageLoading = false; // ✅ 统一加载状态控制 |
| | | }, |
| | | submit() { |
| | | this.ChangeList.forEach((item) => { |
| | | this.form.proPrice = item.ckdj; |