提交 780edb15 authored 作者: matian's avatar matian

style:代码提交

上级 68d892c3
......@@ -30,7 +30,7 @@ export default {
prop: 'paper_title',
align: 'center'
},
{ label: '班级', slots: 'table-name', align: 'center' },
{ label: '班级', slots: 'table-name', prop: 'class_name', align: 'center' },
{ label: '平均分', prop: 'cankao_num', align: 'center', sortable: 'custom' },
{ label: '客观题平均分', prop: 'efw', align: 'center', sortable: 'custom' },
{ label: '客观题最高分', prop: 'average_num', align: 'center', sortable: 'custom' },
......
......@@ -3,7 +3,7 @@
<template v-slot:paper_title="{ row }">
<div :class="`paper-title active${row.paper_title}`">{{ row.paper_title }}</div>
</template>
<template v-slot:table-operate="{ row }">
<template v-slot:table_operate="{ row }">
<el-button type="text" @click="toDetail(row)" v-if="tabActive === 'finished'">查看</el-button>
<el-button type="text" @click="toDetail(row)" v-else-if="tabActive === 'toEvaluate'">批阅</el-button>
<div v-else>-</div>
......@@ -28,12 +28,12 @@ export default {
return {
remote: {},
columns: [
{ label: '排名', slots: 'paper_title', align: 'center' },
{ label: '排名', slots: 'paper_title', prop: 'paper_title', align: 'center' },
{ label: '姓名', prop: 'class_name', align: 'center' },
{ label: '客观题', prop: 'cankao_num', align: 'center', sortable: 'custom', minWidth: 100 },
{ label: '主观题', prop: 'efw', align: 'center', sortable: true, minWidth: 100 },
{ label: '总分', prop: 'average_num', align: 'center', sortable: true },
{ label: '操作', slots: 'table-operate', align: 'center' }
{ label: '操作', slots: 'table_operate', align: 'center' }
],
data: [
{
......
......@@ -4,7 +4,7 @@
<h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">分数排名</h1>
<el-button type="text" style="font-size: 16px; color: #aa1941; float: right; margin-top: -30px">导出</el-button>
</div>
<el-tabs v-model="tabActive" @canplaythrough="handleClick">
<el-tabs v-model="tabActive" @tab-click="handleClick">
<el-tab-pane label="已完成" name="finished">
<RankingAll :tabActive="tabActive" />
</el-tab-pane>
......
......@@ -3,7 +3,10 @@
<el-row type="flex" class="row-bg" justify="space-between" style="margin-bottom: 30px">
<el-col><h1 style="padding-left: 0px; font-size: 30px">模拟测试一</h1></el-col>
<el-col :span="10">
<el-select v-model="label" placeholder="请选择">
<!-- <el-select v-model="label" placeholder="请选择">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select> -->
<el-select v-model="value" placeholder="请选择">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select>
<el-button type="text" style="margin-left: 30px">导出pdf</el-button>
......@@ -39,7 +42,29 @@ export default {
components: { ExamInfo, Submission, Score, ScoreRanking, TitleData, Result, ScoreRange, QuestionType },
data() {
return {
options: {}
options: [
{
value: '选项1',
label: '黄金糕'
},
{
value: '选项2',
label: '双皮奶'
},
{
value: '选项3',
label: '蚵仔煎'
},
{
value: '选项4',
label: '龙须面'
},
{
value: '选项5',
label: '北京烤鸭'
}
],
value: ''
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论