提交 fac5f62c authored 作者: 王鹏飞's avatar 王鹏飞

Revert "解决页面渲染问题"

This reverts commit 259c6ed9.
上级 757bf031
...@@ -59,16 +59,10 @@ onUnmounted(() => { ...@@ -59,16 +59,10 @@ onUnmounted(() => {
timer && clearInterval(timer) timer && clearInterval(timer)
}) })
const key = ref(0) const statistics = reactive({ competitor_count: 0, complete_answer_competitor_count: 0, starting_answer_competitor_count: 0 })
const statistics = reactive({
competitor_count: 0,
complete_answer_competitor_count: 0,
starting_answer_competitor_count: 0
})
async function fetchStatistics(competition_id: string, platform_key = 'career_data_analysis') { async function fetchStatistics(competition_id: string, platform_key = 'career_data_analysis') {
const res = await getCompetitionStatistics({ competition_id, platform_key }) const res = await getCompetitionStatistics({ competition_id, platform_key })
Object.assign(statistics, res.data.detail) Object.assign(statistics, res.data.detail)
key.value++
} }
const competitorsList = ref([]) const competitorsList = ref([])
...@@ -195,7 +189,7 @@ function getModuleStatus(row: any, index: number) { ...@@ -195,7 +189,7 @@ function getModuleStatus(row: any, index: number) {
</script> </script>
<template> <template>
<AppCard :key="key"> <AppCard>
<h2 class="end-countdown"> <h2 class="end-countdown">
结束倒计时:<span>{{ countdown }}</span> 结束倒计时:<span>{{ countdown }}</span>
</h2> </h2>
...@@ -204,12 +198,7 @@ function getModuleStatus(row: any, index: number) { ...@@ -204,12 +198,7 @@ function getModuleStatus(row: any, index: number) {
<el-option v-for="item in competitionList" :key="item.id" :value="item" :label="item.name"></el-option> <el-option v-for="item in competitionList" :key="item.id" :value="item" :label="item.name"></el-option>
</el-select> </el-select>
<el-select v-model="platformKey" size="large"> <el-select v-model="platformKey" size="large">
<el-option <el-option v-for="item in platformKeys" :key="item.platform_key" :value="item.platform_key" :label="item.name"></el-option>
v-for="item in platformKeys"
:key="item.platform_key"
:value="item.platform_key"
:label="item.name"
></el-option>
</el-select> </el-select>
</el-row> </el-row>
<ul class="statistics"> <ul class="statistics">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论