管道基础大数据平台系统开发-【前端】-新系統界面
王旭
2023-05-10 86cdd4e6eece0ee4679e62ae347ec003db7d7425
src/views/datamanage/versionManage.vue
@@ -183,7 +183,7 @@
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="listData.pageIndex"
          :page-sizes="[10, 20, 50, 100]"
          :page-sizes="[10, 50, 100, 200]"
          :page-size="listData.pageSize"
          layout="total, sizes, prev, pager, next, jumper"
          :total="count"
@@ -195,6 +195,7 @@
    <el-dialog
      :title="$t('dataManage.vmobj.editVersion')"
      :visible.sync="dialogFormVisible"
      :before-close="handleClose"
    >
      <div style="height: 500px; overflow: auto">
        <el-form
@@ -279,6 +280,7 @@
    <el-dialog
      :title="$t('dataManage.vmobj.addVersion')"
      :visible.sync="InsertFormdialog"
      :before-close="handleCloseadd"
    >
      <div style="height: 500px; overflow: auto">
        <el-form
@@ -293,6 +295,7 @@
              style="width:85%"
              v-model="insertform.name"
              autocomplete="off"
              :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueName1')"
            ></el-input>
          </el-form-item>
          <el-form-item
@@ -302,7 +305,7 @@
            <el-select
              :popper-append-to-body="false"
              v-model="insertform.dirName"
              placeholder="请选择"
              :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuedirectory')"
              style="width:85%"
            >
              <el-option
@@ -336,6 +339,7 @@
              style="width:85%"
              v-model="insertform.descr"
              autocomplete="off"
               :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuedescription')"
            ></el-input>
          </el-form-item>
        </el-form>
@@ -479,7 +483,9 @@
      itemdetail: {},
      upform: {},
      ruleForm: {},
      insertform: {},
      insertform: {
        name:""
      },
      tableData: [],
      companyOption: [],
      count: 0,
@@ -681,8 +687,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) {
@@ -709,8 +722,15 @@
      }
    },
    insertFromDataClose() {
      this.InsertFormdialog = false;
      this.insertform = {};
      this.$confirm("关闭后无法保存,是否关闭?")
        .then((_) => {
          this.InsertFormdialog = false
          this.insertform = {};
          this.getRoleTabelData();
        })
        .catch((_) => { });
      // this.InsertFormdialog = false;
      // this.insertform = {};
    },
    async insertFromData() {
@@ -759,6 +779,7 @@
              message: "删除成功!",
              type: "success",
            });
            this.listData.pageIndex = 1;
            this.getRoleTabelData();
          } else {
            this.$message({
@@ -778,6 +799,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: {