管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2022-11-24 a7199e5a4f3e34b14d395e319a552c5c3b8b3a4d
src/views/datamanage/versionManage.vue
@@ -57,7 +57,7 @@
            <el-table-column
              align="center"
              prop="name"
              :label="$t('dataManage.vmobj.name')"
              :label="$t('common.versionName')"
            />
            <el-table-column
              align="center"
@@ -95,7 +95,10 @@
              <template slot-scope="scope">
                <el-button
                  v-if="btnStatus.update"
                  @click="handleEdit(scope.$index, scope.row)"
                  @click="
                    handleEdit(scope.$index, scope.row);
                    getSelectdirTab();
                  "
                  type="warning"
                  size="small"
                  >{{ $t('common.update') }}</el-button
@@ -146,7 +149,7 @@
          <el-cascader
            style="width: 300px"
            v-model="upform.dirid"
            :options="catalogOption"
            :options="editcatalogOption"
            @change="upCatalogChange"
            :props="cascader"
          ></el-cascader>
@@ -217,6 +220,7 @@
        }}</el-button>
      </div>
    </el-dialog>
    <!-- <div class="searchComp">
      <el-form ref="ruleForm" :model="ruleForm" :inline="true">
        <el-form-item :label="$t('dataManage.vmobj.keyword')" prop="name">
@@ -370,7 +374,7 @@
      this.insertform.dirid = value;
    },
    upCatalogChange(val) {
      this.upform.dirid == value;
      this.upform.dirid == val;
    },
    //目录列表获取
    async getSelectdirTab() {
@@ -379,9 +383,24 @@
        this.$message.error('目录列表获取失败');
        return;
      }
      this.insertform.name = this.getYMD();
      this.insertform.path = 1;
      this.insertform.dirid = 1;
      this.upform.dirid == 1;
      this.catalogOption = this.treeData(res.result);
      this.editcatalogOption = this.treeData(res.result);
    },
    getYMD() {
      let myDate = new Date();
      let myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
      let myMonth = myDate.getMonth() + 1; //获取当前月份(0-11,0代表1月)
      let myToday = myDate.getDate(); //获取当前日(1-31)
      myMonth = myMonth > 9 ? myMonth : '0' + myMonth;
      myToday = myToday > 9 ? myToday : '0' + myToday;
      let nowDate = 'V' + myYear + myMonth + myToday;
      return nowDate;
    },
    //树列表生成
    treeData(source) {
      let cloneData = JSON.parse(JSON.stringify(source)); // 对源数据深度克隆
@@ -406,6 +425,8 @@
      this.getRoleTabelData();
    },
    onSubmit() {
      this.listData.pageIndex = 1;
      this.listData.pageSize = 10;
      this.getRoleTabelData();
    },
    async getRoleTabelData() {
@@ -415,6 +436,7 @@
      this.listData.name = this.ruleForm.name;
      this.listData.depName = this.$store.state.verCateNode.name;
      const data = await select_Ver_ByPageAndCount(this.listData);
      if (data.code != 200) {