ludc
2023-09-26 1707976c2f30199565c2ddbea0e2c33edd4688a9
Source/UBCS-WEB/src/views/integration/systemInfo.vue
@@ -59,6 +59,7 @@
    return {
      checkAll: {},
      ParentList: [],
      ParentRemoveList:[],
      //避免缓存
      reload: Math.random(),
      TreeLoading: false,
@@ -135,7 +136,8 @@
      },
    }
  },
  created() {
  },
  methods: {
    empower() {
      batchAddSave(this.checkAll.oid, this.checkAll.id, this.ParentList).then(res => {
@@ -179,9 +181,23 @@
          }
          console.log(this.ParentList);
        }
      }else {
        this.ParentList = this.ParentList.filter(res => res.classifyId !== row.classifyId);
        console.log(this.ParentList);
      } else {
        if (!row.parentId && row.children) {
          this.ParentRemoveList = this.ParentList.filter(record => record.oid !== row.oid);
          if (row.children && row.children.length > 0) {
            for (let child of row.children) {
              this.ParentRemoveList = this.ParentList.filter(record => record.oid !== child.oid);
              if (child.children && child.children.length > 0) {
                for (let subChild of child.children) {
                  this.ParentRemoveList = this.ParentList.filter(record => record.oid !== subChild.oid);
                }
              }
            }
          }
        }
        console.log(this.ParentRemoveList)
      }
    },
    //分类授权