ludc
2024-01-24 c327574106f470c72638e9f34c7f8cd26d78a2bf
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;
@@ -103,7 +103,13 @@
      const result = this.$route.query.id.substring(0, index);
      this.idData = result;
      this.removeList();
      getTreeList({'conditionMap[id]': this.idData}).then(res => {
      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 => {
        if (res) {
          if (res.data.length === 0) {
            this.$message.error("主数据分类查询为空!");
@@ -208,7 +214,7 @@
    //树点击事件
    async nodeClick(data) {
      try {
        // console.log(data)
        console.log(data)
        this.TreeValue = data.label.split("</span>")[1].trim();
        // console.log('TreeValue',this.TreeValue)
        this.$emit('TreeValue', this.TreeValue)
@@ -231,7 +237,7 @@
<style lang="scss" scoped>
.app {
  overflow: auto;
  height: calc(100vh - 150px);
  height: calc(100vh - 145px);
}
.app::-webkit-scrollbar {