提交 58c88b62 authored 作者: matian's avatar matian

过滤数据

上级 9203f414
...@@ -42,10 +42,7 @@ export default { ...@@ -42,10 +42,7 @@ export default {
{ {
label: '总时长', label: '总时长',
align: 'center', align: 'center',
prop: 'max_length', prop: 'max_length'
computed({ row }) {
return row.max_length_format
}
}, },
{ label: '操作', slots: 'table-x', align: 'center', fixed: 'right' } { label: '操作', slots: 'table-x', align: 'center', fixed: 'right' }
] ]
...@@ -63,10 +60,11 @@ export default { ...@@ -63,10 +60,11 @@ export default {
}) })
}, },
toDetail(row) { toDetail(row) {
const detailList = row.data.filter(item => item.type === '视频')
this.$router.push({ this.$router.push({
path: '/teacher/data/course/processDetail', path: '/teacher/data/course/processDetail',
query: { query: {
row: row.data row: detailList
} }
}) })
} }
......
...@@ -27,10 +27,7 @@ export default { ...@@ -27,10 +27,7 @@ export default {
{ {
label: '累计学习时长', label: '累计学习时长',
align: 'center', align: 'center',
prop: 'pt', prop: 'pt'
computed({ row }) {
return row.pt_format
}
} }
] ]
} }
......
...@@ -92,6 +92,7 @@ export default { ...@@ -92,6 +92,7 @@ export default {
} }
} }
}, },
methods: { methods: {
handleSizeChange(val) { handleSizeChange(val) {
this.queryInfo.pagesize = val this.queryInfo.pagesize = val
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论