提交 8eb241cc authored 作者: matian's avatar matian

代码调整

上级 8c48bfba
......@@ -2,7 +2,7 @@
<app-container>
<app-list v-bind="tableOptions" ref="list">
<template #header-aside>
<el-button type="text" style="margin-top:5px;font-size:24px" @click="export">导出</el-button>
<el-button type="text" style="margin-top: 5px; font-size: 24px">导出</el-button>
</template>
</app-list>
</app-container>
......@@ -14,11 +14,8 @@ export default {
// 列表配置
tableOptions() {
return {
remote: {
},
filters: [
{ type: 'input', prop: 'class_name', placeholder: '班级名称', label: '班级名称' }
],
remote: {},
filters: [{ type: 'input', prop: 'class_name', placeholder: '班级名称', label: '班级名称' }],
columns: [
{ label: '班级名称', prop: 'paper_title', slots: 'table-name' },
{ label: '班级人数', prop: 'class_name', align: 'center', sortable: true },
......@@ -27,17 +24,10 @@ export default {
{ label: '累计学习时长', prop: 'time', align: 'center', sortable: true },
{ label: '人均学习时长', prop: 'average', align: 'center', sortable: true }
],
data: [
{ class_name: 'weq' }
]
data: [{ class_name: 'weq' }]
}
}
},
methods: {
// 导出
export() {
}
}
methods: {}
}
</script>
<template>
<app-container>
<app-list v-bind="tableOptions" ref="list">
<template v-slot:class_name="{ row }">
<el-button type="text" @click="toPersonal(row)">{{ row.class_name }}</el-button>
</template>
</app-list>
</app-container>
</template>
<script>
export default {
data() {
return {
}
},
computed: {
// 列表配置
tableOptions() {
return {
remote: {
},
columns: [
{ label: '排名', prop: 'paper_title', align: 'center' },
{ label: '班级', slots: 'class_name', align: 'center' },
{ label: '平均分', prop: 'cankao_num', align: 'center' },
{ label: '客观题平均分', prop: 'sfr3t34', align: 'center' },
{ label: '客观题最高分', prop: 'average_num', align: 'center' },
{ label: '客观题最低分', prop: 'top', align: 'center' },
{ label: '主观题平均分', prop: 'low', align: 'center' },
{ label: '主观题最高分', prop: 'title_num', align: 'center' },
{ label: '主观题最低分', prop: 'title_percent', align: 'center' }
],
data: [
{
class_name: 'dfshfuiwiw'
}
]
}
}
},
methods: {
toPersonal(row) {
this.$router.push({
path: '/PersonalList',
query: {
row: row
}
})
}
}
}
</script>
<template>
<app-container>
<app-list v-bind="tableOptions" ref="list">
<template v-slot:class_name="{ row }">
<el-button type="text" @click="toPersonal(row)">{{ row.class_name }}</el-button>
</template>
</app-list>
</app-container>
</template>
<script>
export default {
data() {
return {
}
},
computed: {
// 列表配置
tableOptions() {
return {
remote: {
},
columns: [
{ label: '排名', prop: 'paper_title', align: 'center' },
{ label: '班级', slots: 'class_name', align: 'center' },
{ label: '平均分', prop: 'cankao_num', align: 'center' },
{ label: '客观题平均分', prop: 'dgrete', align: 'center' },
{ label: '客观题最高分', prop: 'average_num', align: 'center' },
{ label: '客观题最低分', prop: 'top', align: 'center' },
{ label: '主观题平均分', prop: 'low', align: 'center' },
{ label: '主观题最高分', prop: 'title_num', align: 'center' },
{ label: '主观题最低分', prop: 'title_percent', align: 'center' }
],
data: [
{
class_name: 'dfsfsf'
}
]
}
}
},
methods: {
toPersonal(row) {
this.$router.push({
path: '/PersonalList',
query: {
row: row
}
})
}
}
}
</script>
<template>
<div>
<div style="font-size:32px;margin-bottom:15px">测试班级一</div>
<div style="font-size: 32px; margin-bottom: 15px">测试班级一</div>
<app-card>
<h1 class="title" style="font-size:28px">班级排名</h1>
<el-button type="text" style="font-size:28px;float:right;margin-top:-40px">导出</el-button>
<el-tabs v-model="tabActive" style="margin-top:30px">
<h1 class="title" style="font-size: 28px">班级排名</h1>
<el-button type="text" style="font-size: 28px; float: right; margin-top: -40px">导出</el-button>
<el-tabs v-model="tabActive" style="margin-top: 30px">
<el-tab-pane label="已结束" name="baseInfo">
<Finished />
</el-tab-pane>
<el-tab-pane label="待评价" name="contacts" lazy>
<ToEvaluate />
<Finished />
</el-tab-pane>
<el-tab-pane label="未作答" name="project" lazy>
<NoAnswer />
<Finished />
</el-tab-pane>
</el-tabs>
</app-card>
......@@ -20,11 +20,9 @@
</template>
<script>
import Finished from './Finished.vue'
import ToEvaluate from './ToEvaluate.vue'
import NoAnswer from './NoAnswer.vue'
import Finished from '../components/Finished.vue'
export default {
components: { Finished, ToEvaluate, NoAnswer },
components: { Finished },
data() {
return {
tabActive: 'baseInfo'
......
<template>
<app-container>
<app-list v-bind="tableOptions" ref="list">
<template v-slot:class_name="{ row }">
<el-button type="text" @click="toPersonal(row)">{{ row.class_name }}</el-button>
</template>
</app-list>
</app-container>
</template>
<script>
export default {
data() {
return {
}
},
computed: {
// 列表配置
tableOptions() {
return {
remote: {
},
columns: [
{ label: '排名', prop: 'paper_title', align: 'center' },
{ label: '班级', slots: 'class_name', align: 'center' },
{ label: '平均分', prop: 'cankao_num', align: 'center' },
{ label: '客观题平均分', prop: 'afwerw', align: 'center' },
{ label: '客观题最高分', prop: 'average_num', align: 'center' },
{ label: '客观题最低分', prop: 'top', align: 'center' },
{ label: '主观题平均分', prop: 'low', align: 'center' },
{ label: '主观题最高分', prop: 'title_num', align: 'center' },
{ label: '主观题最低分', prop: 'title_percent', align: 'center' }
],
data: [
{
class_name: '1234556789999'
}
]
}
}
},
methods: {
toPersonal(row) {
this.$router.push({
path: '/PersonalList',
query: {
row: row
}
})
}
}
}
</script>
<template>
<app-container>
<app-list v-bind="tableOptions" ref="list">
<template v-slot:class_name="{ row }">
<el-button type="text" @click="toPersonal(row)">{{ row.class_name }}</el-button>
</template>
</app-list>
</app-container>
</template>
<script>
export default {
data() {
return {
}
},
computed: {
// 列表配置
tableOptions() {
return {
remote: {
},
columns: [
{ label: '排名', prop: 'paper_title', align: 'center' },
{ label: '班级', slots: 'class_name', align: 'center' },
{ label: '平均分', prop: 'cankao_num', align: 'center' },
{ label: '客观题平均分', prop: 'dfasfa', align: 'center' },
{ label: '客观题最高分', prop: 'average_num', align: 'center' },
{ label: '客观题最低分', prop: 'top', align: 'center' },
{ label: '主观题平均分', prop: 'low', align: 'center' },
{ label: '主观题最高分', prop: 'title_num', align: 'center' },
{ label: '主观题最低分', prop: 'title_percent', align: 'center' }
],
data: [
{
class_name: '43547567'
}
]
}
}
},
methods: {
toPersonal(row) {
this.$router.push({
path: '/PersonalList',
query: {
row: row
}
})
}
}
}
</script>
......@@ -9,10 +9,10 @@
<Finished />
</el-tab-pane>
<el-tab-pane label="待评价" name="contacts" lazy>
<ToEvaluate />
<Finished />
</el-tab-pane>
<el-tab-pane label="未作答" name="project" lazy>
<NoAnswer />
<Finished />
</el-tab-pane>
</el-tabs>
</app-card>
......@@ -21,10 +21,8 @@
<script>
import Finished from '../components/Finished.vue'
import ToEvaluate from '../components/ToEvaluate.vue'
import NoAnswer from '../components/NoAnswer.vue'
export default {
components: { Finished, ToEvaluate, NoAnswer },
components: { Finished },
data() {
return {
tabActive: 'baseInfo'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论