管道基础大数据平台系统开发-【前端】-新系統界面
王旭
2023-02-20 198b83ce825fbbf912cb26d592e3c7b0b586ca92
src/views/datamanage/metadataManage.vue
@@ -268,17 +268,29 @@
          </el-pagination>
        </div>
      </div>
    <div class="infoBox" v-show="showinfoBox">
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <span>{{ $t("common.details") }}</span>
          <div style="float: right; cursor: pointer" @click="closeDetial">
    <div
      class="infoBox box_div"
      v-show="showinfoBox"
    >
        <div
          slot="header"
          class="clearfix"
        >
          <span>{{ $t('common.details') }}</span>
          <div
            style="float: right; cursor: pointer"
            @click="closeDetial"
          >
            <i class="el-icon-close"></i>
          </div>
        </div>
        <div class="contentBox" style="padding: 1%">
          <p>{{ $t("dataManage.vmobj.name") }}:{{ itemdetail.name }}</p>
          <el-divider></el-divider>
        <div
          class="contentBox"
          style="padding:1%"
        >
          <p>{{ $t('dataManage.vmobj.name') }}:{{ itemdetail.name }}</p>
          <el-divider></el-divider>
          <p>{{ $t("dataManage.vmobj.format") }}:{{ itemdetail.type }}</p>
          <el-divider></el-divider>
@@ -318,7 +330,7 @@
            }}
          </p>
        </div>
      </el-card>
    </div>
    <el-dialog
      width="80vh"
@@ -526,6 +538,7 @@
        </el-form-item>
      </el-form>
    </div>
    <iframe
      id="downFrame"
      src=""
@@ -764,7 +777,7 @@
        return;
      }
      this.companyOption1 = this.treeData(res.result);
      this.queryForm.depid = this.companyOption1[0].id;
      this.queryForm.depcode = this.companyOption1[0].code;
      this.queryForm.depName = this.companyOption1[0].name;
      this.getQueryDirTree();
    },
@@ -777,6 +790,7 @@
      }
      this.companyOption = this.treeData(res.result);
      this.queryForm.dirid = this.companyOption[0].id;
      this.queryForm.dircode = this.companyOption[0].code;
      this.queryForm.dirName = this.companyOption[0].name;
      this.getQueryVerList();
    },
@@ -800,6 +814,7 @@
    handleChange(data, node, nodeData) {
      this.listData.pageSize = 10;
      this.listData.pageIndex = 1;
      this.queryForm.dircode = data.code;
      this.queryForm.dirid = data.id;
      this.queryForm.dirName = data.name;
      this.getQueryVerList();
@@ -807,16 +822,18 @@
    handleChange1(data, node, nodeData) {
      this.listData.pageSize = 10;
      this.listData.pageIndex = 1;
      this.queryForm.depid = data.id;
      this.queryForm.depcode = data.code;
      this.queryForm.depName = data.name;
      this.getMetaData();
    },
    handleChange2(data, node, nodeData) {
      this.editForm.depid = data.id;
      this.editForm.depcode = data.code;
      this.editForm.depName = data.name;
    },
    handleChange3(data, node, nodeData) {
      this.editForm.dirid = data.id;
      this.editForm.dircode = data.code;
      this.editForm.dirName = data.name;
    },
    //格式化列表
@@ -885,7 +902,7 @@
      }
      this.optionCount = this.treeData(res.result);
      this.dirComPanyOption = this.treeData(res.result);
      this.listData.dirid = this.optionCount[0].id;
      this.listData.depcode = this.optionCount[0].code;
    },
    handleNodeClick(data) {
      this.listData.pageSize = 10;
@@ -938,8 +955,8 @@
    // },
    // 请求数据内容
    getMetaData() {
      this.listData.depid = this.queryForm.depid;
      this.listData.dirid = this.queryForm.dirid;
      this.listData.depcode = this.queryForm.depcode;
      this.listData.dircode = this.queryForm.dircode;
      this.listData.verid = this.queryForm.verid;
      // this.listData.dirid = 57
@@ -964,6 +981,8 @@
      this.listData.name = null;
      this.queryForm.dirid = this.companyOption[0].id;
      this.queryForm.depid = this.companyOption1[0].id;
      this.queryForm.dircode = this.companyOption[0].code;
      this.queryForm.depcode = this.companyOption1[0].code;
      this.queryForm.dirName = this.companyOption[0].name;
      this.queryForm.depName = this.companyOption1[0].name;
      this.getQueryVerList();
@@ -982,7 +1001,6 @@
    sendAdd(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          console.log(this.editForm);
          this.fullscreenLoading = true;
          insertMeta(this.editForm)
            .then((res) => {