no message
Showing
4 changed files
with
91 additions
and
20 deletions
| ... | @@ -81,7 +81,12 @@ export function getCptsorts() { | ... | @@ -81,7 +81,12 @@ export function getCptsorts() { |
| 81 | method: 'get' | 81 | method: 'get' |
| 82 | }) | 82 | }) |
| 83 | } | 83 | } |
| 84 | 84 | export function getRank() { | |
| 85 | return request({ | ||
| 86 | url: `/ztx/note/medalTable`, | ||
| 87 | method: 'get' | ||
| 88 | }) | ||
| 89 | } | ||
| 85 | // 根据id查新闻列表 | 90 | // 根据id查新闻列表 |
| 86 | export function getNewsListById(query) { | 91 | export function getNewsListById(query) { |
| 87 | return request({ | 92 | return request({ | ... | ... |
| ... | @@ -152,18 +152,18 @@ | ... | @@ -152,18 +152,18 @@ |
| 152 | </el-col> | 152 | </el-col> |
| 153 | <el-col :sm="24" :lg="12"> | 153 | <el-col :sm="24" :lg="12"> |
| 154 | <div class="indexTitle"> | 154 | <div class="indexTitle"> |
| 155 | <h3 class="leftboderTT">奖牌榜(2023)</h3> | 155 | <h3 class="leftboderTT">奖牌榜</h3> |
| 156 | <a class="more" href="#/saiC">MORE</a> | 156 | <a class="more" href="#/saiC">MORE</a> |
| 157 | </div> | 157 | </div> |
| 158 | <!--历史排名--> | 158 | <!--历史排名--> |
| 159 | <el-card :body-style="{'padding':'10px 20px 18px'}"> | 159 | <el-card :body-style="{'padding':'10px 20px 18px'}"> |
| 160 | <el-table stripe :data="rankList"> | 160 | <el-table stripe :data="rank"> |
| 161 | <el-table-column label="名次" align="center" width="50" type="index"> | 161 | <el-table-column label="名次" align="center" width="50" type="index"> |
| 162 | <template #default="scope"> | 162 | <template #default="scope"> |
| 163 | <span v-if="scope.row.index == 1" style="color:#F8A617">{{ scope.row.index }}</span> | 163 | <span v-if="scope.row.mingCi == 1" style="color:#F8A617">{{ scope.row.mingCi }}</span> |
| 164 | <span v-else-if="scope.row.index == 2" style="color:#778B92">{{ scope.row.index }}</span> | 164 | <span v-else-if="scope.row.mingCi == 2" style="color:#778B92">{{ scope.row.mingCi }}</span> |
| 165 | <span v-else-if="scope.row.index == 3" style="color:#7F2D00">{{ scope.row.index }}</span> | 165 | <span v-else-if="scope.row.mingCi == 3" style="color:#7F2D00">{{ scope.row.mingCi }}</span> |
| 166 | <span v-else>{{ scope.row.index }}</span> | 166 | <span v-else>{{ scope.row.mingCi }}</span> |
| 167 | </template> | 167 | </template> |
| 168 | </el-table-column> | 168 | </el-table-column> |
| 169 | 169 | ||
| ... | @@ -171,13 +171,13 @@ | ... | @@ -171,13 +171,13 @@ |
| 171 | <template #default="scope"> | 171 | <template #default="scope"> |
| 172 | <div> | 172 | <div> |
| 173 | <span :class="`flag-icon flag-icon-${scope.row.code}`"></span> | 173 | <span :class="`flag-icon flag-icon-${scope.row.code}`"></span> |
| 174 | {{ scope.row.gj }} | 174 | {{ scope.row.countryName }} |
| 175 | </div> | 175 | </div> |
| 176 | </template> | 176 | </template> |
| 177 | </el-table-column> | 177 | </el-table-column> |
| 178 | <el-table-column label="组合" align="center"> | 178 | <el-table-column label="组合" align="center"> |
| 179 | <template #default="scope"> | 179 | <template #default="scope"> |
| 180 | <div class="text-primary esp">{{ scope.row.name }}</div> | 180 | <div class="text-primary esp">{{ scope.row.zuHe }}</div> |
| 181 | </template> | 181 | </template> |
| 182 | </el-table-column> | 182 | </el-table-column> |
| 183 | <el-table-column width="60"> | 183 | <el-table-column width="60"> |
| ... | @@ -404,7 +404,7 @@ import HomeQuick from '@/viewsPc/components/homeQuick' | ... | @@ -404,7 +404,7 @@ import HomeQuick from '@/viewsPc/components/homeQuick' |
| 404 | import HomeCalendar from '@/viewsPc/components/homeCalendar' | 404 | import HomeCalendar from '@/viewsPc/components/homeCalendar' |
| 405 | import {ref, nextTick, onMounted, watch} from 'vue' | 405 | import {ref, nextTick, onMounted, watch} from 'vue' |
| 406 | import {getCurrentInstance} from '@vue/runtime-core' | 406 | import {getCurrentInstance} from '@vue/runtime-core' |
| 407 | import {getHomePage, getNewsListById, getNewsList} from '@/apiPc/webSite' | 407 | import {getHomePage, getNewsListById, getNewsList, getRank} from '@/apiPc/webSite' |
| 408 | import {useRouter} from 'vue-router' | 408 | import {useRouter} from 'vue-router' |
| 409 | import {rankList} from '@/assets/js/data' | 409 | import {rankList} from '@/assets/js/data' |
| 410 | import _ from 'lodash' | 410 | import _ from 'lodash' |
| ... | @@ -433,6 +433,7 @@ const personList = ref([ | ... | @@ -433,6 +433,7 @@ const personList = ref([ |
| 433 | { name: 'Dallas Leslie Williams', pp: '记分长 澳大利亚', src: '/img/6.png' } | 433 | { name: 'Dallas Leslie Williams', pp: '记分长 澳大利亚', src: '/img/6.png' } |
| 434 | ]) | 434 | ]) |
| 435 | const activeNews = ref(0) | 435 | const activeNews = ref(0) |
| 436 | const rank = ref([]) | ||
| 436 | const banners = ref([]) | 437 | const banners = ref([]) |
| 437 | const newest = ref([]) | 438 | const newest = ref([]) |
| 438 | const newest2 = ref([]) | 439 | const newest2 = ref([]) |
| ... | @@ -456,6 +457,9 @@ const init = () => { | ... | @@ -456,6 +457,9 @@ const init = () => { |
| 456 | var today = dayjs().format('YYYY-MM-DD HH:mm:ss') | 457 | var today = dayjs().format('YYYY-MM-DD HH:mm:ss') |
| 457 | time.value = dayjs('2024-07-17 07:00:00').diff(today, 'millisecond') | 458 | time.value = dayjs('2024-07-17 07:00:00').diff(today, 'millisecond') |
| 458 | etime.value = dayjs('2024-07-22 12:00:00').diff(today, 'millisecond') | 459 | etime.value = dayjs('2024-07-22 12:00:00').diff(today, 'millisecond') |
| 460 | getRank().then(res=>{ | ||
| 461 | rank.value = res.data.slice(0,6) | ||
| 462 | }) | ||
| 459 | getNewsListById({ | 463 | getNewsListById({ |
| 460 | pageSize: time.value>0? 3:4, | 464 | pageSize: time.value>0? 3:4, |
| 461 | pageNum: 1, | 465 | pageNum: 1, | ... | ... |
| ... | @@ -128,31 +128,31 @@ | ... | @@ -128,31 +128,31 @@ |
| 128 | </el-col> | 128 | </el-col> |
| 129 | <el-col :sm="24" :lg="12"> | 129 | <el-col :sm="24" :lg="12"> |
| 130 | <div class="indexTitle"> | 130 | <div class="indexTitle"> |
| 131 | <h3 class="leftboderTT">MEDAL LIST(2023)</h3> | 131 | <h3 class="leftboderTT">MEDAL LIST</h3> |
| 132 | <a class="more" href="#/saiC">MORE</a> | 132 | <!-- <a class="more" href="#/saiC">MORE</a>--> |
| 133 | </div> | 133 | </div> |
| 134 | <!--历史排名--> | 134 | <!--历史排名--> |
| 135 | <el-card :body-style="{'padding':'10px 20px 18px'}"> | 135 | <el-card :body-style="{'padding':'10px 20px 18px'}"> |
| 136 | <el-table stripe :data="rankList"> | 136 | <el-table stripe :data="rank"> |
| 137 | <el-table-column label="RANK" align="center" width="80" type="index"> | 137 | <el-table-column label="RANK" align="center" width="80" type="index"> |
| 138 | <template #default="scope"> | 138 | <template #default="scope"> |
| 139 | <span v-if="scope.row.index == 1" style="color:#F8A617">{{ scope.row.index }}</span> | 139 | <span v-if="scope.row.mingCi == 1" style="color:#F8A617">{{ scope.row.mingCi }}</span> |
| 140 | <span v-else-if="scope.row.index == 2" style="color:#778B92">{{ scope.row.index }}</span> | 140 | <span v-else-if="scope.row.mingCi == 2" style="color:#778B92">{{ scope.row.mingCi }}</span> |
| 141 | <span v-else-if="scope.row.index == 3" style="color:#7F2D00">{{ scope.row.index }}</span> | 141 | <span v-else-if="scope.row.mingCi == 3" style="color:#7F2D00">{{ scope.row.mingCi }}</span> |
| 142 | <span v-else>{{ scope.row.index }}</span> | 142 | <span v-else>{{ scope.row.mingCi }}</span> |
| 143 | </template> | 143 | </template> |
| 144 | </el-table-column> | 144 | </el-table-column> |
| 145 | <el-table-column label="COUNTRY"> | 145 | <el-table-column label="COUNTRY"> |
| 146 | <template #default="scope"> | 146 | <template #default="scope"> |
| 147 | <div> | 147 | <div> |
| 148 | <span :class="`flag-icon flag-icon-${scope.row.code}`"></span> | 148 | <span :class="`flag-icon flag-icon-${scope.row.code}`"></span> |
| 149 | {{ scope.row.en_gj }} | 149 | {{ scope.row.countryShortName }} |
| 150 | </div> | 150 | </div> |
| 151 | </template> | 151 | </template> |
| 152 | </el-table-column> | 152 | </el-table-column> |
| 153 | <el-table-column label="COUPLE" align="center"> | 153 | <el-table-column label="COUPLE" align="center"> |
| 154 | <template #default="scope"> | 154 | <template #default="scope"> |
| 155 | <div class="text-primary esp">{{ scope.row.name }}</div> | 155 | <div class="text-primary esp">{{ scope.row.zuHe }}</div> |
| 156 | </template> | 156 | </template> |
| 157 | </el-table-column> | 157 | </el-table-column> |
| 158 | <el-table-column width="50"> | 158 | <el-table-column width="50"> |
| ... | @@ -376,7 +376,7 @@ | ... | @@ -376,7 +376,7 @@ |
| 376 | <script setup> | 376 | <script setup> |
| 377 | import { ref, nextTick, onMounted, watch } from 'vue' | 377 | import { ref, nextTick, onMounted, watch } from 'vue' |
| 378 | import { getCurrentInstance } from '@vue/runtime-core' | 378 | import { getCurrentInstance } from '@vue/runtime-core' |
| 379 | import { getNewsListById, getNewsList,getWeather} from '@/apiPc/webSite' | 379 | import {getNewsListById, getNewsList, getWeather, getRank} from '@/apiPc/webSite' |
| 380 | import { useRouter } from 'vue-router' | 380 | import { useRouter } from 'vue-router' |
| 381 | import _ from 'lodash' | 381 | import _ from 'lodash' |
| 382 | import HomeQuick from '@/viewsPc/components/homeQuick' | 382 | import HomeQuick from '@/viewsPc/components/homeQuick' |
| ... | @@ -408,6 +408,7 @@ const personList = ref([ | ... | @@ -408,6 +408,7 @@ const personList = ref([ |
| 408 | ]) | 408 | ]) |
| 409 | const activeNews = ref(0) | 409 | const activeNews = ref(0) |
| 410 | const banners = ref([]) | 410 | const banners = ref([]) |
| 411 | const rank = ref([]) | ||
| 411 | const newest = ref([]) | 412 | const newest = ref([]) |
| 412 | const newest2 = ref([]) | 413 | const newest2 = ref([]) |
| 413 | const news = ref([]) | 414 | const news = ref([]) |
| ... | @@ -433,6 +434,9 @@ const init = () => { | ... | @@ -433,6 +434,9 @@ const init = () => { |
| 433 | var today = dayjs().format('YYYY-MM-DD HH:mm:ss') | 434 | var today = dayjs().format('YYYY-MM-DD HH:mm:ss') |
| 434 | etime.value = dayjs('2024-07-22 12:00:00').diff(today, 'millisecond') | 435 | etime.value = dayjs('2024-07-22 12:00:00').diff(today, 'millisecond') |
| 435 | time.value = dayjs('2024-07-17 07:00:00').diff(today, 'millisecond') | 436 | time.value = dayjs('2024-07-17 07:00:00').diff(today, 'millisecond') |
| 437 | getRank().then(res=>{ | ||
| 438 | rank.value = res.data | ||
| 439 | }) | ||
| 436 | getNewsListById( | 440 | getNewsListById( |
| 437 | { pageSize: 4, | 441 | { pageSize: 4, |
| 438 | pageNum: 1, | 442 | pageNum: 1, | ... | ... |
| ... | @@ -33,7 +33,57 @@ | ... | @@ -33,7 +33,57 @@ |
| 33 | </el-col> | 33 | </el-col> |
| 34 | </el-row> | 34 | </el-row> |
| 35 | </el-card> | 35 | </el-card> |
| 36 | <el-card class="mt20 mb20"> | ||
| 37 | <el-table stripe :data="rank"> | ||
| 38 | <el-table-column label="名次" align="center" type="index"> | ||
| 39 | <template #default="scope"> | ||
| 40 | <span v-if="scope.row.mingCi == 1" style="color:#F8A617">{{ scope.row.mingCi }}</span> | ||
| 41 | <span v-else-if="scope.row.mingCi == 2" style="color:#778B92">{{ scope.row.mingCi }}</span> | ||
| 42 | <span v-else-if="scope.row.mingCi == 3" style="color:#7F2D00">{{ scope.row.mingCi }}</span> | ||
| 43 | <span v-else>{{ scope.row.mingCi }}</span> | ||
| 44 | </template> | ||
| 45 | </el-table-column> | ||
| 36 | 46 | ||
| 47 | <el-table-column label="国家" prop="name"> | ||
| 48 | <template #default="scope"> | ||
| 49 | <div> | ||
| 50 | <span :class="`flag-icon flag-icon-${scope.row.code}`"></span> | ||
| 51 | {{ scope.row.countryName }} | ||
| 52 | </div> | ||
| 53 | </template> | ||
| 54 | </el-table-column> | ||
| 55 | <el-table-column label="组合" align="center"> | ||
| 56 | <template #default="scope"> | ||
| 57 | <div class="text-primary esp">{{ scope.row.zuHe }}</div> | ||
| 58 | </template> | ||
| 59 | </el-table-column> | ||
| 60 | <el-table-column min-width="60"> | ||
| 61 | <template #header> | ||
| 62 | <img class="mauto" src="@/assets/dance/1.png"> | ||
| 63 | </template> | ||
| 64 | <template #default="scope"> | ||
| 65 | <div class="text-warning text-center">{{ scope.row.jin }}</div> | ||
| 66 | </template> | ||
| 67 | </el-table-column> | ||
| 68 | <el-table-column min-width="60"> | ||
| 69 | <template #header> | ||
| 70 | <img class="mauto" src="@/assets/dance/2.png"> | ||
| 71 | </template> | ||
| 72 | <template #default="scope"> | ||
| 73 | <div class="text-blue text-center">{{ scope.row.yin }}</div> | ||
| 74 | </template> | ||
| 75 | </el-table-column> | ||
| 76 | <el-table-column min-width="60"> | ||
| 77 | <template #header> | ||
| 78 | <img class="mauto" src="@/assets/dance/3.png"> | ||
| 79 | </template> | ||
| 80 | <template #default="scope"> | ||
| 81 | <div class="text-primary text-center">{{ scope.row.tong }}</div> | ||
| 82 | </template> | ||
| 83 | </el-table-column> | ||
| 84 | </el-table> | ||
| 85 | |||
| 86 | </el-card> | ||
| 37 | <el-card class="mt20 mb20" v-for="(n,index) in cjList" hidden> | 87 | <el-card class="mt20 mb20" v-for="(n,index) in cjList" hidden> |
| 38 | <div class="leftboderTT">{{ language==0?n.title:n.en_title }}</div> | 88 | <div class="leftboderTT">{{ language==0?n.title:n.en_title }}</div> |
| 39 | <div v-for="(m,jndex) in n.list"> | 89 | <div v-for="(m,jndex) in n.list"> |
| ... | @@ -79,12 +129,14 @@ import { dayjs } from 'element-plus' | ... | @@ -79,12 +129,14 @@ import { dayjs } from 'element-plus' |
| 79 | const router = useRouter() | 129 | const router = useRouter() |
| 80 | import {useStorage} from "@vueuse/core/index"; | 130 | import {useStorage} from "@vueuse/core/index"; |
| 81 | import {getIndexScheduleList} from "@/apiPc/common"; | 131 | import {getIndexScheduleList} from "@/apiPc/common"; |
| 132 | import {getRank} from '@/apiPc/webSite' | ||
| 82 | import {useRouter} from "vue-router"; | 133 | import {useRouter} from "vue-router"; |
| 83 | const language = useStorage('language', 0) | 134 | const language = useStorage('language', 0) |
| 84 | const years = ref([]) | 135 | const years = ref([]) |
| 85 | const currYear = ref(null) | 136 | const currYear = ref(null) |
| 86 | const ztxPlanList = ref([]) | 137 | const ztxPlanList = ref([]) |
| 87 | const planList = ref([]) | 138 | const planList = ref([]) |
| 139 | const rank = ref([]) | ||
| 88 | const schList = ref([]) | 140 | const schList = ref([]) |
| 89 | const loading = ref(false) | 141 | const loading = ref(false) |
| 90 | const currentDate = ref(dayjs('2024-07-17').toDate()) | 142 | const currentDate = ref(dayjs('2024-07-17').toDate()) |
| ... | @@ -94,6 +146,12 @@ const query = ref({ | ... | @@ -94,6 +146,12 @@ const query = ref({ |
| 94 | }) | 146 | }) |
| 95 | 147 | ||
| 96 | getScheduleList() | 148 | getScheduleList() |
| 149 | getRankList() | ||
| 150 | function getRankList() { | ||
| 151 | getRank().then(res=>{ | ||
| 152 | rank.value = res.data | ||
| 153 | }) | ||
| 154 | } | ||
| 97 | function getScheduleList() { | 155 | function getScheduleList() { |
| 98 | loading.value = true | 156 | loading.value = true |
| 99 | query.value.currentDate = dayjs(query.value.currentDate).format('YYYY-MM-DD') | 157 | query.value.currentDate = dayjs(query.value.currentDate).format('YYYY-MM-DD') | ... | ... |
-
Please register or sign in to post a comment