管道基础大数据平台系统开发-【前端】-新系統界面
src/views/Archive/dataApplication.vue
@@ -109,6 +109,7 @@
      <el-table
        :data="tableData"
        style="width: 100%"
        border
        height="calc(100% - 20px)"
      >
        <el-table-column
@@ -167,6 +168,13 @@
              plain
              @click="handlDetails(scope.$index, scope.row)"
            >{{ $t("dataApply.details") }}</el-button>
            <el-button
              v-show="scope.row.guid != null"
              type="success"
              size="mini"
              plain
              @click="handlDownload(scope.$index, scope.row)"
            >{{ $t("common.download") }}</el-button>
          </template>
        </el-table-column>
      </el-table>
@@ -176,7 +184,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"
@@ -188,7 +196,6 @@
      :title="$t('dataApply.details')"
      :visible.sync="dialogDetailsVisible"
      width="50%"
      :before-close="handleClose"
    >
      <div>
        <el-form
@@ -196,7 +203,7 @@
          :model="detailsFrom"
          class="demo-form-inline"
        >
          <el-form-item label="表名:">
          <el-form-item label="申请数据名称:">
            <div class="statusLabel">{{ detailsFrom.tabs }}</div>
          </el-form-item><br />
          <el-form-item label="申请人:">
@@ -277,6 +284,11 @@
        </el-table>
      </div>
    </el-dialog>
    <iframe
      id="downFrame"
      src=""
      style="display: none; border: 0; padding: 0; height: 0; width: 0"
    ></iframe>
  </div>
</template>
@@ -290,6 +302,8 @@
  apply_updateForReject,
  apply_updateForResubmit,
} from "../../api/api";
import $ from 'jquery'
import { getToken } from '@/utils/auth';
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {
@@ -371,6 +385,7 @@
        return this.$message.error("列表调用失败");
      }
      this.detailsFrom.tableData = data1.result;
    },
    async handleReApply(index, row) {
      const data = await apply_updateForResubmit({ applyid: row.id });
@@ -396,6 +411,7 @@
      if (data.code != 200) {
        return this.$message.error("列表调用失败");
      }
      this.detailsFrom.tableData = data.result;
      this.detailsFrom.tabs = row.tabs;
      this.detailsFrom.uname = row.uname;
@@ -404,6 +420,12 @@
      this.detailsFrom.statued = row.status;
      this.dialogDetailsVisible = true;
    },
    async handlDownload(index, row) {
      var token = getToken()
      var url = BASE_URL + "/dataLib/downloadFile?token=" + token + "&guid=" + row.guid;
      $("#downFrame").attr("src", url).click();
    },
    matchState(state = "", reg) {
      var row = state.row;
      if (