6c5ea483 by zhangmeng

成绩查询

1 parent f20b684b
1 <template>
2 <div style="padding: 30px 20px 20px">
3 <!--成绩-->
4 <div v-html="matchData.scoreUrl" />
5 <el-empty
6 v-if="!matchData.scoreUrl" :image="`/img/order_no.png`" :image-size="228"
7 description=""
8 />
9
10 </div>
11 </template>
12
13 <script setup>
14
15 const props = defineProps({
16 matchData: {
17 type: Object,
18 required: true
19 }
20 })
21 </script>
22
23 <style lang="scss" scoped>
24 .time-address {
25 color: #666;
26 }
27
28 .indexTitle {
29 margin: 20px 0 12px;
30
31 h3 {
32 font-size: 20px;
33 color: var(--el-color-primary);
34 }
35 }
36
37 p img {
38 max-width: 100%;
39 }
40
41 .table {
42 width: 100%;
43 border-left: 1px solid #e1e1e1;
44 border-top: 1px solid #e1e1e1;
45
46 th {
47 background: #eee;
48 padding: 6px 10px;
49 border-right: 1px solid #e1e1e1;
50 border-bottom: 1px solid #e1e1e1;
51 font-size: 15px;
52 }
53
54 td {
55 padding: 6px 10px;
56 border-right: 1px solid #e1e1e1;
57 font-size: 15px;
58 border-bottom: 1px solid #e1e1e1;
59 vertical-align: middle;
60 text-align: center;
61
62 span {
63 margin-right: 10px
64 }
65
66 span::after {
67 content: ','
68 }
69
70 span:last-child::after {
71 content: ''
72 }
73 }
74 }
75 </style>
...@@ -304,8 +304,10 @@ ...@@ -304,8 +304,10 @@
304 304
305 </div> 305 </div>
306 <div v-if="menu[4].active==1"> 306 <div v-if="menu[4].active==1">
307 <!--成绩--> 307 <!-- &lt;!&ndash;成绩&ndash;&gt;-->
308 <el-empty :image="`/img/order_no.png`" :image-size="228" description="" /> 308 <!-- <el-empty :image="`/img/order_no.png`" :image-size="228" description="" />-->
309
310 <matchPerformance :match-data="matchData" />
309 </div> 311 </div>
310 <div v-if="menu[5].active==1" class="pd20"> 312 <div v-if="menu[5].active==1" class="pd20">
311 <div class="xzbox"> 313 <div class="xzbox">
...@@ -346,6 +348,7 @@ ...@@ -346,6 +348,7 @@
346 <substation-list v-if="menu1[0].active==1" :list="matchData.cpts" /> 348 <substation-list v-if="menu1[0].active==1" :list="matchData.cpts" />
347 <matchInfo v-if="menu1[1].active==1" :form="matchData" /> 349 <matchInfo v-if="menu1[1].active==1" :form="matchData" />
348 <match-schedule-list v-if="menu1[2].active==1" :match-data="matchData" /> 350 <match-schedule-list v-if="menu1[2].active==1" :match-data="matchData" />
351 <matchPerformance v-if="menu1[3].active==1" :match-data="matchData" />
349 </el-card> 352 </el-card>
350 </el-col> 353 </el-col>
351 </el-row> 354 </el-row>
...@@ -406,6 +409,9 @@ import SubstationList from '@/viewsPc/match/components/substation-list' ...@@ -406,6 +409,9 @@ import SubstationList from '@/viewsPc/match/components/substation-list'
406 import MatchInfoProjectList from '@/viewsPc/match/components/matchInfo-projectList' 409 import MatchInfoProjectList from '@/viewsPc/match/components/matchInfo-projectList'
407 import QuickRow from '@/viewsPc/match/components/quick-row' 410 import QuickRow from '@/viewsPc/match/components/quick-row'
408 import Pickup from '@/viewsPc/components/pickup' 411 import Pickup from '@/viewsPc/components/pickup'
412 import matchPerformance from '@/viewsPc/match/components/matchPerformance.vue'
413
414
409 import { getCurrentInstance, ref, watch } from 'vue' 415 import { getCurrentInstance, ref, watch } from 'vue'
410 import { reactive, onMounted } from '@vue/runtime-core' 416 import { reactive, onMounted } from '@vue/runtime-core'
411 import { useRoute, useRouter } from 'vue-router' 417 import { useRoute, useRouter } from 'vue-router'
...@@ -440,11 +446,15 @@ const data = reactive({ ...@@ -440,11 +446,15 @@ const data = reactive({
440 { name: 'Schedule', cn: '日程', active: 0 }, 446 { name: 'Schedule', cn: '日程', active: 0 },
441 { name: 'Participating teams', cn: '参赛人员', active: 0 }, 447 { name: 'Participating teams', cn: '参赛人员', active: 0 },
442 { name: 'Achievement', cn: '成绩', active: 0 }, 448 { name: 'Achievement', cn: '成绩', active: 0 },
443 { name: 'Notes', cn: '报名须知', active: 0 }], 449 { name: 'Notes', cn: '报名须知', active: 0 }
450 ],
444 menu1: [ 451 menu1: [
445 { name: 'Tournaments', cn: '分站赛', active: 1 }, 452 { name: 'Tournaments', cn: '分站赛', active: 1 },
446 { name: 'Event details', cn: '赛事详情', active: 0 }, 453 { name: 'Event details', cn: '赛事详情', active: 0 },
447 { name: 'Schedule', cn: '日程', active: 0 }], 454 { name: 'Schedule', cn: '日程', active: 0 },
455 { name: 'Achievement', cn: '成绩', active: 0 }
456 ],
457
448 signDoneGroupList: [], 458 signDoneGroupList: [],
449 signDoneGroupListToTal: 0, 459 signDoneGroupListToTal: 0,
450 queryGroupList: { 460 queryGroupList: {
...@@ -499,6 +509,7 @@ function getMatch(id) { ...@@ -499,6 +509,7 @@ function getMatch(id) {
499 loading.value = true 509 loading.value = true
500 match.getMatchById({ id: id }).then(res => { 510 match.getMatchById({ id: id }).then(res => {
501 matchData.value = res.data 511 matchData.value = res.data
512 console.log(666666, matchData.value)
502 loading.value = false 513 loading.value = false
503 const today = dayjs().format('YYYY-MM-DD HH:mm:ss') 514 const today = dayjs().format('YYYY-MM-DD HH:mm:ss')
504 time.value = dayjs(res.data.signEndTime).diff(today, 'millisecond') 515 time.value = dayjs(res.data.signEndTime).diff(today, 'millisecond')
...@@ -524,12 +535,12 @@ function getGroupListByCptId() { ...@@ -524,12 +535,12 @@ function getGroupListByCptId() {
524 535
525 function changeMenu(menu, l) { 536 function changeMenu(menu, l) {
526 console.log(matchData.value.leagueId, l.name) 537 console.log(matchData.value.leagueId, l.name)
527 if ( 538 // if (
528 matchData.value.leagueId == '1778253367748993026' && 539 // matchData.value.leagueId == '1778253367748993026' &&
529 (l.name == '成绩' || l.name == 'Achievement') 540 // (l.name == '成绩' || l.name == 'Achievement')
530 ) { 541 // ) {
531 window.open('http://www.cdsf.org.cn/h5/sscj.index?matchID=526') 542 // window.open('http://www.cdsf.org.cn/h5/sscj.index?matchID=526')
532 } 543 // }
533 for (const n of menu) { 544 for (const n of menu) {
534 if (n == l) { 545 if (n == l) {
535 n.active = 1 546 n.active = 1
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!