weicd
2024-01-04 eaf14dd28b5c95a08d433c6b6ccb5d2c0de2a2d4
eladmin-web-master/src/views/task/taskUser/index.vue
@@ -995,14 +995,22 @@
    },
    // 获取左侧部门数据
    getTaskDatas(node, resolve) {
      // if (node !== undefined) {
      //   this.infinite = true
      // //测试数据
      // this.projectId = 32
      // // 将跳转携带的参数赋值
      // if(this.$route.params.taskName != undefined) {
      //   this.taskName = this.$route.params.taskName
      // }
      // console.log("this.taskName:" + this.taskName)
      const sort = "id,desc";
      const params = { sort: sort };
      if (!this.projectId) {
        return;
      } else {
        console.log("this.projectId:" + this.projectId)
        params["projectId"] = this.projectId;
        this.taskLoading = true;
      }
@@ -1025,6 +1033,10 @@
              this.taskDatas = res;
            }
            this.taskLoading = false;
            // // 测试数据
            // if(this.projectId = 32) {
            //   handleNodeClick("查出来根据名字查出task数据放在这里")
            // }
          })
          .catch(() => {
            this.taskLoading = false;