|
@@ -13,14 +13,14 @@
|
|
|
|
|
|
<el-table-column label="解压密码" min-width="60" prop="secret">
|
|
|
<template v-slot="{ row }">
|
|
|
- <span> {{ row.isSend ? row.secret : '还未生成' }} </span>
|
|
|
+ <span> {{ row.isSend==1 ? row.secret : '---' }} </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column align="center" min-width="80px" label="操作" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-button v-if="row.isSend" type="success" size="small" icon="el-icon-circle-check" @click="download(row)">下载文件</el-button>
|
|
|
-
|
|
|
+ <el-button v-if="row.isSend==1" type="success" size="small" icon="el-icon-circle-check" @click="download(row)">下载文件</el-button>
|
|
|
+ <el-button v-else-if="row.isSend==2" type="text" size="small">拒绝下载</el-button>
|
|
|
<el-button v-else type="text" size="small">等待审核</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -103,12 +103,11 @@ export default {
|
|
|
download(row) {
|
|
|
let param = { articalId: row.articalId, isLeader: 0, id: row.id }
|
|
|
this.loading = true
|
|
|
- this.$message.successMsg('文件生成中', 1)
|
|
|
- downloadArtical(param)
|
|
|
- .then((res) => {
|
|
|
+ downloadArtical(param).then((res) => {
|
|
|
this.loading = false
|
|
|
+ this.$message.successMsg('下载文件', 1)
|
|
|
if (res.code == 200) {
|
|
|
- window.open(res.data, '_brank')
|
|
|
+ window.open(`${res.data}?${row.id}.zip`, '_brank')
|
|
|
return
|
|
|
}
|
|
|
})
|