diff --git a/src/i18n/langs/en/scriptRecord.js b/src/i18n/langs/en/scriptRecord.js index 37f3d910f..723b661e7 100644 --- a/src/i18n/langs/en/scriptRecord.js +++ b/src/i18n/langs/en/scriptRecord.js @@ -82,5 +82,7 @@ export default { drivingByPlan: 'Driving By Plan', scriptBack: 'Back', operate: 'Operate', - scriptList: 'Script List' + scriptList: 'Script List', + applyPublish: 'Apply for release', + preview: 'Preview' }; diff --git a/src/i18n/langs/zh/scriptRecord.js b/src/i18n/langs/zh/scriptRecord.js index aae40c559..71774c1de 100644 --- a/src/i18n/langs/zh/scriptRecord.js +++ b/src/i18n/langs/zh/scriptRecord.js @@ -83,5 +83,7 @@ export default { drivingByPlan: '按计划行车', scriptBack: '返回', operate: '操作', - scriptList: '剧本列表' + scriptList: '剧本列表', + applyPublish: '申请发布', + preview: '预览' }; diff --git a/src/permission.js b/src/permission.js index 1219fe054..ff30f7ea8 100644 --- a/src/permission.js +++ b/src/permission.js @@ -43,7 +43,7 @@ function getRouteInfo(to) { // loginPath = loginPlanPage; // getTokenInfo = getToken; // clientId = LoginParams.LianJiHua.clientId; - else if (/^\/design/.test(toRoutePath) || /^\/scriptDisplay/.test(toRoutePath) || /^\/plan/.test(toRoutePath) || /^\/publish/.test(toRoutePath) || /^\/orderauthor/.test(toRoutePath) || /^\/system/.test(toRoutePath) || /^\/display\/plan/.test(toRoutePath) || /^\/display\/manage/.test(toRoutePath)) { + else if (/^\/design/.test(toRoutePath) || /^\/scriptDisplay/.test(toRoutePath) || /^\/plan/.test(toRoutePath) || /^\/publish/.test(toRoutePath) || /^\/orderauthor/.test(toRoutePath) || /^\/system/.test(toRoutePath) || /^\/display\/plan/.test(toRoutePath) || /^\/display\/manage/.test(toRoutePath) || /^\/apply/.test(toRoutePath)) { loginPath = loginDesignPage; getTokenInfo = getDesignToken; clientId = LoginParams.Design.clientId; diff --git a/src/router/index.js b/src/router/index.js index 8ebb89559..9b3e80a16 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1086,7 +1086,7 @@ router.beforeEach((to, from, next) => { // } else if (name.includes('/trainingPlatform/')) { document.title = '城市轨道交通实训平台'; - } else if (name.includes('/design/') || name.includes('/scriptDisplay/') || name.includes('/plan/') || name.includes('/publish/') || name.includes('/orderauthor/') || name.includes('/system/') || name.includes('/display/plan/')) { + } else if (name.includes('/design/') || name.includes('/scriptDisplay/') || name.includes('/plan/') || name.includes('/publish/') || name.includes('/orderauthor/') || name.includes('/system/') || name.includes('/display/plan/') || name.includes('/apply/') || name.includes('/display/manage/')) { document.title = '城市轨道交通设计平台'; } else { document.title = '琏课堂'; diff --git a/src/utils/auth.js b/src/utils/auth.js index 0ec9cefd0..386985866 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -67,7 +67,7 @@ export function handleToken() { const path = window.location.href; if (path.includes('/dp/') || path.includes('/display/dp')) { return getScreenToken(); - } else if (path.includes('/design') || path.includes('/scriptDisplay') || path.includes('/plan') || path.includes('/publish') || path.includes('/orderauthor') || path.includes('/system') || path.includes('/display/plan') || path.includes('/display/manage')) { + } else if (path.includes('/design') || path.includes('/scriptDisplay') || path.includes('/plan') || path.includes('/publish') || path.includes('/orderauthor') || path.includes('/system') || path.includes('/display/plan') || path.includes('/display/manage') || path.includes('/apply/')) { return getDesignToken(); } // else if (path.includes('/plan') || path.includes('/display/plan')) { @@ -87,7 +87,7 @@ export function handleRemoveToken() { // else if (path.includes('/plan') || path.includes('/display/plan')) { // return removePlanToken(); // } - else if (path.includes('/design') || path.includes('/scriptDisplay') || path.includes('/plan') || path.includes('/publish') || path.includes('/orderauthor') || path.includes('/system') || path.includes('/display/plan') || path.includes('/display/manage')) { + else if (path.includes('/design') || path.includes('/scriptDisplay') || path.includes('/plan') || path.includes('/publish') || path.includes('/orderauthor') || path.includes('/system') || path.includes('/display/plan') || path.includes('/display/manage') || path.includes('/apply/')) { return removeDesignToken(); } else { return removeToken(); @@ -104,7 +104,7 @@ export function gainClientId() { // else if (path.includes('/plan') || path.includes('/display/plan')) { // clientId = LoginParams.LianJiHua.clientId; // } - else if (path.includes('/design') || path.includes('/scriptDisplay') || path.includes('/plan') || path.includes('/publish') || path.includes('/orderauthor') || path.includes('/system') || path.includes('/display/plan') || path.includes('/display/manage')) { + else if (path.includes('/design') || path.includes('/scriptDisplay') || path.includes('/plan') || path.includes('/publish') || path.includes('/orderauthor') || path.includes('/system') || path.includes('/display/plan') || path.includes('/display/manage') || path.includes('/apply/')) { clientId = LoginParams.Design.clientId; } diff --git a/src/views/scriptManage/home.vue b/src/views/scriptManage/home.vue index 16c256fe8..36a3eada5 100644 --- a/src/views/scriptManage/home.vue +++ b/src/views/scriptManage/home.vue @@ -30,6 +30,8 @@ {{$t('scriptRecord.scriptRecord')}} {{$t('scriptRecord.scriptModify')}} {{$t('scriptRecord.scriptDelete')}} + {{$t('scriptRecord.applyPublish')}} + {{$t('scriptRecord.preview')}}