f95e2295 by zhangmeng

奖牌

1 parent 1119ab4e
......@@ -842,3 +842,11 @@ export function medalTableDetail(params) {
params
})
}
export function medalTableAll(params) {
return request({
url: `ztx/note/medalTableAll`,
method: 'get',
params
})
}
......
......@@ -183,7 +183,7 @@
<!-- <div class="text-primary esp">{{ scope.row.zuHe }}</div>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column width="60">
<el-table-column min-width="60">
<template #header>
<img class="mauto" src="@/assets/dance/1.png">
</template>
......@@ -191,7 +191,7 @@
<div class="text-warning text-center">{{ scope.row.gold }}</div>
</template>
</el-table-column>
<el-table-column width="60">
<el-table-column min-width="60">
<template #header>
<img class="mauto" src="@/assets/dance/2.png">
</template>
......@@ -199,7 +199,7 @@
<div class="text-blue text-center">{{ scope.row.silver }}</div>
</template>
</el-table-column>
<el-table-column width="60">
<el-table-column min-width="60">
<template #header>
<img class="mauto" src="@/assets/dance/3.png">
</template>
......@@ -207,6 +207,14 @@
<div class="text-primary text-center">{{ scope.row.bronze }}</div>
</template>
</el-table-column>
<el-table-column min-width="60">
<template #header>
<img class="mauto" src="@/assets/dance/4.png">
</template>
<template #default="scope">
<div class="text-danger text-center">{{ scope.row.total }}</div>
</template>
</el-table-column>
</el-table>
</el-card>
......
......@@ -43,7 +43,7 @@
</template>
</el-table-column>
<el-table-column :label="language==0?'国家':'Country'" prop="name">
<el-table-column :label="language==0?'国家':'Country'" min-width="200" prop="name">
<template #default="scope">
<div>
<span :class="`flag-icon flag-icon-${scope.row.code}`" />
......@@ -80,7 +80,23 @@
<div class="text-primary text-center">{{ scope.row.bronze }}</div>
</template>
</el-table-column>
<el-table-column min-width="60">
<template #header>
<img class="mauto" src="@/assets/dance/4.png">
</template>
<template #default="scope">
<div class="text-danger text-center">{{ scope.row.total }}</div>
</template>
</el-table-column>
</el-table>
<div v-if="total>0" class="pc-page-box">
<PaginationPc
v-model:limit="paramsQuery.pageSize" v-model:page="paramsQuery.pageNum"
:total="total"
@pagination="getRankList"
/>
</div>
</el-card>
<el-card v-for="(n,index) in cjList" :key="index" class="mt20 mb20" hidden>
......@@ -126,12 +142,14 @@ import { getPlanYears, getYearZtxPlanList } from '@/apiPc/train'
import { cjList } from '@/assets/js/data'
import { ArrowRight } from '@element-plus/icons-vue'
import { dayjs } from 'element-plus'
import * as match from '@/apiPc/match'
const router = useRouter()
import { useStorage } from '@vueuse/core/index'
import { getIndexScheduleList } from '@/apiPc/common'
import { getRank } from '@/apiPc/webSite'
import { useRouter } from 'vue-router'
import { medalTableAll } from '/@/apiPc/match'
const language = useStorage('language', 0)
const years = ref([])
......@@ -146,13 +164,19 @@ const query = ref({
// currentDate:dayjs().format('YYYY-MM-DD')
currentDate: '2025-07-17'
})
const paramsQuery = ref({
pageSize: 10,
pageNum: 1
})
const total = ref(0)
getScheduleList()
getRankList()
function getRankList() {
getRank().then(res => {
rank.value = res.data
match.medalTableAll(paramsQuery.value).then(res => {
rank.value = res.rows
total.value = res.total
})
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!