田源
2023-11-08 758aa723a299465ddc299f89ba6f0684379cdbfa
Source/UBCS-WEB/src/components/Master/MasterTree.vue
@@ -6,7 +6,9 @@
        <span v-html="node.label"></span>
      </template>
    </avue-tree>
    <div style="display: inline-block;"><el-link icon="el-icon-refresh" class="refresh-icon" @click="getTreeLists"></el-link></div>
    <div style="display: inline-block;">
      <el-link class="refresh-icon" icon="el-icon-refresh" @click="getTreeLists"></el-link>
    </div>
  </div>
</template>
@@ -34,7 +36,7 @@
    return {
      TreeValue: '',
      idData: '',
      referTreeId:'',
      referTreeId: '',
      masterVrBtnList: [],
      tableHeadFindData: [],
      tableHeadDataFateher: [],
@@ -57,11 +59,15 @@
        //   console.log(node)
        //   console.log(resolve)
        // }
        treeLoad: (node, resolve) =>{
        treeLoad: (node, resolve) => {
          if (node.data != false) {
            const parentId = (node.level === 0) ? 0 : node.data.oid;
            const parentBtmName = node.data.attributes.btmname;
            getTreeList({parentOid: parentId, parentBtmName: parentBtmName,'conditionMap[btmTypeId]': this.referTreeId }).then(res => {
            getTreeList({
              parentOid: parentId,
              parentBtmName: parentBtmName,
              'conditionMap[btmTypeId]': this.referTreeId
            }).then(res => {
              resolve(res.data.map(item => {
                return {
                  ...item,
@@ -107,7 +113,7 @@
            const [firstProperty] = res.data;
            this.ModifyProperties(this.Treedata, 'text', 'label');
            this.referTreeId=firstProperty.attributes.btmTypeId;
            this.referTreeId = firstProperty.attributes.btmTypeId;
            // console.log(this.referTreeId)
            this.codeClassifyOid = firstProperty.oid;
            this.coderuleoid = firstProperty.attributes.coderuleoid;