| | |
| | | let data = { |
| | | deptId: this.queryParams.deptId, |
| | | }; |
| | | this.loading = true |
| | | ProjectTree(data).then((response) => { |
| | | this.projectList = this.handleTree(response.data.list, "proId"); |
| | | this.ListId.push(this.projectList[0].proId) |
| | | this.key = response.data.key |
| | | // if (this.key == "Y") { |
| | | // this.key = response.data.key |
| | | // } else if (response.data.key == "N") { |
| | | // this.key = response.data.key |
| | | // } |
| | | this.loading = false; |
| | | if (response.code == 200) { |
| | | if (response.data.list.length >= 1) { |
| | | this.projectList = this.handleTree(response.data.list, "proId"); |
| | | this.ListId.push(this.projectList[0].proId) |
| | | this.key = response.data.key |
| | | } else { |
| | | this.projectList = [] |
| | | } |
| | | |
| | | |
| | | // if (this.key == "Y") { |
| | | // this.key = response.data.key |
| | | // } else if (response.data.key == "N") { |
| | | // this.key = response.data.key |
| | | // } |
| | | this.loading = false; |
| | | } |
| | | |
| | | }); |
| | | }, |
| | | selectSingleRow({ row, rowIndex }) { |