bb02d2eb by 杨炀

no message

1 parent 8f61ec56
...@@ -184,11 +184,11 @@ export function getSupplementInfo(id) { ...@@ -184,11 +184,11 @@ export function getSupplementInfo(id) {
184 }) 184 })
185 } 185 }
186 186
187 export function getMySignInfo(data) { 187 export function getMySignInfo(query) {
188 return request({ 188 return request({
189 url: `/league/sign/getMySignInfo`, 189 url: `/league/sign/getMySignInfo`,
190 method: 'post', 190 method: 'get',
191 data: data 191 params: query
192 }) 192 })
193 } 193 }
194 194
......
...@@ -90,6 +90,13 @@ export function getNewsListById(query) { ...@@ -90,6 +90,13 @@ export function getNewsListById(query) {
90 params: query 90 params: query
91 }) 91 })
92 } 92 }
93 export function getnoteListcptid(query) {
94 return request({
95 url: `/ztx/note/noteList`,
96 method: 'get',
97 params: query
98 })
99 }
93 export function getNewsList(query) { 100 export function getNewsList(query) {
94 return request({ 101 return request({
95 url: `/ztx-webSite/website/getNoticeTopList`, 102 url: `/ztx-webSite/website/getNoticeTopList`,
......
...@@ -153,6 +153,9 @@ function getData() { ...@@ -153,6 +153,9 @@ function getData() {
153 if (user.utype == '1') { 153 if (user.utype == '1') {
154 match.getMyPersonInfo().then(res => { 154 match.getMyPersonInfo().then(res => {
155 myform.value = res.data 155 myform.value = res.data
156 if(language.value=='1'){
157 myform.value.type = '1'
158 }
156 }) 159 })
157 } 160 }
158 161
......
...@@ -337,7 +337,12 @@ function afterRecover() { ...@@ -337,7 +337,12 @@ function afterRecover() {
337 } 337 }
338 338
339 function goPrev() { 339 function goPrev() {
340 router.go(-1) 340 router.push({
341 name: `chooseCoach`,
342 query: {
343 matchId: matchId.value
344 }
345 })
341 } 346 }
342 347
343 function chooseSportman() { 348 function chooseSportman() {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
17 <div class="border-info mt20" v-if="language==0"> 17 <div class="border-info mt20" v-if="language==0">
18 审核结果,后续将以邮件形式正式通知您。 18 审核结果,后续将以邮件形式正式通知您。
19 <br/> 19 <br/>
20 邮件发送账号:<span class="text-primary">{{ user.email }}</span> 20 邮件发送账号:<span class="text-primary">wdsfwuxicenter@wdsfwuxicenter.com</span>
21 ,请关注相关邮件通知。 21 ,请关注相关邮件通知。
22 <br/> 22 <br/>
23 如果您的报名信息审核通过,邮件正文会附上相关费用的支付链接,请通过链接完成支付,完成报名。 23 如果您的报名信息审核通过,邮件正文会附上相关费用的支付链接,请通过链接完成支付,完成报名。
......
...@@ -177,6 +177,11 @@ function submitForm() { ...@@ -177,6 +177,11 @@ function submitForm() {
177 if (editgay) { 177 if (editgay) {
178 // id不是0 178 // id不是0
179 form.value.cptId = cptId.value 179 form.value.cptId = cptId.value
180 if(Array.isArray(form.value.passportUrl)){
181 form.value.passportUrl = form.value.passportUrl[0].url
182 } else {
183 form.value.passportUrl = form.value.passportUrl
184 }
180 match.editPersonInfo(form.value).then(res => { 185 match.editPersonInfo(form.value).then(res => {
181 ElMessage.success('保存成功') 186 ElMessage.success('保存成功')
182 show.value = false 187 show.value = false
...@@ -208,6 +213,11 @@ function submitForm() { ...@@ -208,6 +213,11 @@ function submitForm() {
208 form.value.wdsfMin = form.value.min 213 form.value.wdsfMin = form.value.min
209 form.value.idcCode = form.value.passportNumber 214 form.value.idcCode = form.value.passportNumber
210 form.value.idcType = '1' 215 form.value.idcType = '1'
216 if(Array.isArray(form.value.passportUrl)){
217 form.value.passportUrl = form.value.passportUrl[0].url
218 } else {
219 form.value.passportUrl = form.value.passportUrl
220 }
211 match.savePersonForMyPerson(form.value).then(res => { 221 match.savePersonForMyPerson(form.value).then(res => {
212 ElMessage.success('保存成功') 222 ElMessage.success('保存成功')
213 show.value = false 223 show.value = false
......
...@@ -170,6 +170,7 @@ function cancel() { ...@@ -170,6 +170,7 @@ function cancel() {
170 function editPerson(row) { 170 function editPerson(row) {
171 const params = { 171 const params = {
172 id: row.id, 172 id: row.id,
173 title: language.value == 0 ?'编辑人员':'Edit Person',
173 groupId: groupId 174 groupId: groupId
174 } 175 }
175 proxy.$refs['dialogAddCoach'].open(params) 176 proxy.$refs['dialogAddCoach'].open(params)
......
...@@ -36,12 +36,25 @@ const props = defineProps({ ...@@ -36,12 +36,25 @@ const props = defineProps({
36 groupId: { 36 groupId: {
37 type: Object, 37 type: Object,
38 required: false 38 required: false
39 },
40 matchId: {
41 type: String,
42 required: false
39 } 43 }
40 }) 44 })
41 const user = useUserStore().user 45 const user = useUserStore().user
42 const groupInfo = useUserStore().group 46 const groupInfo = useUserStore().group
43 if(props.groupId){ 47 if(props.groupId){
44 getGroupInfo() 48 if(props.matchId){
49 getGroupIdByCptId()
50 } else {
51 getGroupInfo()
52 }
53 }
54 function getGroupIdByCptId() {
55 match.getMyGroupForCpt(props.groupId, props.matchId).then(res=>{
56 groupInfo.value = res.data
57 })
45 } 58 }
46 function getGroupInfo() { 59 function getGroupInfo() {
47 match.getGroupInfo().then(res => { 60 match.getGroupInfo().then(res => {
......
...@@ -39,7 +39,7 @@ import {onMounted, ref} from "vue"; ...@@ -39,7 +39,7 @@ import {onMounted, ref} from "vue";
39 import cache from '@/plugins/cache' 39 import cache from '@/plugins/cache'
40 import {getMatchNewslistByCode} from "@/apiPc/match"; 40 import {getMatchNewslistByCode} from "@/apiPc/match";
41 import {useRouter} from "vue-router"; 41 import {useRouter} from "vue-router";
42 import {getNewsListById} from "@/apiPc/webSite"; 42 import {getNewsListById, getnoteListcptid} from "@/apiPc/webSite";
43 const language = ref(cache.local.get('language') || 0) 43 const language = ref(cache.local.get('language') || 0)
44 const router = useRouter() 44 const router = useRouter()
45 const props = defineProps({ 45 const props = defineProps({
...@@ -72,17 +72,17 @@ onMounted(() => { ...@@ -72,17 +72,17 @@ onMounted(() => {
72 getList3(query3.value) 72 getList3(query3.value)
73 }) 73 })
74 const getList = (obj) => { 74 const getList = (obj) => {
75 getNewsListById(obj).then(res => { 75 getnoteListcptid(obj).then(res => {
76 newsList.value = res.rows 76 newsList.value = res.rows
77 }) 77 })
78 } 78 }
79 const getList2 = (obj) => { 79 const getList2 = (obj) => {
80 getNewsListById(obj).then(res => { 80 getnoteListcptid(obj).then(res => {
81 newsList2.value = res.rows 81 newsList2.value = res.rows
82 }) 82 })
83 } 83 }
84 const getList3 = (obj) => { 84 const getList3 = (obj) => {
85 getNewsListById(obj).then(res => { 85 getnoteListcptid(obj).then(res => {
86 newsList3.value = res.rows 86 newsList3.value = res.rows
87 }) 87 })
88 } 88 }
......
...@@ -77,6 +77,8 @@ ...@@ -77,6 +77,8 @@
77 </el-table> 77 </el-table>
78 <div v-if="showSummary" class="rowSummary"> 78 <div v-if="showSummary" class="rowSummary">
79 <div> 79 <div>
80 {{ language==0?'总人数':'Count' }}: <span class="mr20">{{ list.length }}</span>
81
80 {{ language==0?'金额小计':'Amount' }}: <span>{{ language==0?'¥':'£' }}{{ total }}</span> 82 {{ language==0?'金额小计':'Amount' }}: <span>{{ language==0?'¥':'£' }}{{ total }}</span>
81 </div> 83 </div>
82 </div> 84 </div>
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
31 </el-table> 31 </el-table>
32 <div v-if="showSummary" class="rowSummary"> 32 <div v-if="showSummary" class="rowSummary">
33 <div> 33 <div>
34 {{ language==0?'总报项数':'Count' }}: <span class="mr20">{{ list.length }}</span>
35
34 {{ language==0?'金额小计':'Amount' }}: <span>{{ language==0?'¥':'£' }}{{ total }}</span> 36 {{ language==0?'金额小计':'Amount' }}: <span>{{ language==0?'¥':'£' }}{{ total }}</span>
35 </div> 37 </div>
36 </div> 38 </div>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
6 </el-card> 6 </el-card>
7 <el-card :body-style="{ padding: '0px' }"> 7 <el-card :body-style="{ padding: '0px' }">
8 <match-info-row v-if="matchId" :match-id="matchId"/> 8 <match-info-row v-if="matchId" :match-id="matchId"/>
9 <group-info-row /> 9 <group-info-row v-if="matchId" :match-id="matchId" :group-id="groupId"/>
10 <coach-info-row v-if="matchId" :match-id="matchId" :language="language"/> 10 <coach-info-row v-if="matchId" :match-id="matchId" :language="language"/>
11 <div style="margin: 20px"> 11 <div style="margin: 20px">
12 12
...@@ -42,10 +42,14 @@ ...@@ -42,10 +42,14 @@
42 </div> 42 </div>
43 </el-col> 43 </el-col>
44 <el-col :lg="8" :xs="24" class="text-right pd20"> 44 <el-col :lg="8" :xs="24" class="text-right pd20">
45
45 <el-link type="primary" @click="exportSignList(1)"><el-icon><Upload /></el-icon> 46 <el-link type="primary" @click="exportSignList(1)"><el-icon><Upload /></el-icon>
46 {{ language==0?'导出参赛人员清单':'Export Participant List' }}</el-link> 47 {{ language==0?'导出参赛人员清单':'Export Participant List' }}</el-link>
47 <el-link type="primary" @click="exportSignList(2)"><el-icon><Upload /></el-icon> 48 <el-link type="primary" @click="exportSignList(2)"><el-icon><Upload /></el-icon>
48 {{ language==0?'导出设项报名清单':'Registration Fee for Event Entry' }}</el-link> 49 {{ language==0?'导出设项报名清单':'Registration Fee for Event Entry' }}</el-link>
50
51 <el-link type="primary" @click="exportPdf"><el-icon><Upload /></el-icon>
52 {{ language==0?'导出pdf':'Export PDF' }}</el-link>
49 </el-col> 53 </el-col>
50 </el-row> 54 </el-row>
51 <div class="text-center pd20"> 55 <div class="text-center pd20">
...@@ -175,6 +179,25 @@ function exportSignList(n) { ...@@ -175,6 +179,25 @@ function exportSignList(n) {
175 } 179 }
176 180
177 } 181 }
182 function exportPdf() {
183 var obj = {
184 cptId: matchId.value,
185 groupId: groupId.value
186 }
187 var fileName
188 if(language.value==0){
189 fileName = '设项报名清单'
190 proxy.download('/league/sign/exportCn', {
191 ...obj
192 }, `${fileName}_${new Date().getTime()}.pdf`)
193 } else {
194 fileName = 'Participant List'
195 proxy.download('/league/sign/exportEn', {
196 ...obj
197 }, `${fileName}_${new Date().getTime()}.pdf`)
198 }
199
200 }
178 </script> 201 </script>
179 202
180 <style scoped lang="scss"> 203 <style scoped lang="scss">
......
...@@ -190,11 +190,11 @@ onMounted(() => { ...@@ -190,11 +190,11 @@ onMounted(() => {
190 }) 190 })
191 191
192 function sendsmsMsg() { 192 function sendsmsMsg() {
193 if (!form.value.account) { 193 if (!wdsfData.value.email) {
194 if (language.value == 0) { 194 if (language.value == 0) {
195 ElMessage.error('请填写手机/邮箱') 195 ElMessage.error('请填写邮箱')
196 } else { 196 } else {
197 ElMessage.error('Please fill in your phone/email address') 197 ElMessage.error('Please fill in your email address')
198 } 198 }
199 return 199 return
200 } 200 }
...@@ -251,7 +251,7 @@ function codeSuccess(msg) { ...@@ -251,7 +251,7 @@ function codeSuccess(msg) {
251 } 251 }
252 if (isCodeTrue.value == 2) { 252 if (isCodeTrue.value == 2) {
253 counting.value = true 253 counting.value = true
254 getCaptchaSms({account: form.value.account}).then(res => { 254 getCaptchaSms({account: wdsfData.value.email}).then(res => {
255 255
256 }) 256 })
257 } 257 }
...@@ -293,9 +293,13 @@ function next() { ...@@ -293,9 +293,13 @@ function next() {
293 password: form.value.password, 293 password: form.value.password,
294 sex: wdsfData.value.sex, 294 sex: wdsfData.value.sex,
295 birth: wdsfData.value.birthday, 295 birth: wdsfData.value.birthday,
296 passportUrl: wdsfData.value.passportUrl[0].url,
297 passportNumber: wdsfData.value.passportNumber, 296 passportNumber: wdsfData.value.passportNumber,
298 } 297 }
298 if(Array.isArray(wdsfData.value.passportUrl)){
299 obj.passportUrl = form.value.passportUrl[0].url
300 } else {
301 obj.passportUrl = wdsfData.value.passportUrl || ''
302 }
299 registerSingle(obj).then(res => { 303 registerSingle(obj).then(res => {
300 setToken(res.data.token) 304 setToken(res.data.token)
301 console.log(matchId.value) 305 console.log(matchId.value)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!