diff --git a/src/api/designPlatform.js b/src/api/designPlatform.js index aaa7285f0..5d8aa7078 100644 --- a/src/api/designPlatform.js +++ b/src/api/designPlatform.js @@ -130,6 +130,15 @@ export function rejectRunPlan(id, data) { data: data }); } + +/** 用户申请发布剧本或者撤销剧本申请 */ +export function releaseScript(id, status) { + return request({ + url: `/api/review/script/releaseOrCancel/${id}/${status}`, + method: 'get' + }); +} + /** 查看课程详情 */ export function reviewLessonDetail(id) { return request({ diff --git a/src/i18n/langs/en/approval.js b/src/i18n/langs/en/approval.js index f6d2aa413..b898b85e9 100644 --- a/src/i18n/langs/en/approval.js +++ b/src/i18n/langs/en/approval.js @@ -26,9 +26,11 @@ export default { rejectRunPlan: 'Reject Run Plan', runPlanPreview: 'RunPlan Preview', inputRunPlanName: 'Please input run plan name', + releaseScriptSuccess: 'release script success', + releaseScriptFailed: 'release script failed', courseDescription: 'Course description', lookOver: 'Look over', courseDetails: 'Course details', instructions: 'Instructions', - chapterTrainingName:'Chapter/training name' + chapterTrainingName: 'Chapter/training name' }; diff --git a/src/i18n/langs/en/scriptRecord.js b/src/i18n/langs/en/scriptRecord.js index 723b661e7..26d9667c7 100644 --- a/src/i18n/langs/en/scriptRecord.js +++ b/src/i18n/langs/en/scriptRecord.js @@ -84,5 +84,6 @@ export default { operate: 'Operate', scriptList: 'Script List', applyPublish: 'Apply for release', - preview: 'Preview' + preview: 'Preview', + status: 'Status' }; diff --git a/src/i18n/langs/zh/approval.js b/src/i18n/langs/zh/approval.js index 0f64069ca..7a1a1a3d3 100644 --- a/src/i18n/langs/zh/approval.js +++ b/src/i18n/langs/zh/approval.js @@ -26,6 +26,8 @@ export default { rejectRunPlan: '驳回运行图', runPlanPreview: '预览', inputRunPlanName: '请输入运行图名称', + releaseScriptSuccess: '申请发布成功', + releaseScriptFailed: '申请发布失败', courseDescription: '课程说明', lookOver: '查看', courseDetails: '课程详情', diff --git a/src/i18n/langs/zh/scriptRecord.js b/src/i18n/langs/zh/scriptRecord.js index 71774c1de..e34bfdf03 100644 --- a/src/i18n/langs/zh/scriptRecord.js +++ b/src/i18n/langs/zh/scriptRecord.js @@ -85,5 +85,6 @@ export default { operate: '操作', scriptList: '剧本列表', applyPublish: '申请发布', - preview: '预览' + preview: '预览', + status: '状态' }; diff --git a/src/scripts/ConstConfig.js b/src/scripts/ConstConfig.js index c110025ea..86495e102 100644 --- a/src/scripts/ConstConfig.js +++ b/src/scripts/ConstConfig.js @@ -97,6 +97,12 @@ export default { { label: '北京一号线', value: '03'}, { label: '成都三号线', value: '04'}, { label: '北京八通线', value: '05'} + ], + releaseReview: [ + { enlabel: 'Unpublished', label: '未发布', value: '0'}, + { enlabel: 'Pending review', label: '待审核', value: '1'}, + { enlabel: 'Successfully released', label: '发布成功', value: '2'}, + { enlabel: 'Overrule', label: '被驳回', value: '3'} ] } diff --git a/src/views/scriptManage/home.vue b/src/views/scriptManage/home.vue index 33cea9bd6..744979218 100644 --- a/src/views/scriptManage/home.vue +++ b/src/views/scriptManage/home.vue @@ -16,22 +16,30 @@ + > + > + + + + {{covertData(scope.row)}} + - {{$t('scriptRecord.scriptRecord')}} - {{$t('scriptRecord.scriptModify')}} - {{$t('scriptRecord.scriptDelete')}} - {{$t('scriptRecord.applyPublish')}} - {{$t('scriptRecord.preview')}} + {{$t('scriptRecord.scriptRecord')}} + {{$t('scriptRecord.scriptModify')}} + {{$t('scriptRecord.scriptDelete')}} + {{$t('scriptRecord.applyPublish')}} + {{$t('scriptRecord.preview')}} @@ -57,8 +65,12 @@