lxl
2022-10-19 2813ea20120a1ce6f5ab6625783140d9c2cdc578
src/views/userManage/orgManage.vue
@@ -224,7 +224,7 @@
    };
  },
  methods: {
    getMenuTree() {
    getDepTree() {
      //获取目录树最大ID,新建节点使用
      // queryMaxId().then((res) => {
      //   this.id = res.data;
@@ -280,6 +280,7 @@
                    message: "添加成功",
                    type: "success",
                  });
                  this.getMenuTree();
                  this.itemdetail = {};
                  this.ruleForm = {};
                  this.dialogFormVisible = false;
@@ -328,12 +329,16 @@
                  type: "success",
                  message: "删除成功!",
                });
                this.getMenuTree();
                this.itemdetail = {};
              } else if (res[0].code == 200) {
                this.getMenuTree();
                this.$message.error("删除成功,位置调整失败");
              } else if (res[1].code == 200) {
                this.getMenuTree();
                this.$message.error("删除失败,位置调整成功");
              } else {
                this.getMenuTree();
                this.$message.error("删除失败");
              }
            })
@@ -437,7 +442,7 @@
      updateDepTrees(this.newData)
        .then((res) => {
          if (res.code == 200) {
            alert("调整完成。请及时刷新页面!");
            this.getMenuTree();
            return;
          } else {
            alert("调整失败,请重试!");
@@ -462,7 +467,7 @@
                setTimeout(() => {
                  this.fullscreenLoading = false;
                  if (res.code == 200) {
                    alert("修改完成,请及时刷新页面!");
                    this.getMenuTree()
                    this.itemdetail = {};
                    this.dialogFormVisible = false;
                  }
@@ -486,7 +491,7 @@
    },
  },
  mounted() {
    this.getMenuTree();
    this.getDepTree();
  },
};
</script>