Commit f8a60f93 by chenwq

feat(TaskCenterDetail): 优化推送课程展示逻辑,动态添加课程信息

1 parent 55a2149c
...@@ -78,15 +78,18 @@ export default { ...@@ -78,15 +78,18 @@ export default {
}, },
computed: { computed: {
baseFields() { baseFields() {
return [ const fields = [
{ label: "带教场景", value: this.detail.teachingSceneName }, { label: "带教场景", value: this.detail.teachingSceneName },
{ label: "带教时间", value: this.formatToMinute(this.detail.teachingTime) }, { label: "带教时间", value: this.formatToMinute(this.detail.teachingTime) },
{ label: "带教方式", value: this.detail.teachingMethodName }, { label: "带教方式", value: this.detail.teachingMethodName },
{ label: "带教主题", value: this.detail.teachingTopicName }, { label: "带教主题", value: this.detail.teachingTopicName },
{ label: "推送课程", value: this.courseNameList, type: "courseTags" },
{ label: "带教门店", value: this.merchantList, type: "tags" }, { label: "带教门店", value: this.merchantList, type: "tags" },
{ label: "参与人员", value: this.detail.taskStaffList || [], type: "tags" }, { label: "参与人员", value: this.detail.taskStaffList || [], type: "tags" },
]; ];
if (this.courseNameList.length) {
fields.splice(4, 0, { label: "推送课程", value: this.courseNameList, type: "courseTags" });
}
return fields;
}, },
courseNameList() { courseNameList() {
return (this.detail.bcCourseNameList || []).filter(Boolean); return (this.detail.bcCourseNameList || []).filter(Boolean);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!