管道基础大数据平台系统开发-【前端】-新系統界面
TreeWish
2023-03-03 b6c8e7c61f0270598ba7fdbc44f79512e010d0fe
src/views/datamanage/versionManage.vue
@@ -99,6 +99,7 @@
      <el-table
        :data="tableData"
        style="width: 100%"
        border
        height="calc(100% - 57px)"
      >
        <el-table-column
@@ -194,6 +195,7 @@
    <el-dialog
      :title="$t('dataManage.vmobj.editVersion')"
      :visible.sync="dialogFormVisible"
      :before-close="handleClose"
    >
      <div style="height: 500px; overflow: auto">
        <el-form
@@ -278,6 +280,7 @@
    <el-dialog
      :title="$t('dataManage.vmobj.addVersion')"
      :visible.sync="InsertFormdialog"
      :before-close="handleCloseadd"
    >
      <div style="height: 500px; overflow: auto">
        <el-form
@@ -300,7 +303,7 @@
          >
            <el-select
              :popper-append-to-body="false"
              v-model="insertform.path"
              v-model="insertform.dirName"
              placeholder="请选择"
              style="width:85%"
            >
@@ -550,7 +553,10 @@
      this.insertform.dirid = value;
    },
    catalogChangeAdd(data, node, nodeData) {
      this.$set(this.insertform, "path", data.id);
      this.insertform.path = data.id
      this.insertform.dirid = data.id
      // this.$set(this.insertform, "path", data.id);
      this.$set(this.insertform, "dirName", data.name);
    },
    upCatalogChange(val) {
@@ -592,9 +598,9 @@
        return;
      }
      this.insertform.name = this.getYMD();
      this.insertform.path = 1;
      this.insertform.dirid = 1;
      this.upform.dirid == 1;
      // this.insertform.path = 1;
      // this.insertform.dirid = 1;
      // this.upform.dirid == 1;
      this.catalogOption = this.treeData(res.result);
      this.editcatalogOption = this.treeData(res.result);
    },
@@ -677,8 +683,15 @@
      }
    },
    editFromDataClose() {
      this.dialogFormVisible = false;
      this.upform = {};
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.dialogFormVisible = false
          this.upform = {};
          this.getRoleTabelData();
        })
        .catch((_) => { });
      // this.dialogFormVisible = false;
      // this.upform = {};
    },
    async editFromData() {
      if (this.upform.depName == null) {
@@ -705,10 +718,18 @@
      }
    },
    insertFromDataClose() {
      this.InsertFormdialog = false;
      this.insertform = {};
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.InsertFormdialog = false
          this.insertform = {};
          this.getRoleTabelData();
        })
        .catch((_) => { });
      // this.InsertFormdialog = false;
      // this.insertform = {};
    },
    async insertFromData() {
      if (this.insertform.dirid == null) {
        this.$message({
          message: "请选择角色所属单位",
@@ -716,6 +737,7 @@
        });
        return;
      }
      const data = await insertVersion(this.insertform);
      if (data.code == 200) {
        this.InsertFormdialog = false;
@@ -772,6 +794,22 @@
      this.dialogFormVisible = true;
      this.upform = row;
    },
    handleClose() {
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.dialogFormVisible = false
          this.getRoleTabelData();
        })
        .catch((_) => { });
    },
    handleCloseadd() {
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.InsertFormdialog = false
          this.getRoleTabelData();
        })
        .catch((_) => { });
    },
  },
  watch: {
    pathId: {