提交 345b4454 authored 作者: matian's avatar matian

有效期修改不显示时分秒

上级 e13f4567
...@@ -139,7 +139,10 @@ export default { ...@@ -139,7 +139,10 @@ export default {
{ {
label: '课程有效期', label: '课程有效期',
align: 'center', align: 'center',
prop: 'expiration_time' prop: 'expiration_time',
computed({ row }) {
return row.expiration_time.slice(0, 10)
}
}, },
{ label: '重修次数', align: 'center', prop: 'study_times' }, { label: '重修次数', align: 'center', prop: 'study_times' },
{ label: '当前学习进度', align: 'center', prop: 'progress' }, { label: '当前学习进度', align: 'center', prop: 'progress' },
......
...@@ -82,14 +82,26 @@ export default { ...@@ -82,14 +82,26 @@ export default {
filters: [ filters: [
{ type: 'input', placeholder: '姓名', prop: 'personal_name' }, { type: 'input', placeholder: '姓名', prop: 'personal_name' },
{ type: 'input', prop: 'telephone', placeholder: '手机号' }, { type: 'input', prop: 'telephone', placeholder: '手机号' },
{ type: 'input', label: '课程有效期', slots: 'expiration_time', prop: 'expiration_time_start' }, {
type: 'input',
label: '课程有效期',
slots: 'expiration_time',
prop: 'expiration_time_start'
},
{ slots: 'expiration_time_max', prop: 'expiration_time_end' } { slots: 'expiration_time_max', prop: 'expiration_time_end' }
], ],
columns: [ columns: [
{ label: '姓名', prop: 'personal_name', align: 'center' }, { label: '姓名', prop: 'personal_name', align: 'center' },
{ label: '所属班级', prop: 'class_name', align: 'center' }, { label: '所属班级', prop: 'class_name', align: 'center' },
{ label: '手机号', prop: 'telephone', align: 'center' }, { label: '手机号', prop: 'telephone', align: 'center' },
{ label: '课程有效期', prop: 'expiration_time', align: 'center' }, {
label: '课程有效期',
prop: 'expiration_time',
align: 'center',
computed({ row }) {
return row.expiration_time.slice(0, 10)
}
},
{ label: '操作', slots: 'table-x', align: 'center', width: '300', fixed: 'right' } { label: '操作', slots: 'table-x', align: 'center', width: '300', fixed: 'right' }
] ]
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论