no message
Showing
2 changed files
with
27 additions
and
16 deletions
| ... | @@ -790,6 +790,22 @@ export function getVisaInfo(query) { | ... | @@ -790,6 +790,22 @@ export function getVisaInfo(query) { |
| 790 | }) | 790 | }) |
| 791 | } | 791 | } |
| 792 | 792 | ||
| 793 | export function downInvite(params) { | ||
| 794 | return request({ | ||
| 795 | url: '/league/visa/downInvite', | ||
| 796 | method: 'get', | ||
| 797 | params | ||
| 798 | }) | ||
| 799 | } | ||
| 800 | |||
| 801 | export function getUplaodFile(params) { | ||
| 802 | return request({ | ||
| 803 | url: '/league/visa/getUplaodFile', | ||
| 804 | method: 'get', | ||
| 805 | params | ||
| 806 | }) | ||
| 807 | } | ||
| 808 | |||
| 793 | export function listVisaInfo(query) { | 809 | export function listVisaInfo(query) { |
| 794 | return request({ | 810 | return request({ |
| 795 | url: '/league/visaInfo/list', | 811 | url: '/league/visaInfo/list', | ... | ... |
| ... | @@ -36,6 +36,9 @@ | ... | @@ -36,6 +36,9 @@ |
| 36 | </el-col> | 36 | </el-col> |
| 37 | <el-col :lg="6" :md="16" :sm="16" :xs="16"> | 37 | <el-col :lg="6" :md="16" :sm="16" :xs="16"> |
| 38 | <div class="text-right"> | 38 | <div class="text-right"> |
| 39 | <el-button class="mb10" :disabled="b.emailFlag!='1'" plain round size="small" type="primary" @click="handleDownload(b)"> | ||
| 40 | {{ language == 0 ? '下载邀请函' : 'Download Invitation' }} | ||
| 41 | </el-button> | ||
| 39 | <el-button class="mb10" plain round size="small" type="primary" @click="goDetail(b)"> | 42 | <el-button class="mb10" plain round size="small" type="primary" @click="goDetail(b)"> |
| 40 | {{ language == 0 ? '详情' : 'Detail' }} | 43 | {{ language == 0 ? '详情' : 'Detail' }} |
| 41 | </el-button> | 44 | </el-button> |
| ... | @@ -58,10 +61,11 @@ import useUserStore from "@/store/modules/user"; | ... | @@ -58,10 +61,11 @@ import useUserStore from "@/store/modules/user"; |
| 58 | import {cancelOrder2, cancelOrder} from "/@/apiPc/booking"; | 61 | import {cancelOrder2, cancelOrder} from "/@/apiPc/booking"; |
| 59 | 62 | ||
| 60 | import {ElMessage} from "element-plus"; | 63 | import {ElMessage} from "element-plus"; |
| 61 | import {getVisaInfo} from "/@/apiPc/match"; | 64 | import {downInvite, getUplaodFile, getVisaInfo} from "/@/apiPc/match"; |
| 62 | import AffixInvitationView from "/@/viewsPc/match/components/affix-invitation-view.vue"; | 65 | import AffixInvitationView from "/@/viewsPc/match/components/affix-invitation-view.vue"; |
| 63 | import {ref} from "vue"; | 66 | import {ref} from "vue"; |
| 64 | import {useRouter} from "vue-router"; | 67 | import {useRouter} from "vue-router"; |
| 68 | import {fillImgUrl} from "/@/utils/ruoyi"; | ||
| 65 | 69 | ||
| 66 | const router = useRouter() | 70 | const router = useRouter() |
| 67 | const language = useStorage('language', 0) | 71 | const language = useStorage('language', 0) |
| ... | @@ -83,21 +87,6 @@ function finish(bill) { | ... | @@ -83,21 +87,6 @@ function finish(bill) { |
| 83 | function getList() { | 87 | function getList() { |
| 84 | getVisaInfo({userId: user.userId}).then(res => { | 88 | getVisaInfo({userId: user.userId}).then(res => { |
| 85 | list.value = res.rows || [] | 89 | list.value = res.rows || [] |
| 86 | for (let b of list.value) { | ||
| 87 | b.messageObj = JSON.parse(b.message) || {} | ||
| 88 | b.extJsonObj = JSON.parse(b.extJson) || {} | ||
| 89 | if (b.orderType == 5) { | ||
| 90 | try { | ||
| 91 | b.extJsonObj.ticketDate = b.extJsonObj.ticketDate ? JSON.parse(b.extJsonObj.ticketDate) : {} | ||
| 92 | b.extJsonObj.ticketType = b.extJsonObj.ticketType ? JSON.parse(b.extJsonObj.ticketType) : {} | ||
| 93 | } catch (e) { | ||
| 94 | console.log(e) | ||
| 95 | } | ||
| 96 | } | ||
| 97 | if (b.surplus && b.status == '0' && (b.surplus != '0,0' && b.surplus != '0')) { | ||
| 98 | b.countdown = Date.now() + Number((b.surplus.split(',')[0] * 60 + b.surplus.split(',')[1]) * 10) | ||
| 99 | } | ||
| 100 | } | ||
| 101 | }) | 90 | }) |
| 102 | } | 91 | } |
| 103 | 92 | ||
| ... | @@ -112,6 +101,12 @@ function goDetail(b) { | ... | @@ -112,6 +101,12 @@ function goDetail(b) { |
| 112 | // }) | 101 | // }) |
| 113 | } | 102 | } |
| 114 | 103 | ||
| 104 | function handleDownload(b) { | ||
| 105 | getUplaodFile({ id: b.id }).then(res => { | ||
| 106 | window.open(fillImgUrl(res.msg), '_blank') | ||
| 107 | }) | ||
| 108 | } | ||
| 109 | |||
| 115 | function Rebook(row) { | 110 | function Rebook(row) { |
| 116 | console.log(row) | 111 | console.log(row) |
| 117 | if (row.orderType == 0) { | 112 | if (row.orderType == 0) { | ... | ... |
-
Please register or sign in to post a comment