diff --git a/.env.production b/.env.production index e4f935b..ca9d452 100644 --- a/.env.production +++ b/.env.production @@ -1,10 +1,12 @@ # 页面标题 VUE_APP_TITLE = 可视化管控平台 +NODE_ENV = production + # 生产环境配置 ENV = 'production' VUE_APP_ENV = 'production' # 博诺思管理系统/生产环境 -VUE_APP_BASE_API = '/nxdt-api' +VUE_APP_BASE_API = '/prod-api' diff --git a/src/router/index.js b/src/router/index.js index 6e24dd4..4d5de8d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -395,7 +395,7 @@ export const dynamicRoutes = [ path: '/project/admission-request-auth', component: Layout, hidden: true, - permissions: ['system:addPersonnel:query'], + permissions: ['add:supervisor:person'], children: [ { path: 'addPersonnel/:data(.*)', @@ -405,11 +405,12 @@ export const dynamicRoutes = [ }, ], }, + { path: '/project/supervisor-person-manage', component: Layout, hidden: true, - permissions: ['system:addPersonnel:query'], + permissions: ['system:entrance:apply'], children: [ { path: 'addPersonnel/:data(.*)', @@ -621,7 +622,7 @@ export const dynamicRoutes = [ path: '/pro/apply', component: Layout, hidden: true, - permissions: ['system:entrance:apply'], + permissions: ['add:supervisor:person'], children: [ { path: 'supervisorEnterApply/:data(.*)', diff --git a/src/utils/aescbc.js b/src/utils/aescbc.js index 2fc8cf1..cc8912c 100644 --- a/src/utils/aescbc.js +++ b/src/utils/aescbc.js @@ -6,12 +6,12 @@ const cbc_iv = CryptoJS.enc.Utf8.parse('1234567812345678') * 默认参数需要加密 * @type {boolean} */ -const jia_mi = process.env.NODE_ENV === 'development' ? false : true +const jia_mi = false /** * 默认后台会自动加密 * @type {boolean} */ -const jie_mi = process.env.NODE_ENV === 'development' ? false : true +const jie_mi = false /** * 加密 * @param word diff --git a/src/utils/bonus.js b/src/utils/bonus.js index 0742e93..d4a7557 100644 --- a/src/utils/bonus.js +++ b/src/utils/bonus.js @@ -1,6 +1,6 @@ import { getToDoNum } from '@/api/system/notice' //0 测试 1生产 -let fileType = 0 +let fileType = process.env.ENV === 'testing' ? 0 : 1 export function lookFile() { if (fileType === 0) { @@ -18,18 +18,17 @@ export function lookFaceFile() { return 'http://218.21.27.6:1999/file/statics/' //生产服务器 } //return 'http://112.29.103.165:14413/file/statics/' //1.6演示服务器 -// return 'http://218.21.27.6:1999/file/statics/' //生产服务器 + // return 'http://218.21.27.6:1999/file/statics/' //生产服务器 } export function filePreview() { if (fileType === 0) { return 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器 } else { - return 'http://218.21.27.6:18013/onlinePreview?url=' //生产服务器 + return 'http://218.21.27.6:18013/onlinePreview?url=' //生产服务器 } // // return 'http://112.29.103.165:8012/onlinePreview?url=' //1.6演示服务器 - } export function lookMioIoFile() { @@ -173,7 +172,7 @@ export function sprintf(str) { var args = arguments, flag = true, i = 1 - str = str.replace(/%s/g, function() { + str = str.replace(/%s/g, function () { var arg = args[i++] if (typeof arg === 'undefined') { flag = false