提交 f4982a2b authored 作者: lihuihui's avatar lihuihui

update:详情开发

上级 d7f2999f
<template> <template>
<app-container> <app-container title="试卷详情">
<app-list v-bind="tableOptions" ref="list" @row-click="handleRowClick"> <app-list v-bind="tableOptions" ref="list"></app-list>
111 <app-list v-bind="tableOptions2" ref="list2" style="margin-top:-20px"></app-list>
</app-list>
</app-container> </app-container>
</template> </template>
...@@ -13,19 +12,60 @@ export default { ...@@ -13,19 +12,60 @@ export default {
tableOptions() { tableOptions() {
return { return {
remote: { remote: {
// httpRequest: getExamReivewList,
params: { class_name: '', paper_title: '' }
}, },
columns: [ columns: [
{ label: '考卷名称', prop: 'paper_title', slots: 'table-name' }, { label: '考生姓名', prop: 'name', align: 'center' },
{ label: '班级名称', prop: 'class_name', align: 'center' }, { label: '学号', prop: 'num', align: 'center' },
{ label: '未批阅学生数量', prop: 'commit_num', align: 'center' } { label: '分数', prop: 'sore', align: 'center' }
] ],
data: [
{
name: '王大宝',
num: 'test123',
sore: '1233'
}
],
'cell-style': { padding: 0 },
'header-cell-style': { padding: '3px 0', 'font-size': '16px' }
}
},
tableOptions2() {
return {
remote: {
},
columns: [
{ label: '提交日期', prop: 'name', align: 'center' },
{ label: '批改日期', prop: 'num', align: 'center' },
{ label: '状态', prop: 'sore', align: 'center' }
],
data: [
{
name: '王大宝',
num: 'test123',
sore: '1233'
}
],
'cell-style': { padding: 0, color: '#333' },
'header-cell-style': { padding: '3px 0', 'font-size': '16px' }
} }
} }
} }
} }
</script> </script>
<style lang="sass" scoped> <style lang="scss" scoped>
::v-deep {
.el-table__row>td{
border: none;
}
.el-table th.is-leaf{
border: none;
}
.el-table::before {
height: 0px;
}
.table-list{
height: auto;
}
}
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论