田源
2023-07-28 0bd98f8ac6eb537e618ad00c8bc3f3b40e46ab69
Source/UBCS-WEB/src/components/Master/MasterTree.vue
@@ -81,18 +81,15 @@
      const result = this.$route.query.id.substring(0, index);
      this.idData=result
      // console.log(this.$route)
      console.log(this.idData)
      getTreeList({'conditionMap[id]':this.idData }).then(res=>{
        console.log(res)
        this.Treedata=res.data;
        console.log('Treedata',this.Treedata)
        const [firstProperty] = res.data;
        this.ModifyProperties(this.Treedata, 'text', 'label');
        this.codeClassifyOid=firstProperty.oid;
        this.coderuleoid=firstProperty.attributes.coderuleoid;
        this.$emit("coderuleoid", this.coderuleoid )
      }).catch(res=>{
        console.log(res)
        this.$message.error(res)
      })
    },
@@ -119,7 +116,6 @@
        this.tableDataArray=res.data.data;
        this.$emit('tableDataArray',this.tableDataArray)
        this.$emit('total',res.data.total)
        console.log('table',this.tableDataArray)
      })
    },
    //表格头部
@@ -154,7 +150,6 @@
          this.$emit('tableHeadDataFateher', this.tableHeadDataFateher);
          this.$emit('tableHeadFindData', this.tableHeadFindData);
          this.$emit('tableHeadBttoms', this.masterVrBtnList);
          console.log( 'head',this.tableHeadFindData)
          resolve();
        }).catch(err => {
          reject(err)
@@ -163,7 +158,6 @@
    },
    //树点击事件
    async nodeClick(data) {
      console.log('CloneTreeAvueform',this.CloneTreeAvueform)
      try {
        this.nodeClickList = data;
        this.tableHeadDataFateher=[]