diff --git a/src/views/dataCenter/course/index.vue b/src/views/dataCenter/course/index.vue index f13517d..c784849 100644 --- a/src/views/dataCenter/course/index.vue +++ b/src/views/dataCenter/course/index.vue @@ -5,6 +5,9 @@ 新增 + + {{ text ? '显示' : '隐藏' }} + 编辑 删除 @@ -56,10 +59,15 @@ export default { { title: '教学详情', dataIndex: 'course_detail', + }, + { + title: '状态', + dataIndex: 'status', + scopedSlots: { customRender: 'status' } }, { title: '排序', - dataIndex: 'sort', + dataIndex: 'sort', }, { title: '添加时间', diff --git a/src/views/dataCenter/course/modules/AddForm.vue b/src/views/dataCenter/course/modules/AddForm.vue index 0648951..cbaf1bc 100644 --- a/src/views/dataCenter/course/modules/AddForm.vue +++ b/src/views/dataCenter/course/modules/AddForm.vue @@ -36,6 +36,12 @@ v-decorator="['course_detail', { rules: [{ required: true, message: '请输入教学详情' }] }]" /> + + + 显示 + 隐藏 + + diff --git a/src/views/dataCenter/course/modules/EditForm.vue b/src/views/dataCenter/course/modules/EditForm.vue index e0d80a2..a37e8f2 100644 --- a/src/views/dataCenter/course/modules/EditForm.vue +++ b/src/views/dataCenter/course/modules/EditForm.vue @@ -43,6 +43,12 @@ v-decorator="['course_detail', { rules: [{ required: true, message: '请输入教学详情' }] }]" /> + + + 显示 + 隐藏 + + { - setFieldsValue(_.pick(record, ['course_name', 'course_subheading', 'course_detail','image_id', 'video_id','course_category_id'])) + setFieldsValue(_.pick(record, ['status','course_name', 'course_subheading', 'course_detail','image_id', 'video_id','course_category_id'])) }) },