|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <dynamic-table height="800px" :rows="tableList" :columns="columns" @expand-change="expand" >
|
|
|
+ <dynamic-table v-loading="loading" ref="table" height="800px" :rows="tableList" :columns="columns" @expand-change="expand" >
|
|
|
<template #t0="{row}">
|
|
|
<!-- 录取概率 -->
|
|
|
<div>
|
|
@@ -40,35 +40,17 @@
|
|
|
</template>
|
|
|
<template #t4="{row}">
|
|
|
<div class="f14">
|
|
|
- <div v-if="row.histories[0]">
|
|
|
- <p>{{ row.histories[0].numReal || '-' }}</p>
|
|
|
-<!-- <p>{{ row.histories[0].lineDiff || '-' }}</p>-->
|
|
|
- <p>{{ row.histories[0].score || '-' }}</p>
|
|
|
- <p>{{ row.histories[0].seat || '-' }}</p>
|
|
|
- </div>
|
|
|
- <span v-else>暂无</span>
|
|
|
+ <p>{{ row.history? row.history.numReal || '-' : '-'}}</p>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #t5="{row}">
|
|
|
<div class="f14">
|
|
|
- <div v-if="row.histories[1]">
|
|
|
- <p>{{ row.histories[1].numReal || '-' }}</p>
|
|
|
-<!-- <p>{{ row.histories[1].lineDiff || '-' }}</p>-->
|
|
|
- <p>{{ row.histories[1].score || '-' }}</p>
|
|
|
- <p>{{ row.histories[1].seat || '-' }}</p>
|
|
|
- </div>
|
|
|
- <span v-else>暂无</span>
|
|
|
+ <p>{{ row.history? row.history.score || '-' : '-' }}</p>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #t6="{row}">
|
|
|
<div class="f14">
|
|
|
- <div v-if="row.histories[2]">
|
|
|
- <p>{{ row.histories[2].numReal || '-' }}</p>
|
|
|
-<!-- <p>{{ row.histories[2].lineDiff || '-' }}</p>-->
|
|
|
- <p>{{ row.histories[2].score || '-' }}</p>
|
|
|
- <p>{{ row.histories[2].seat || '-' }}</p>
|
|
|
- </div>
|
|
|
- <span v-else>暂无</span>
|
|
|
+ <p>{{ row.history? row.history.seat || '-' : '-'}}</p>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #t7="{row}">
|
|
@@ -81,13 +63,6 @@
|
|
|
<template #t0="{row}">
|
|
|
<!-- 录取概率 -->
|
|
|
<div>
|
|
|
-<!-- <p class="mb10"><span class="f18">{{ row.enrollRatio }}</span>%</p>-->
|
|
|
-<!-- <p class="mb10 f-9b f12">{{ row.enrollRatioText }}</p>-->
|
|
|
- <p>
|
|
|
-<!-- <el-tag type="success">冲</el-tag>-->
|
|
|
- <!-- <el-tag type="success">稳</el-tag>-->
|
|
|
- <!-- <el-tag type="success">保</el-tag>-->
|
|
|
- </p>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #t1="{row}">
|
|
@@ -112,35 +87,17 @@
|
|
|
</template>
|
|
|
<template #t4="{row}">
|
|
|
<div class="f14">
|
|
|
- <div v-if="row.histories[0]">
|
|
|
- <p>{{ row.histories[0].numReal || '-' }}</p>
|
|
|
-<!-- <p>{{ row.histories[0].lineDiff || '-' }}</p>-->
|
|
|
- <p>{{ row.histories[0].score || '-' }}</p>
|
|
|
- <p>{{ row.histories[0].seat || '-' }}</p>
|
|
|
- </div>
|
|
|
- <span v-else>暂无</span>
|
|
|
+ <p>{{ row.history? row.history.numReal || '-' : '-' }}</p>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #t5="{row}">
|
|
|
<div class="f14">
|
|
|
- <div v-if="row.histories[1]">
|
|
|
- <p>{{ row.histories[1].numReal || '-' }}</p>
|
|
|
-<!-- <p>{{ row.histories[1].lineDiff || '-' }}</p>-->
|
|
|
- <p>{{ row.histories[1].score || '-' }}</p>
|
|
|
- <p>{{ row.histories[1].seat || '-' }}</p>
|
|
|
- </div>
|
|
|
- <span v-else>暂无</span>
|
|
|
+ <p>{{ row.history ? row.history.score || '-' : '-' }}</p>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #t6="{row}">
|
|
|
<div class="f14">
|
|
|
- <div v-if="row.histories[2]">
|
|
|
- <p>{{ row.histories[2].numReal || '-' }}</p>
|
|
|
-<!-- <p>{{ row.histories[2].lineDiff || '-' }}</p>-->
|
|
|
- <p>{{ row.histories[2].score || '-' }}</p>
|
|
|
- <p>{{ row.histories[2].seat || '-' }}</p>
|
|
|
- </div>
|
|
|
- <span v-else>暂无</span>
|
|
|
+ <p>{{ row.history? row.history.seat || '-' : '-' }}</p>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #t7="{row}">
|
|
@@ -167,6 +124,10 @@ export default {
|
|
|
type: Array,
|
|
|
default: []
|
|
|
},
|
|
|
+ loading:{
|
|
|
+ type: Boolean,
|
|
|
+ default: []
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -212,6 +173,9 @@ export default {
|
|
|
expand(item) {
|
|
|
this.$emit('expand', item)
|
|
|
},
|
|
|
+ scrollTop() {
|
|
|
+ this.$refs.table.toScrollTop()
|
|
|
+ },
|
|
|
apply(item,index) {
|
|
|
this.$emit('apply',item,index)
|
|
|
},
|