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