Commit 49752ef7 authored by chenjundi's avatar chenjundi

成长记录课程名

parent fad71cff
...@@ -367,9 +367,11 @@ ...@@ -367,9 +367,11 @@
label="歌曲名"> label="歌曲名">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="category_name"
width="200" width="200"
label="课程"> label="课程">
<template slot-scope="scope">
<span>{{scope.row.category_name | categoryNameFilter}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="interest" prop="interest"
...@@ -694,7 +696,9 @@ ...@@ -694,7 +696,9 @@
], ],
sourceByDateDialogJson: {}, sourceByDateDialogJson: {},
deliverRecordList: [], deliverRecordList: [],
growthRecordList:[] growthRecordList:[
{category_name: "Day1 唱动体验 Clap Your Hands"}
]
} }
}, },
created() { created() {
...@@ -1105,6 +1109,12 @@ ...@@ -1105,6 +1109,12 @@
}, },
isdel(val) { isdel(val) {
return val == 0 ? '未删除' : '已删除' return val == 0 ? '未删除' : '已删除'
},
categoryNameFilter(val) {
if (val) {
val = val.split(' ');
return val[0] + ' ' + val[1]
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment