管道基础大数据平台系统开发-【前端】-新系統界面
liupengpeng
2023-03-03 c194af8fab6f32e9fc50c139551d7bc2846642e2
src/views/userManage/orgManage.vue
@@ -223,6 +223,7 @@
    <el-dialog
      :title="$t('common.append')"
      :visible.sync="dialogFormVisible"
      :before-close="handleClose"
    >
     <div style="height: 500px; overflow: auto">
      <el-form
@@ -588,11 +589,15 @@
      // console.log(node);
    },
    resetForm(formName) {
      this.dialogFormVisible = false;
      this.$nextTick(() => {
        this.ruleForm = {};
        this.$refs[formName].resetFields();
      });
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.dialogFormVisible = false;
          this.$nextTick(() => {
            this.ruleForm = {};
            this.$refs[formName].resetFields();
          });
        })
        .catch((_) => { });
    },
    submitForm(formName) {
      this.$refs[formName].validate((valid) => {
@@ -850,6 +855,13 @@
        }
      }
    },
    handleClose() {
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.dialogFormVisible = false
        })
        .catch((_) => { });
    },
  },
  mounted() {
    this.getMenuTree();