diff --git a/.env.development-nw b/.env.development-nw index 951be77..5c7e5c4 100644 --- a/.env.development-nw +++ b/.env.development-nw @@ -7,5 +7,7 @@ VUE_APP_ENV = 'development-nw' # 若依管理系统/开发环境 VUE_APP_BASE_API = '/dev-api' +VUE_APP_BAIDU_MAP_AK = 'cClgLBaLgGUdQDilX9dGvieL' + # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.production-nw b/.env.production-nw index a9e69fa..807f710 100644 --- a/.env.production-nw +++ b/.env.production-nw @@ -8,5 +8,7 @@ NODE_ENV = production # 生产环境配置 VUE_APP_ENV = 'production-nw' +VUE_APP_BAIDU_MAP_AK = 'cClgLBaLgGUdQDilX9dGvieL' + # 若依管理系统/生产环境 VUE_APP_BASE_API = '/sgzbgl-api' diff --git a/public/index.html b/public/index.html index 1b6fc75..e31f13f 100644 --- a/public/index.html +++ b/public/index.html @@ -10,8 +10,8 @@ <%= webpackConfig.name %> - - + + diff --git a/src/views/system/user/profile/resetPwd.vue b/src/views/system/user/profile/resetPwd.vue index 796acca..4df2ac2 100644 --- a/src/views/system/user/profile/resetPwd.vue +++ b/src/views/system/user/profile/resetPwd.vue @@ -34,7 +34,7 @@ diff --git a/src/views/warehouseManage/newPurchase/toolsAcceptance/index.vue b/src/views/warehouseManage/newPurchase/toolsAcceptance/index.vue index 0a0cac8..9bf5d18 100644 --- a/src/views/warehouseManage/newPurchase/toolsAcceptance/index.vue +++ b/src/views/warehouseManage/newPurchase/toolsAcceptance/index.vue @@ -29,12 +29,14 @@ import Home from './component/home.vue' // 主列表 import AddTools from './component/addTools.vue' // 新增机具 和 修改机具 import QueryTools from './component/queryTools.vue' // 查询机具 和 验收机具 import CodingTools from './component/codingTools.vue' +import CodingToolsCq from './component/codingTools-cq.vue' export default { components: { Home, AddTools, QueryTools, CodingTools, + CodingToolsCq, PageHeader, }, data() { @@ -86,7 +88,12 @@ export default { codingTools(taskId) { this.pageContent = '编码管理' this.codingTaskId = taskId - this.isShowComponent = 'CodingTools' + let comStr = '' + process.env.VUE_APP_ENV === 'development-nw' || + process.env.VUE_APP_ENV === 'production-nw' + ? (comStr = 'CodingTools') + : (comStr = 'CodingToolsCq') + this.isShowComponent = comStr }, /* 返回按钮 */ goBack() { diff --git a/vue.config.js b/vue.config.js index ea83d1e..2db2e2d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -9,6 +9,8 @@ const CompressionPlugin = require('compression-webpack-plugin') const name = process.env.VUE_APP_TITLE || '施工装备管理系统' // 网页标题 +const Ak = process.env.VUE_APP_BAIDU_MAP_AK + const port = process.env.port || process.env.npm_config_port || 80 // 端口 // vue.config.js 配置说明 @@ -44,10 +46,10 @@ module.exports = { target: `http://192.168.2.158:39080`, //超 // target: `http://10.40.92.81:8080`, //韩/ - // target: `http://192.168.2.75:39080`, //旭/ + // target: `http://192.168.2.74:49080`, //旭/ // target: `http://192.168.2.17:39080`, //帅 // target: `http://192.168.2.234:49080`, //福 - // target: `http://192.168.0.56:21627`, //跃 + // target: `http://192.168.0.37:49080`, //跃 //******** 注意事项 ********* */ //1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target;