环境配置
This commit is contained in:
parent
465a5dae08
commit
0e4cd61cad
|
|
@ -7,4 +7,4 @@ ENV = 'production'
|
|||
# 材料站材料库存管理系统/生产环境-公司
|
||||
# VUE_APP_BASE_API = '/prod-api'
|
||||
# 材料站材料库存管理系统/宏源环境
|
||||
VUE_APP_BASE_API = '/iws/jiju-api'
|
||||
VUE_APP_BASE_API = '/iws/clz-api'
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ export default {
|
|||
// location.href = '/index';
|
||||
// })
|
||||
console.log('🚀 ~ process.env.VUE_APP_BASE_API:', process.env.VUE_APP_BASE_API)
|
||||
if (process.env.VUE_APP_BASE_API == '/iws/jiju-api') {
|
||||
if (process.env.VUE_APP_BASE_API == '/iws/clz-api') {
|
||||
setTimeout(() => {
|
||||
window.location.replace(
|
||||
'http://sgwpdm.ah.sgcc.com.cn/iws/',
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ Router.prototype.replace = function push(location) {
|
|||
|
||||
export default new Router({
|
||||
// mode: 'history', // 去掉url中的#
|
||||
mode: process.env.VUE_APP_BASE_API == '/iws/jiju-api' ? 'hash' : 'history', // 宏源: hash
|
||||
mode: process.env.VUE_APP_BASE_API == '/iws/clz-api' ? 'hash' : 'history', // 宏源: hash
|
||||
scrollBehavior: () => ({ y: 0 }),
|
||||
routes: constantRoutes
|
||||
})
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ service.interceptors.response.use(res => {
|
|||
}
|
||||
if (code === 401) {
|
||||
console.log('🚀 ~ process.env.VUE_APP_BASE_API:', process.env.VUE_APP_BASE_API)
|
||||
if (process.env.VUE_APP_BASE_API == '/iws/jiju-api') {
|
||||
if (process.env.VUE_APP_BASE_API == '/iws/clz-api') {
|
||||
store.dispatch('LogOut').then(() => {
|
||||
}).catch((err) => {
|
||||
console.log('🚀 ~ store.dispatch ~ err:', err)
|
||||
|
|
|
|||
|
|
@ -109,9 +109,9 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="退料班组" align="center" prop="teamName" :show-overflow-tooltip="true" width="150"/>
|
||||
<el-table-column label="退料工程" align="center" prop="proName" :show-overflow-tooltip="true" width="150"/>
|
||||
<el-table-column label="工程名称" align="center" prop="proName" :show-overflow-tooltip="true" width="150"/>
|
||||
<el-table-column label="退料单号" align="center" prop="code" :show-overflow-tooltip="true" width="150"/>
|
||||
<el-table-column label="物资类型" align="center" prop="typeName" :show-overflow-tooltip="true" width="200"/>
|
||||
<el-table-column label="工器具类型" align="center" prop="typeName" :show-overflow-tooltip="true" width="200"/>
|
||||
<el-table-column label="退料人" align="center" prop="backPerson" :show-overflow-tooltip="true" width="100"/>
|
||||
<el-table-column label="退料人电话" align="center" prop="phone" :show-overflow-tooltip="true" width="120"/>
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" :show-overflow-tooltip="true" width="180"/>
|
||||
|
|
@ -125,12 +125,12 @@
|
|||
<el-button type="text" style="color: #67c23a" v-if="scope.row.taskStatus == '1'">已驳回</el-button> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="打印状态" align="center" prop="printStatus" :show-overflow-tooltip="true" width="100">
|
||||
<!-- <el-table-column label="打印状态" align="center" prop="printStatus" :show-overflow-tooltip="true" width="100">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="scope.row.printStatus==1">已打印</div>
|
||||
<div v-if="scope.row.printStatus==0">未打印</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="240" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
// 部署生产环境和开发环境下的URL。
|
||||
// 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
|
||||
// 例如 https://www.bonus.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.bonus.vip/admin/,则设置 baseUrl 为 /admin/。
|
||||
publicPath: process.env.NODE_ENV === 'production' ? process.env.VUE_APP_BASE_API == '/iws/jiju-api' ? './' : '/' : '/', // 宏源
|
||||
publicPath: process.env.NODE_ENV === 'production' ? process.env.VUE_APP_BASE_API == '/iws/clz-api' ? './' : '/' : '/', // 宏源
|
||||
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
|
||||
outputDir: 'dist',
|
||||
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
|
||||
|
|
@ -36,7 +36,7 @@ module.exports = {
|
|||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
// target: `http://36.33.26.201:19988/prod-api`,
|
||||
target: `http://192.168.0.96:18080`,//马
|
||||
target: `http://192.168.1.117:18080`,//马
|
||||
// target: `http://192.168.0.244:18580`,//测试
|
||||
// target: `http://192.168.2.223:18080`,//山
|
||||
// target: `http://192.168.2.23:18080`,//洪
|
||||
|
|
|
|||
Loading…
Reference in New Issue