提交 f094058b authored 作者: matian's avatar matian

style:列表样式调整

上级 681d77f6
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
<app-container> <app-container>
<app-list v-bind="tableOptions" ref="list" @sort-change="sortChange"> <app-list v-bind="tableOptions" ref="list" @sort-change="sortChange">
<!-- 操作 --> <!-- 操作 -->
<template v-slot:table-img="{ row }"> <template v-slot:table-img="{ row }"> <img :src="row.course_picture" alt="" style="width: 100px" /> </template>
<img :src="row.course_picture" alt="" style="width: 100px; height: 100px" />
</template>
<template v-slot:table-operate="{ row }"> <template v-slot:table-operate="{ row }">
<el-button type="text" size="mini" @click="toClassData(row)">班级数据</el-button> <el-button type="text" size="mini" @click="toClassData(row)">班级数据</el-button>
<el-button type="text" size="mini" @click="toPersonal(row)">个人数据</el-button> <el-button type="text" size="mini" @click="toPersonal(row)">个人数据</el-button>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<app-card> <app-card>
<app-list v-bind="tableOptions" ref="list"> <app-list v-bind="tableOptions" ref="list">
<template v-slot:course_picture="{ row }"> <template v-slot:course_picture="{ row }">
<el-image :src="row.course_picture"></el-image> <el-image :src="row.course_picture" style="width: 100px"></el-image>
</template> </template>
<template v-slot:progress="{ row }"> <template v-slot:progress="{ row }">
<el-progress :percentage="row.progress"></el-progress> <el-progress :percentage="row.progress"></el-progress>
......
<template> <template>
<app-list v-bind="tableOptions" ref="list" @sort-change="sortChange"> <app-list v-bind="tableOptions" ref="list" @sort-change="sortChange">
<template v-slot:paper_title="{ row }"> <template v-slot:paper_title="{ row }">
<div :class="`paper-title active${row.paper_title}`">{{ row.paper_title }}</div> <div :class="`paper-title active${row.ranking}`">{{ row.ranking }}</div>
</template> </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-if="tabActive === 'finished'">查看</el-button>
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
return { return {
data: this.scoreRanking.list, data: this.scoreRanking.list,
columns: [ columns: [
{ label: '排名', slots: 'paper_title', prop: 'paper_title', align: 'center' }, { label: '排名', slots: 'paper_title', prop: 'ranking', align: 'center' },
{ label: '姓名', prop: 'personal_name', align: 'center' }, { label: '姓名', prop: 'personal_name', align: 'center' },
{ label: '客观题', prop: 'subjective', align: 'center', sortable: 'custom', minWidth: 100 }, { label: '客观题', prop: 'subjective', align: 'center', sortable: 'custom', minWidth: 100 },
{ label: '主观题', prop: 'objective', align: 'center', sortable: 'custom', minWidth: 100 }, { label: '主观题', prop: 'objective', align: 'center', sortable: 'custom', minWidth: 100 },
......
...@@ -13,21 +13,19 @@ ...@@ -13,21 +13,19 @@
> >
<section slot="pdf-content" :key="value"> <section slot="pdf-content" :key="value">
<div class="container"> <div class="container">
<el-row type="flex" class="row-bg" justify="space-between" style="margin-bottom: 30px"> <div style="display: flex; justify-content: space-between">
<el-col <h1 style="font-size: 30px">
><h1 style="padding-left: 0px; font-size: 30px"> {{ $route.query.examination_name }} <span style="color: #c01540; font-size: 14px">*部分数据未进行评价</span>
{{ $route.query.examination_name }} </h1>
<span style="color: #c01540; font-size: 14px">*部分数据未进行评价</span> <div style="margin-right: 60px">
</h1>
</el-col>
<el-col :span="10">
<el-select v-model="value" placeholder="全部数据" @change="refreshPage" clearable> <el-select v-model="value" placeholder="全部数据" @change="refreshPage" clearable>
<el-option v-for="item in dataInfo.class_map" :key="item.id" :label="item.name" :value="item.id"> <el-option v-for="item in dataInfo.class_map" :key="item.id" :label="item.name" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<el-button type="text" style="margin-left: 30px" @click="$refs.html2Pdf.generatePdf()">导出pdf</el-button> <el-button type="text" style="margin-left: 10px" @click="$refs.html2Pdf.generatePdf()">导出pdf</el-button>
</el-col> </div>
</el-row> </div>
<template v-if="dataInfo.paper_info"> <template v-if="dataInfo.paper_info">
<el-row :gutter="10" class="row-bg"> <el-row :gutter="10" class="row-bg">
<el-col :span="8" class="col"><exam-info :dataInfo="dataInfo" /></el-col> <el-col :span="8" class="col"><exam-info :dataInfo="dataInfo" /></el-col>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论