920f6ab7 by 华明祺

no message

1 parent 04b3bff0
......@@ -790,6 +790,22 @@ export function getVisaInfo(query) {
})
}
export function downInvite(params) {
return request({
url: '/league/visa/downInvite',
method: 'get',
params
})
}
export function getUplaodFile(params) {
return request({
url: '/league/visa/getUplaodFile',
method: 'get',
params
})
}
export function listVisaInfo(query) {
return request({
url: '/league/visaInfo/list',
......
......@@ -36,6 +36,9 @@
</el-col>
<el-col :lg="6" :md="16" :sm="16" :xs="16">
<div class="text-right">
<el-button class="mb10" :disabled="b.emailFlag!='1'" plain round size="small" type="primary" @click="handleDownload(b)">
{{ language == 0 ? '下载邀请函' : 'Download Invitation' }}
</el-button>
<el-button class="mb10" plain round size="small" type="primary" @click="goDetail(b)">
{{ language == 0 ? '详情' : 'Detail' }}
</el-button>
......@@ -58,10 +61,11 @@ import useUserStore from "@/store/modules/user";
import {cancelOrder2, cancelOrder} from "/@/apiPc/booking";
import {ElMessage} from "element-plus";
import {getVisaInfo} from "/@/apiPc/match";
import {downInvite, getUplaodFile, getVisaInfo} from "/@/apiPc/match";
import AffixInvitationView from "/@/viewsPc/match/components/affix-invitation-view.vue";
import {ref} from "vue";
import {useRouter} from "vue-router";
import {fillImgUrl} from "/@/utils/ruoyi";
const router = useRouter()
const language = useStorage('language', 0)
......@@ -83,21 +87,6 @@ function finish(bill) {
function getList() {
getVisaInfo({userId: user.userId}).then(res => {
list.value = res.rows || []
for (let b of list.value) {
b.messageObj = JSON.parse(b.message) || {}
b.extJsonObj = JSON.parse(b.extJson) || {}
if (b.orderType == 5) {
try {
b.extJsonObj.ticketDate = b.extJsonObj.ticketDate ? JSON.parse(b.extJsonObj.ticketDate) : {}
b.extJsonObj.ticketType = b.extJsonObj.ticketType ? JSON.parse(b.extJsonObj.ticketType) : {}
} catch (e) {
console.log(e)
}
}
if (b.surplus && b.status == '0' && (b.surplus != '0,0' && b.surplus != '0')) {
b.countdown = Date.now() + Number((b.surplus.split(',')[0] * 60 + b.surplus.split(',')[1]) * 10)
}
}
})
}
......@@ -112,6 +101,12 @@ function goDetail(b) {
// })
}
function handleDownload(b) {
getUplaodFile({ id: b.id }).then(res => {
window.open(fillImgUrl(res.msg), '_blank')
})
}
function Rebook(row) {
console.log(row)
if (row.orderType == 0) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!