Browse Source

更改导入记录

shibei_master
dai 3 years ago
parent
commit
ea773405ed
  1. 47
      src/views/modules/importRecord/index.vue

47
src/views/modules/importRecord/index.vue

@ -1,7 +1,6 @@
<template> <template>
<div class="resi-container"> <div class="resi-container">
<el-card class="resi-card-table"> <el-card class="resi-card-table">
<el-table <el-table
:data="tableData" :data="tableData"
border border
@ -15,23 +14,31 @@
<el-table-column prop="startTime" label="导入时间"> </el-table-column> <el-table-column prop="startTime" label="导入时间"> </el-table-column>
<el-table-column label="导入状态" align="center" width="180"> <el-table-column label="导入状态" align="center" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span <span v-if="scope.row.processStatus == 'processing'">导入中</span>
v-if="scope.row.processStatus == 'processing'" <span v-else-if="scope.row.processStatus == 'finished_success'"
>导入中</span
>
<span
v-else-if="scope.row.processStatus == 'finished_success'"
>已完成</span >已完成</span
> >
<a target="_blank" <span v-else-if="scope.row.processStatus == 'finished_fail'"
>导入失败</span
>
</template>
</el-table-column>
<el-table-column label="结果说明" align="center" width="180">
<template slot-scope="scope">
<a
target="_blank"
:href="scope.row.resultDescFile" :href="scope.row.resultDescFile"
style="color: #00a7a9;cursor:pointer;" style="color: #00a7a9; cursor: pointer"
v-else-if="scope.row.processStatus == 'finished_fail' && scope.row.resultDescFile" v-if="scope.row.resultDescFile"
>下载失败说明</a >下载结果说明</a
> >
<span <span
v-else-if="scope.row.processStatus == 'finished_fail' && !scope.row.resultDescFile" style="color: #00a7a9; cursor: pointer"
>导入失败未知错误</span v-else-if="
scope.row.processStatus == 'finished_fail' &&
!scope.row.resultDescFile
"
>未知错误</span
> >
</template> </template>
</el-table-column> </el-table-column>
@ -82,13 +89,13 @@ export default {
}; };
}, },
computed: { computed: {
tableHeight () { tableHeight() {
const h = this.clientHeight - 240 + this.iframeHeigh const h = this.clientHeight - 240 + this.iframeHeigh;
const _h = this.clientHeight - 240 const _h = this.clientHeight - 240;
return this.$store.state.inIframe ? h : _h return this.$store.state.inIframe ? h : _h;
}, },
...mapGetters(['clientHeight', 'iframeHeight']) ...mapGetters(["clientHeight", "iframeHeight"]),
}, },
watch: {}, watch: {},
mounted() { mounted() {
@ -172,12 +179,8 @@ export default {
} }
} }
.resi-btns { .resi-btns {
margin-top: 20px; margin-top: 20px;
text-align: center; text-align: center;
} }
</style> </style>

Loading…
Cancel
Save