【bug】 增加酒店信息 会议文件下载接口增加type参数
This commit is contained in:
@@ -97,14 +97,15 @@ export default {
|
|||||||
console.log(file)
|
console.log(file)
|
||||||
if(this.isMeetingDataBool){
|
if(this.isMeetingDataBool){
|
||||||
// 会议资料更换了接口
|
// 会议资料更换了接口
|
||||||
downloadFile(`sys/common/userDownload/${file.id}`, file.name)
|
downloadFile(`sys/common/userDownload/${file.id}?type=download`, file.name)
|
||||||
|
// downloadFile('/meeting/payMeeting/userDownload/{+'file.id'+}/{+'meetingId+}')
|
||||||
}else {
|
}else {
|
||||||
downloadFile(`sys/common/download/${file.id}`, file.name)
|
downloadFile(`sys/common/download/${file.id}?type=download`, file.name)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handlePreview(file) {
|
handlePreview(file) {
|
||||||
if (file && file.id) {
|
if (file && file.id) {
|
||||||
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}`
|
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}&type=view`
|
||||||
let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
|
let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
|
||||||
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
|
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
|
||||||
window.open(url)
|
window.open(url)
|
||||||
|
|||||||
@@ -41,6 +41,24 @@
|
|||||||
<span><j-ellipsis :value="model.directorName" :length="20"></j-ellipsis></span>
|
<span><j-ellipsis :value="model.directorName" :length="20"></j-ellipsis></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<a-row :gutter="24" class="flex-col">
|
||||||
|
<a-col :span="12">
|
||||||
|
<label>酒店名称:</label><span>{{ model.hotelName }}</span>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<label>酒店地址:</label><span>{{ model.hotelAddress }}</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
|
||||||
|
<a-row :gutter="24" class="flex-col">
|
||||||
|
<a-col>
|
||||||
|
<label class="label">酒店联系人及手机号:</label>
|
||||||
|
<span class="content"
|
||||||
|
v-for="(item,index) of model.hotelContactsList"
|
||||||
|
:key="index">
|
||||||
|
{{ item.hotelContacts + ':' + item.hotelContactsPhone + ' ' }}</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
<a-row :gutter="24" class="flex-col">
|
<a-row :gutter="24" class="flex-col">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<label>报名截止时间:</label>
|
<label>报名截止时间:</label>
|
||||||
@@ -522,12 +540,11 @@
|
|||||||
|
|
||||||
</template>
|
</template>
|
||||||
</section>
|
</section>
|
||||||
|
<div v-if=" (model.meetingSignUpType+'' === '1' && !compareCurrentTime(model.registerDeadline)) ">
|
||||||
<div v-if="model.meetingSignUpType+'' === '1' ">
|
|
||||||
<a-button type="primary" @click="goSignUpPage" >报名 </a-button>
|
<a-button type="primary" @click="goSignUpPage" >报名 </a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<!--报名信息end-->
|
<!--报名信息end-->ArriveAndInvoivingList
|
||||||
<!--会议资料begin-->
|
<!--会议资料begin-->
|
||||||
<section class="base-info">
|
<section class="base-info">
|
||||||
<h3 class="title">会议资料</h3>
|
<h3 class="title">会议资料</h3>
|
||||||
@@ -782,6 +799,18 @@ export default {
|
|||||||
window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${record.postNo}`)
|
window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${record.postNo}`)
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
|
* 当前时间是否超过会议报名时间
|
||||||
|
* */
|
||||||
|
compareCurrentTime(time) {
|
||||||
|
let date = new Date()
|
||||||
|
let compareTime = new Date(time)
|
||||||
|
if (date.getTime() > compareTime.getTime()) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/*
|
||||||
* 通过会议id获取会议性情
|
* 通过会议id获取会议性情
|
||||||
* */
|
* */
|
||||||
queryMeetingInfoById(id) {
|
queryMeetingInfoById(id) {
|
||||||
|
|||||||
@@ -129,14 +129,14 @@ export default {
|
|||||||
console.log(file)
|
console.log(file)
|
||||||
if(this.hasLimitBool){
|
if(this.hasLimitBool){
|
||||||
// 会议资料更换了接口
|
// 会议资料更换了接口
|
||||||
downloadFile(`/meeting/payMeeting/userDownload/${file.id}/${this.meetingId}`, file.name)
|
downloadFile(`/meeting/payMeeting/userDownload/${file.id}/${this.meetingId}?type=download`, file.name)
|
||||||
}else {
|
}else {
|
||||||
downloadFile(`sys/common/download/${file.id}`, file.name)
|
downloadFile(`sys/common/download/?type=download${file.id}`, file.name)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handlePreview(file) {
|
handlePreview(file) {
|
||||||
if (file && file.id) {
|
if (file && file.id) {
|
||||||
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}`
|
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}&type=view`
|
||||||
let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
|
let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
|
||||||
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
|
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
|
||||||
window.open(url)
|
window.open(url)
|
||||||
|
|||||||
Reference in New Issue
Block a user