田源
2024-09-06 bf70f3cf825f44c457dba2bebd26e7af73e4b2a8
Source/UBCS-WEB/src/components/Master/MasterTree.vue
@@ -57,7 +57,7 @@
        delBtn: false,
        defaultExpandAll: false,
        menu: false,
        lazy: true,
        // lazy: true,
        treeLoad: (node, resolve) => {
          if (node.data != false) {
            const parentId = (node.level === 0) ? 0 : node.data.oid;
@@ -106,6 +106,7 @@
      let conditionMaps = {};
      conditionMaps["conditionMap[id]"] = this.idData;
      conditionMaps["conditionMap[authType]"] = "data_auth";
      conditionMaps["conditionMap[buttonCode]"] = this.idData;
      // 数据授权中是否具备查看权限
      conditionMaps["conditionMap[menuCode]"] = "data_view";
      getTreeList(conditionMaps).then(res => {
@@ -213,9 +214,7 @@
    //树点击事件
    async nodeClick(data) {
      try {
        // console.log(data)
        this.TreeValue = data.label.split("</span>")[1].trim();
        // console.log('TreeValue',this.TreeValue)
        this.TreeValue = data.label;
        this.$emit('TreeValue', this.TreeValue)
        this.nodeClickList = data;
        this.tableHeadDataFateher = []