From 35eacb299c1ed594a57d3667ba5990158f060111 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 16 Oct 2019 16:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E9=A2=84=E8=A7=88=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/script.js | 9 +++++++- src/i18n/langs/en/scriptRecord.js | 5 ++++- src/i18n/langs/zh/scriptRecord.js | 5 ++++- src/jmap/theme/batong_01/menus/index.vue | 2 +- src/jmap/theme/beijing_01/menus/index.vue | 2 +- src/jmap/theme/chengdu_03/menus/index.vue | 2 +- src/jmap/theme/chengdu_04/menus/index.vue | 2 +- src/jmap/theme/fuzhou_01/menus/index.vue | 2 +- src/views/display/demon/addQuest.vue | 9 ++++---- .../scriptManage/display/tipScriptRecord.vue | 1 + src/views/scriptManage/home.vue | 21 ++++++++++++++----- 11 files changed, 43 insertions(+), 17 deletions(-) diff --git a/src/api/script.js b/src/api/script.js index 752fd889d..93bed7652 100644 --- a/src/api/script.js +++ b/src/api/script.js @@ -18,10 +18,17 @@ export function getScriptByIdList(id) { }); } -/** 通过ID查询剧本的基础信息 */ +/** 通过ID查询发布的剧本的详细信息 */ export function getScriptById(id) { return request({ url: `/api/script/${id}/detail`, method: 'get' }); } +/** 通过ID查询未发布剧本的详细信息 */ +export function getDraftScriptById(id) { + return request({ + url: `/api/script/draft/${id}/detail`, + method: 'get' + }); +} diff --git a/src/i18n/langs/en/scriptRecord.js b/src/i18n/langs/en/scriptRecord.js index 35b2df81e..5f866ba40 100644 --- a/src/i18n/langs/en/scriptRecord.js +++ b/src/i18n/langs/en/scriptRecord.js @@ -88,5 +88,8 @@ export default { status: 'Status', applyRevoke: 'Revoke', publish: 'Publish', - revokeReason: 'Revoke explanation' + revokeReason: 'Revoke explanation', + language: 'language', + chinese: 'Chinese Simplified', + english: 'English' }; diff --git a/src/i18n/langs/zh/scriptRecord.js b/src/i18n/langs/zh/scriptRecord.js index c31324c0a..f49cb0215 100644 --- a/src/i18n/langs/zh/scriptRecord.js +++ b/src/i18n/langs/zh/scriptRecord.js @@ -89,5 +89,8 @@ export default { status: '状态', applyRevoke: '撤回', publish: '发布', - revokeReason: '驳回原因' + revokeReason: '驳回原因', + language: '语言', + chinese: '中文', + english: '英文' }; diff --git a/src/jmap/theme/batong_01/menus/index.vue b/src/jmap/theme/batong_01/menus/index.vue index da30810e1..166916cd4 100644 --- a/src/jmap/theme/batong_01/menus/index.vue +++ b/src/jmap/theme/batong_01/menus/index.vue @@ -73,7 +73,7 @@ export default { this.$store.state.training.roles == 'BigScreen'; }, isShowMenu() { - return this.$store.state.training.prdType != ''; + return this.$store.state.training.prdType; } }, watch: { diff --git a/src/jmap/theme/beijing_01/menus/index.vue b/src/jmap/theme/beijing_01/menus/index.vue index badcb49e5..64aac8c71 100644 --- a/src/jmap/theme/beijing_01/menus/index.vue +++ b/src/jmap/theme/beijing_01/menus/index.vue @@ -72,7 +72,7 @@ export default { this.$store.state.training.roles != 'BigScreen'; }, isShowBar() { - return this.$store.state.training.prdType != ''; + return this.$store.state.training.prdType; } }, watch: { diff --git a/src/jmap/theme/chengdu_03/menus/index.vue b/src/jmap/theme/chengdu_03/menus/index.vue index 849fe2334..ec218b332 100644 --- a/src/jmap/theme/chengdu_03/menus/index.vue +++ b/src/jmap/theme/chengdu_03/menus/index.vue @@ -71,7 +71,7 @@ export default { this.$store.state.training.roles != 'BigScreen'; }, isShowBar() { - return this.$store.state.training.prdType != ''; + return this.$store.state.training.prdType; } }, watch: { diff --git a/src/jmap/theme/chengdu_04/menus/index.vue b/src/jmap/theme/chengdu_04/menus/index.vue index 849fe2334..ec218b332 100644 --- a/src/jmap/theme/chengdu_04/menus/index.vue +++ b/src/jmap/theme/chengdu_04/menus/index.vue @@ -71,7 +71,7 @@ export default { this.$store.state.training.roles != 'BigScreen'; }, isShowBar() { - return this.$store.state.training.prdType != ''; + return this.$store.state.training.prdType; } }, watch: { diff --git a/src/jmap/theme/fuzhou_01/menus/index.vue b/src/jmap/theme/fuzhou_01/menus/index.vue index b46752185..6dc6325fc 100644 --- a/src/jmap/theme/fuzhou_01/menus/index.vue +++ b/src/jmap/theme/fuzhou_01/menus/index.vue @@ -66,7 +66,7 @@ export default { this.$store.state.training.roles != 'BigScreen'; }, isShowBar() { - return this.$store.state.training.prdType != ''; + return this.$store.state.training.prdType; } }, watch: { diff --git a/src/views/display/demon/addQuest.vue b/src/views/display/demon/addQuest.vue index 55c7195e5..4d54543cc 100644 --- a/src/views/display/demon/addQuest.vue +++ b/src/views/display/demon/addQuest.vue @@ -49,7 +49,7 @@