管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2022-12-22 54837b203b8d23c01e0e6cf716cb6a3829ae60f6
src/views/datamanage/versionManage.vue
@@ -8,12 +8,27 @@
    ></My-bread>
    <el-divider />
    <div class="verSionContent">
      <div class="verSion_leftTree">
      <!-- <div class="verSion_leftTree">
        <ver-dir-tree></ver-dir-tree>
      </div>
      </div> -->
      <div class="verSion_rightContent">
        <el-form ref="ruleForm" :model="ruleForm" :inline="true">
          <el-form-item :label="$t('dataManage.vmobj.keyword')" prop="name">
           <el-form-item>
            <el-cascader
              v-model="ruleForm.dirid"
              :show-all-levels="false"
              :options="companyOption"
              @change="handleChange"
              :props="{
              label: 'name',
              value: 'id',
              children: 'children',
              checkStrictly: true,
              emitPath: false,
            }"
            ></el-cascader>
          </el-form-item>
          <el-form-item  >
            <el-input
              v-model="ruleForm.name"
              :placeholder="$t('common.pleaseInput')"
@@ -71,7 +86,7 @@
            />
            <el-table-column
              align="center"
              prop="createUser"
              prop="createName"
              :label="$t('dataManage.vmobj.createonuser')"
            />
            <el-table-column
@@ -334,6 +349,7 @@
      ruleForm: {},
      insertform: {},
      tableData: [],
      companyOption:[],
      count: 0,
      rowFlag: null,
      listData: {
@@ -360,6 +376,7 @@
    };
  },
  created() {
    this.getQueryDirTree();
    this.getRoleTabelData();
    this.showPermsBtn();
  },
@@ -376,6 +393,22 @@
    },
    upCatalogChange(val) {
      this.upform.dirid == val;
    },
     //目录列表获取
    async getQueryDirTree() {
      const res = await selectdirTab();
      if (res.code != 200) {
        this.$message.error('目录列表获取失败');
        return;
      }
      this.companyOption = this.treeData(res.result);
      this.ruleForm.dirid= this.companyOption[0].id
    },
    handleChange(val){
  this.ruleForm.dirid=val;
  this.onSubmit();
    },
    //目录列表获取
    async getSelectdirTab() {
@@ -421,6 +454,7 @@
    },
    resetForm() {
      this.ruleForm = {};
         this.ruleForm.dirid= this.companyOption[0].id
      this.$store.state.verCateNode = {};
      this.$bus.$emit('clearTressLabel', true);
      this.getRoleTabelData();
@@ -436,7 +470,7 @@
      }
      this.listData.name = this.ruleForm.name;
      this.listData.depName = this.$store.state.verCateNode.name;
      this.listData.dirid = this.ruleForm.dirid;
      const data = await select_Ver_ByPageAndCount(this.listData);
@@ -582,7 +616,7 @@
      overflow-y: auto;
    }
    .verSion_rightContent {
      width: 80%;
      width: 98%;
      height: 95%;
      border: 1px solid white;
      border-radius: 5px;