【bug】会议资料的下载次数限制
This commit is contained in:
@@ -32,6 +32,12 @@ export default {
|
||||
fileId: {
|
||||
type: String,
|
||||
required: false
|
||||
},
|
||||
/* 是否是会议资料 会议资料有下载的限制 */
|
||||
isMeetingDataBool:{
|
||||
type:Boolean,
|
||||
required: false,
|
||||
default:false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -89,7 +95,12 @@ export default {
|
||||
},
|
||||
handleDownLoad(file) {
|
||||
console.log(file)
|
||||
downloadFile(`sys/common/download/${file.id}`, file.name)
|
||||
if(this.isMeetingDataBool){
|
||||
// 会议资料更换了接口
|
||||
downloadFile(`sys/common/userDownload/${file.id}`, file.name)
|
||||
}else {
|
||||
downloadFile(`sys/common/download/${file.id}`, file.name)
|
||||
}
|
||||
},
|
||||
handlePreview(file) {
|
||||
if (file && file.id) {
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
<a-row :gutter="24" class="flex-col">
|
||||
<a-col :span="12">
|
||||
<label>会议资料:</label>
|
||||
<span><preview-file :file-id="model.meetingData"></preview-file></span>
|
||||
<span><preview-file :file-id="model.meetingData" :is-meeting-data-bool="true"></preview-file></span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</section>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<!--上传了付款凭证才显示 -->
|
||||
<a-row :gutter="24" v-if="model.paymentRecord" class="flex-col">
|
||||
<a-col :span="12">
|
||||
<label>缴费状态:</label>
|
||||
<label>审核凭证p'te状态:</label>
|
||||
<span>{{ model.checkResult_dictText }}</span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@@ -99,7 +99,7 @@
|
||||
|
||||
</a-form>
|
||||
</section>
|
||||
</a-spin>
|
||||
</a-spin>l
|
||||
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">关闭</a-button>
|
||||
@@ -183,20 +183,22 @@ export default {
|
||||
this.form.resetFields()
|
||||
this.visible = true
|
||||
this.meetingName = param.meetingName
|
||||
// 是否是线上缴费
|
||||
this.payModeOnlineBool = param.payMode === 2 || false
|
||||
if (param.id) {
|
||||
// 获取参会人信息
|
||||
this.querySingUpUserInfo(this.singUpPerosnId).then(res => {
|
||||
this.model = {}
|
||||
this.model = res
|
||||
// 是否是线上缴费
|
||||
this.payModeOnlineBool = this.model.payMode === 2 || false
|
||||
// 如果缴费方式为汇款的并且上传了缴费凭证 回显缴费凭证
|
||||
if (this.model.paymentRecord && this.model.payMode === 1) {
|
||||
this.form.setFieldsValue({'paymentRecord': this.model.paymentRecord})
|
||||
}
|
||||
// 如果缴费方式为线上缴费并且上传了缴费凭证和订单后四位 需要回显
|
||||
if (this.model.paymentRecord && this.model.payMode === 2) {
|
||||
this.form.setFieldsValue({'paymentRecord': this.model.paymentRecord, 'orderCode': this.model.orderCode})
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue({'paymentRecord': this.model.paymentRecord, 'orderCode': this.model.orderCode})
|
||||
})
|
||||
}
|
||||
// 审核通过以后不可在上传
|
||||
if (this.model.checkResult === 1) {
|
||||
|
||||
Reference in New Issue
Block a user