qinxianzhangyao
2023-12-13 854002335cbce613e0b62fbc9a034ba82976a155
src/views/hosp/project/index.vue
@@ -685,16 +685,26 @@
      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 }) {