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