管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-03-18 35889caf6315da8f72aec921069547af462b479a
src/views/datamanage/metadataManage.vue
@@ -1,14 +1,19 @@
<template>
  <div class="authorityManagement_box">
    <My-bread
      :list="[
    <My-bread :list="[
        `${$t('dataManage.dataManage')}`,
        `${$t('dataManage.metadataManage')}`,
      ]"
    ></My-bread>
      ]"></My-bread>
    <el-divider />
    <div class="inquire subpage_Div" ref="container">
      <el-form ref="queryForm" :model="queryForm" :inline="true">
    <div
      class="inquire subpage_Div"
      ref="container"
    >
      <el-form
        ref="queryForm"
        :model="queryForm"
        :inline="true"
      >
        <div class="flex_box">
          <div style="margin-right: auto">
            <el-form-item size="small">
@@ -93,19 +98,21 @@
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item prop="name" size="small">
            <el-form-item
              prop="name"
              size="small"
            >
              <!--            suffix-icon="el-icon-edit"  :placeholder="$t('common.pleaseInput')"-->
              <el-input
                v-model="queryForm.name"
                :placeholder="$t('shuJuGuanLi.lable2')"
                style="width: 200px"
                ><i
              ><i
                  slot="suffix"
                  class="el-icon-search"
                  @click="queryInfo()"
                  style="padding-right: 8px"
                ></i
              ></el-input>
                ></i></el-input>
            </el-form-item>
          </div>
          <div>
@@ -125,7 +132,7 @@
                size="small"
                @click="deleteMetaInfo"
                icon="el-icon-delete"
                >{{ $t("common.delete") }}
              >{{ $t("common.delete") }}
              </el-button>
            </el-form-item>
            <el-form-item v-if="btnStatus.download">
@@ -134,7 +141,7 @@
                icon="el-icon-download"
                type="success"
                size="small"
                >{{ $t("common.download") }}
              >{{ $t("common.download") }}
              </el-button>
            </el-form-item>
@@ -144,7 +151,7 @@
                icon="el-icon-refresh"
                type="info"
                size="small"
                >{{ $t("common.reset") }}
              >{{ $t("common.reset") }}
              </el-button>
            </el-form-item>
          </div>
@@ -195,7 +202,10 @@
      </el-form>
    </div>
    <div class="dividing-line"></div>
    <div class="table_box subpage_Div" :style="styleVar">
    <div
      class="table_box subpage_Div"
      :style="styleVar"
    >
      <el-table
        :data="tableData"
        style="width: 100%"
@@ -203,7 +213,10 @@
        @selection-change="handleSelectionChange"
        height="calc(100% - 57px)"
      >
        <el-table-column type="selection" width="55" />
        <el-table-column
          type="selection"
          width="55"
        />
        <el-table-column
          :label="$t('dataManage.dictionaryManageObj.number')"
          type="index"
@@ -218,8 +231,7 @@
                title="源数据查询"
                @click="setQueryMetaData(scope.row)"
                target="_blank"
                >{{ scope.row.name }}</el-link
              >
              >{{ scope.row.name }}</el-link>
            </span>
            <span v-else-if="scope.row.metaid > 0">
              <el-link
@@ -227,14 +239,15 @@
                title="元数据查询"
                @click="setMetaDataQuery(scope.row)"
                target="_blank"
                >{{ scope.row.name }}</el-link
              ></span
            >
              >{{ scope.row.name }}</el-link></span>
            <span v-else>{{ scope.row.name }}</span>
          </template>
        </el-table-column>
        <el-table-column prop="type" :label="$t('dataManage.vmobj.format')" />
        <el-table-column
          prop="type"
          :label="$t('dataManage.vmobj.format')"
        />
        <el-table-column
          prop="sizes"
          :label="$t('dataManage.vmobj.size')"
@@ -257,7 +270,10 @@
          <template slot-scope="scope">
            <!-- <span ></span> -->
            <el-link></el-link>
            <el-link :underline="false" @click="detail(scope.row)">{{
            <el-link
              :underline="false"
              @click="detail(scope.row)"
            >{{
              scope.row.tab
            }}</el-link>
          </template>
@@ -268,7 +284,10 @@
              :label="$t('dataManage.vmobj.tab')"
              :formatter="formatData"
            /> -->
        <el-table-column prop="rows" :label="$t('dataManage.vmobj.row')" />
        <el-table-column
          prop="rows"
          :label="$t('dataManage.vmobj.row')"
        />
        <el-table-column
          prop="uname"
          :label="$t('dataManage.vmobj.createonuser')"
@@ -278,14 +297,17 @@
          :label="$t('dataManage.vmobj.createontime')"
          :formatter="formatData"
        />
        <el-table-column min-width="210" :label="$t('common.operate')">
        <el-table-column
          min-width="210"
          :label="$t('common.operate')"
        >
          <template slot-scope="scope">
            <el-button
              @click="showDetail(scope.row)"
              type="primary"
              plain
              size="small"
              >{{ $t("common.details") }}
            >{{ $t("common.details") }}
            </el-button>
            <el-button
              type="warning"
@@ -294,7 +316,7 @@
              v-if="btnStatus.update"
              @click="editInfo(scope.row)"
              style="margin-left: 10px"
              >{{ $t("common.edit") }}
            >{{ $t("common.edit") }}
            </el-button>
            <el-button
              plain
@@ -302,12 +324,15 @@
              v-if="showPreview(scope.row)"
              @click="handlePreview(scope.row)"
              style="margin-left: 10px"
              >{{ $t("common.preview") }}
            >{{ $t("common.preview") }}
            </el-button>
          </template>
        </el-table-column>
      </el-table>
      <div class="pagination_box" style="margin-top: 15px">
      <div
        class="pagination_box"
        style="margin-top: 15px"
      >
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
@@ -320,16 +345,28 @@
        </el-pagination>
      </div>
    </div>
    <div class="infoBox_box" v-show="showinfoBox">
    <div
      class="infoBox_box"
      v-show="showinfoBox"
    >
      <div class="infoBox box_div">
        <div slot="header" class="clearfix">
        <div
          slot="header"
          class="clearfix"
        >
          <span>{{ $t("common.details") }}</span>
          <div style="float: right; cursor: pointer" @click="closeDetial">
          <div
            style="float: right; cursor: pointer"
            @click="closeDetial"
          >
            <i class="el-icon-close"></i>
          </div>
        </div>
        <el-divider></el-divider>
        <div class="contentBox" style="padding: 1%">
        <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>
@@ -359,13 +396,13 @@
          </p>
          <el-divider></el-divider>
          <p>
            {{ $t("dataManage.vmobj.updateonuser") }}:{{
            {{ $t("dataManage.vmobj.depName") }}:{{
              itemdetail.updateUser
            }}
          </p>
          <el-divider></el-divider>
          <p>
            {{ $t("dataManage.vmobj.updateontime") }}:{{
            {{ $t("dataManage.vmobj.depName") }}:{{
              setInfoBoxTime(itemdetail.updateTime)
            }}
          </p>
@@ -384,24 +421,36 @@
      :visible.sync="dialogFormVisible"
      :before-close="handleClose"
    >
      <el-form :model="editForm" ref="editForm">
      <el-form
        :model="editForm"
        ref="editForm"
      >
        <el-form-item
          :label="$t('dataManage.vmobj.name')"
          :label-width="formLabelWidth"
        >
          <el-input v-model="editForm.name" autocomplete="off"></el-input>
          <el-input
            v-model="editForm.name"
            autocomplete="off"
          ></el-input>
        </el-form-item>
        <el-form-item
          :label="$t('dataManage.vmobj.format')"
          :label-width="formLabelWidth"
        >
          <el-input v-model="editForm.type" autocomplete="off"></el-input>
          <el-input
            v-model="editForm.type"
            autocomplete="off"
          ></el-input>
        </el-form-item>
        <el-form-item
          :label="$t('dataManage.vmobj.size')"
          :label-width="formLabelWidth"
        >
          <el-input v-model="editForm.sizes" autocomplete="off"></el-input>
          <el-input
            v-model="editForm.sizes"
            autocomplete="off"
          ></el-input>
        </el-form-item>
        <el-form-item
          :label="$t('dataManage.vmobj.depName')"
@@ -467,7 +516,10 @@
          :label="$t('dataManage.vmobj.describe')"
          :label-width="formLabelWidth"
        >
          <el-input v-model="editForm.describe" autocomplete="off"></el-input>
          <el-input
            v-model="editForm.describe"
            autocomplete="off"
          ></el-input>
        </el-form-item>
        <!-- <el-form-item
          :label="$t('dataManage.vmobj.gather')"
@@ -476,28 +528,40 @@
          <el-input v-model="editForm.gather" autocomplete="off"></el-input>
        </el-form-item> -->
      </el-form>
      <div v-if="behavior == '修改信息'" slot="footer" class="dialog-footer">
        <el-button size="small" @click="cancelEdit()"
          >{{ $t("common.reset") }}
      <div
        v-if="behavior == '修改信息'"
        slot="footer"
        class="dialog-footer"
      >
        <el-button
          size="small"
          @click="cancelEdit()"
        >{{ $t("common.reset") }}
        </el-button>
        <el-button
          size="small"
          type="primary"
          @click="sendEdit('editForm')"
          v-loading.fullscreen.lock="fullscreenLoading"
          >{{ $t("common.submit") }}
        >{{ $t("common.submit") }}
        </el-button>
      </div>
      <div v-else slot="footer" class="dialog-footer">
        <el-button size="small" @click="cancelAdd('editForm')"
          >{{ $t("common.reset") }}
      <div
        v-else
        slot="footer"
        class="dialog-footer"
      >
        <el-button
          size="small"
          @click="cancelAdd('editForm')"
        >{{ $t("common.reset") }}
        </el-button>
        <el-button
          size="small"
          type="primary"
          @click="sendAdd('editForm')"
          v-loading.fullscreen.lock="fullscreenLoading"
          >{{ $t("common.submit") }}
        >{{ $t("common.submit") }}
        </el-button>
      </div>
    </el-dialog>
@@ -529,7 +593,10 @@
            align="center"
          ></el-table-column>
        </el-table>
        <div style="margin-top: 10px" class="pagination_box">
        <div
          style="margin-top: 10px"
          class="pagination_box"
        >
          <el-pagination
            @size-change="handleLoaderSizeChange"
            @current-change="handleLoaderCurrentChange"
@@ -543,7 +610,10 @@
        </div>
      </div>
    </el-dialog>
    <div class="downloadBox box_div subpage_Div" v-if="showCodeBox">
    <div
      class="downloadBox box_div subpage_Div"
      v-if="showCodeBox"
    >
      <h4 style="padding: 20px">{{ $t("common.passworld") }}</h4>
      <el-form
        :model="codeForm"
@@ -552,14 +622,20 @@
        label-width="100px"
        class="codeForm"
      >
        <el-form-item :label="$t('common.passworld')" prop="password">
        <el-form-item
          :label="$t('common.passworld')"
          prop="password"
        >
          <el-input
            type="password"
            v-model="codeForm.password"
            show-password
          ></el-input>
        </el-form-item>
        <el-form-item :label="$t('common.SPassword')" prop="repassword">
        <el-form-item
          :label="$t('common.SPassword')"
          prop="repassword"
        >
          <el-input
            type="password"
            v-model="codeForm.repassword"
@@ -567,11 +643,17 @@
          ></el-input>
        </el-form-item>
        <el-form-item>
          <el-button class="primary" size="small" @click="download('codeForm')"
            >{{ $t("common.confirm") }}
          <el-button
            class="primary"
            size="small"
            @click="download('codeForm')"
          >{{ $t("common.confirm") }}
          </el-button>
          <el-button type="info" size="small" @click="closeDown('codeForm')"
            >{{ $t("common.cancel") }}
          <el-button
            type="info"
            size="small"
            @click="closeDown('codeForm')"
          >{{ $t("common.cancel") }}
          </el-button>
        </el-form-item>
      </el-form>
@@ -582,17 +664,30 @@
      width="70%"
    >
      <div style="height: 65vh; width: 100%">
        <el-form :inline="true" :model="fromQueryMeta" class="demo-form-inline">
        <el-form
          :inline="true"
          :model="fromQueryMeta"
          class="demo-form-inline"
        >
          <el-form-item>
            <el-input size="small" v-model="fromQueryMeta.name"></el-input>
            <el-input
              size="small"
              v-model="fromQueryMeta.name"
            ></el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" size="small" @click="setSearchMetaData()"
              >查询
            <el-button
              type="primary"
              size="small"
              @click="setSearchMetaData()"
            >查询
            </el-button>
            <el-button type="info" size="small" @click="setRestMetaData()"
              >重置
            <el-button
              type="info"
              size="small"
              @click="setRestMetaData()"
            >重置
            </el-button>
          </el-form-item>
        </el-form>
@@ -648,7 +743,10 @@
            :label="$t('dataManage.dataUpObj.tableName')"
          >
            <template slot-scope="scope">
              <a class="scopeRowColor" @click="detail(scope.row)">{{
              <a
                class="scopeRowColor"
                @click="detail(scope.row)"
              >{{
                scope.row.tab
              }}</a>
            </template>
@@ -664,7 +762,10 @@
            :label="$t('dataManage.dataUpObj.describe')"
          />
        </el-table>
        <div class="pagination_box" style="margin-top: 15px">
        <div
          class="pagination_box"
          style="margin-top: 15px"
        >
          <el-pagination
            @size-change="handleMetaSizeChange"
            @current-change="handMetaCurrentChange"
@@ -736,7 +837,10 @@
            :label="$t('dataManage.dataUpObj.tableName')"
          >
            <template slot-scope="scope">
              <a class="scopeRowColor" @click="detail(scope.row)">{{
              <a
                class="scopeRowColor"
                @click="detail(scope.row)"
              >{{
                scope.row.tab
              }}</a>
            </template>
@@ -762,7 +866,10 @@
      width="70%"
      :close-on-click-modal="false"
    >
      <div v-if="dialog.isPdf" class="pdfClass">
      <div
        v-if="dialog.isPdf"
        class="pdfClass"
      >
        <iframe
          :src="dialog.src"
          type="application/x-google-chrome-pdf"
@@ -771,8 +878,15 @@
        >
        </iframe>
      </div>
      <div v-if="dialog.isJpg" class="pdfClass">
        <img style="width: 100%; height: 100%" :src="dialog.src" alt="" />
      <div
        v-if="dialog.isJpg"
        class="pdfClass"
      >
        <img
          style="width: 100%; height: 100%"
          :src="dialog.src"
          alt=""
        />
      </div>
    </el-dialog>
@@ -1430,7 +1544,7 @@
          this.editForm = {}
          done()
        })
        .catch(_ => {})
        .catch(_ => { })
    },
    // 提交修改