代码提交

This commit is contained in:
luoshiwen 2023-04-10 18:05:02 +08:00
parent 16d49f37bb
commit f10c84a217
5 changed files with 405 additions and 292 deletions

View File

@ -19,41 +19,41 @@ export const byPosition = (params) => {
} }
// 获取物料和批次 // 获取物料和批次
export const byBatchAndMateri = (params) => { export const byBatchAndMateri = (params) => {
axios.get('api/visualStorage/getVisualStorageListByBatchAndMateri', { return axios.get('api/visualStorage/getVisualStorageListByBatchAndMateriel', {
params params
}) })
} }
// 仓库使用率 // 仓库使用率
export const getWarehouseUsages = (params) => { export const getWarehouseUsages = (params) => {
axios.get('api/visualStorage/getWarehouseUsages', { return axios.get('api/visualStorage/getWarehouseUsages', {
params params
}) })
} }
// 每月的周转率 // 每月的周转率
export const getTurnoverRate = (params) => { export const getTurnoverRate = (params) => {
axios.get('api/visualStorage/getTurnoverRateList', { return axios.get('api/visualStorage/getTurnoverRateList', {
params params
}) })
} }
// 当月出入库金额 // 当月出入库金额
export const getChangeAmount = (params) => { export const getChangeAmount = (params) => {
axios.get('api/visualStorage/getChangeAmount', { return axios.get('api/visualStorage/getChangeAmount', {
params params
}) })
} }
// 积压物质 // 积压物质
export const getBacklogMaterialInfo = (params) => { export const getBacklogMaterialInfo = (params) => {
axios.get('api/visualStorage/getBacklogMaterialInfo', { return axios.get('api/visualStorage/getBacklogMaterialInfo', {
params params
}) })
} }
// 库龄结构 // 库龄结构
export const getInventoryAgeInfo = (params) => { export const getInventoryAgeInfo = (params) => {
axios.get('api/visualStorage/getInventoryAgeInfo', { return axios.get('api/visualStorage/getInventoryAgeInfo', {
params params
}) })
} }
@ -61,14 +61,14 @@ export const getInventoryAgeInfo = (params) => {
// 库存构成 // 库存构成
export const getStore = (params) => { export const getStore = (params) => {
axios.get('api/visualStorage/getInventoryConstitute', { return axios.get('api/visualStorage/getInventoryConstitute', {
params params
}) })
} }
// 库容预测 // 库容预测
export const getMaterialDataList = (params) => { export const getMaterialDataList = (params) => {
axios.get('api/visualStorage/getMaterialDataList', { return axios.get('api/visualStorage/getMaterialDataList', {
params params
}) })
} }

View File

@ -8,7 +8,7 @@
<!-- 每月周转率 --> <!-- 每月周转率 -->
<div class="monthlyTurnover"> <div class="monthlyTurnover">
<div class="title"> <div class="title">
周转率 周转率
</div> </div>
<div class="turnoverChart" ref="turnoverChart"> <div class="turnoverChart" ref="turnoverChart">
@ -36,6 +36,7 @@
</div> </div>
</template> </template>
<script> <script>
import { getWarehouseUsages, getTurnoverRate, getBacklogMaterialInfo } from '@/api/index'
export default { export default {
name: '', name: '',
data() { data() {
@ -44,20 +45,45 @@ export default {
myChart2: '',//echarts myChart2: '',//echarts
myChart3: '',//echarts myChart3: '',//echarts
myChart4: '',// myChart4: '',//
storeData: {
},
} }
}, },
mounted() { mounted() {
this.drawOutbound()
this.drawStore() this.drawStore()
this.drawTurnoverChart() this.drawTurnoverChart()
this.drawOutbound()
this.drawOverStock() this.drawOverStock()
}, },
computed: { computed: {
},
created() {
// 使
// getWarehouseUsages({wareHouseCode:'HA1'}).then(res=>{
// console.log(res,'使');
// this.storeData = res.data.data
// this.drawStore(this.storeData)
// // console.log(this.storeData,'......');
// })
// getTurnoverRate({wareHouseCode:'HA1'}).then(res=>{
// console.log(res,'');
// this.drawTurnoverChart(res.data.data.rateList)
// })
// getBacklogMaterialInfo({wareHouseCode:'HA1'}).then(res=>{
// console.log(res,'');
// this.drawOverStock(res.data.data)
// })
// },
//
}, },
methods: { methods: {
// 使ecahrt // 使ecahrt
drawStore() { drawStore(storeData) {
this.storemyChart = this.$echarts.init(this.$refs.storeUse) this.storemyChart = this.$echarts.init(this.$refs.storeUse)
const chartData = [ const chartData = [
{ {
@ -70,6 +96,11 @@ export default {
}, },
]; ];
if (storeData) {
chartData[0].value = storeData.usage
chartData[1].value = storeData.idleRate
}
const colorList = ['#f49a58', '#4351fd']; const colorList = ['#f49a58', '#4351fd'];
const pieData1 = []; const pieData1 = [];
// const pieData2 = []; // const pieData2 = [];
@ -140,7 +171,7 @@ export default {
}, },
formatter: formatter:
`{aa| ` + chartData[i].name + ` }{val| ` + parseInt(chartData[i].value / total * 100) + `% }`, // return `{aa| ` + chartData[i].name + ` }{val| ` + chartData[i].value + `% }`, // return
x: "left", x: "left",
textStyle: { textStyle: {
// color: "#BAFF7F", // color: "#BAFF7F",
@ -245,13 +276,23 @@ export default {
}); });
}, },
// //
drawTurnoverChart() { drawTurnoverChart(turnoverList) {
this.myChart2 = this.$echarts.init(this.$refs.turnoverChart) this.myChart2 = this.$echarts.init(this.$refs.turnoverChart)
var xDataArr = ['1月', '2月', '3月', '4月', '5月', '6月'] var xDataArr = ['1月', '2月', '3月', '4月', '5月', '6月']
var yDataArr = [0, 182, 191, 150, 0, 0, 0] var yDataArr = [0, 182, 191, 150, 0, 0, 0]
if (turnoverList) {
xDataArr = turnoverList.map(ele => {
return ele.month + '月'
})
yDataArr = turnoverList.map(ele => {
return ele.rate
})
}
var colors = ['#4587E7', '#55c3f6', '#4351fd', '#f49a58', '#da70d6', '#32cd32']; var colors = ['#4587E7', '#55c3f6', '#4351fd', '#f49a58', '#da70d6', '#32cd32'];
let option = { let option = {
tooltip: {},
xAxis: { xAxis: {
boundaryGap: true, boundaryGap: true,
type: 'category', type: 'category',
@ -301,7 +342,7 @@ export default {
} }
}, },
}, },
name: '星期', name: '周转率',
type: 'bar', type: 'bar',
barWidth: 20, barWidth: 20,
data: yDataArr data: yDataArr
@ -444,7 +485,7 @@ export default {
}); });
}, },
// //
drawOverStock() { drawOverStock(overData) {
this.myChart4 = this.$echarts.init(this.$refs.oveChart) this.myChart4 = this.$echarts.init(this.$refs.oveChart)
var data = [ var data = [
{ {
@ -457,6 +498,11 @@ export default {
}, },
]; ];
if (overData) {
data[0].value = overData.backlogAmount
data[1].value = overData.noBacklogAmount
}
var total = data.reduce((pre, cur) => { var total = data.reduce((pre, cur) => {
console.log(pre, cur.value, '数据'); console.log(pre, cur.value, '数据');
return pre.value + cur.value return pre.value + cur.value
@ -487,7 +533,7 @@ export default {
color: colors[index], color: colors[index],
}, },
formatter: formatter:
`{aa|20000万}\n{bb|总物资}`, // return overData?`{aa|${overData.amount}万}\n{bb|总物资}`:`{aa|5241万}\n{bb|总物资}`, // return
x: "left", x: "left",
textStyle: { textStyle: {
// color: "#BAFF7F", // color: "#BAFF7F",
@ -516,7 +562,7 @@ export default {
color: colors[index], color: colors[index],
}, },
formatter: formatter:
`{aa|${(item.value / 100 * 100).toFixed(2)}% }\n{bb| ${item.name}占比}`, // return overData?`{aa|${overData.noBacklogRate}% }\n{bb| ${item.name}占比}`:`{aa|${60}% }\n{bb| ${item.name}占比}`, // return
x: "left", x: "left",
textStyle: { textStyle: {
// color: "#BAFF7F", // color: "#BAFF7F",

View File

@ -16,9 +16,10 @@
</div> </div>
<ul class="ul"> <ul class="ul">
<li v-for="(s, i) in ulList" class="stockLi" :key="i"> <li v-for="(s, i) in ulList" class="stockLi" :key="i">
<img :src="s.pic" alt=""> <img :src="pics[i]" alt="">
<span class="liName">{{ s.name }}:</span> <span class="liName">{{ s.name }}:</span>
<span class="liNum" :class="'num' + i">{{ s.num }}&nbsp;<span style="font-size: 13px;">万元</span></span> <span class="liNum" :class="'num' + i">{{ s.value }}&nbsp;<span
style="font-size: 13px;">{{ s.unit == true ? s.unit : '万元' }}</span></span>
</li> </li>
</ul> </ul>
</div> </div>
@ -51,27 +52,41 @@
</div> </div>
</template> </template>
<script> <script>
import { getStore } from "@/api/index"
export default { export default {
name: 'Stock', name: 'Stock',
data() { data() {
return { return {
ulList: [ ulList: [
{ name: '非限制', pic: require('@/assets/images/upstock.png'), num: '26285.91' }, { name: '非限制', value: '26285.91' },
{ name: '质检', pic: require('@/assets/images/testing.png'), num: '1338.31' }, { name: '质检', value: '1338.31' },
{ name: '冻结', pic: require('@/assets/images/freeze.png'), num: '2066.08' }, { name: '冻结', value: '2066.08' },
], ],
pics: [require('@/assets/images/upstock.png'), require('@/assets/images/testing.png'), require('@/assets/images/freeze.png')],
inputVal: '', inputVal: '',
ISRList: [ ISRList: [
{ productMsg: '镇江扬中国电电力线缆', address: 'B01-050103', num: '26823' }, { productMsg: '镇江扬中国电电力线缆', address: 'B01-050103', num: '26823' },
{ productMsg: '镇江扬中国电电力线缆', address: 'B01-050104', num: '17895' }, { productMsg: '镇江扬中国电电力线缆', address: 'B01-050104', num: '17895' },
], ],
textarea:'' textarea: ''
} }
}, },
mounted() { mounted() {
// //
this.drawOutboundStock() this.drawOutboundStock()
}, },
created() {
//
// getStore({wareHouseCode:'HA1'}).then(res=>{
// // console.log(res,'');
// if(res.data.code==200){
// // console.log(res.data.data,'kulin');
// this.ulList = res.data.data.infoList
// // console.log(this.ulList);
// }
// })
},
computed: { computed: {
}, },
@ -289,15 +304,18 @@ export default {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
flex-direction: column; flex-direction: column;
p>span:nth-child(1){
p>span:nth-child(1) {
display: inline-block; display: inline-block;
width: 5em; width: 5em;
} }
.address,.num{ .address,
.num {
font-family: quare; font-family: quare;
color: #4c59fd; color: #4c59fd;
} }
.p1 { .p1 {
width: 100%; width: 100%;

View File

@ -1,272 +1,321 @@
<template> <template>
<div class="aside"> <div class="aside">
<div class="aside-box"> <div class="aside-box">
<div class="left-item"> <div class="left-item">
<div class="logo"> <div class="logo">
<img src="@/assets/images/logo.png" alt=""> <img src="@/assets/images/logo.png" alt="" />
</div>
<!-- 右边小图标样式 -->
<ul class="icons">
<li class="icon-item" ref="iconItem" v-for="(s, i) in asideList" data-num="0" :key="i"
@click="updateImg(i, $event)">
<img :src="i == index ? s.select : s.pic" alt="">
<span :style="i == index ? 'color:#2620b1' : ''">{{ s.name }}</span>
<div class="mark">
</div>
</li>
</ul>
</div>
<!-- <transition name="slide-fade"> -->
<!-- </transition> -->
<!-- <transition name="move"> -->
<!-- 库存组件 -->
<!-- <Stock v-if="index == 1" class="right-item" /> -->
<!-- 入库的组件 -->
<!-- <EnterStore v-if="index == 2" class="right-item" /> -->
<!-- 出库组件 -->
<!-- <OutStore v-if="index == 3" class="right-item" /> -->
<!-- <Manage v-if="index == 4" class="right-item" /> -->
<!-- </transition> -->
<keep-alive>
<transition name="slide-fade" mode="out-in">
<component ref="rightItem" :is="view" class="right-item"></component>
</transition>
</keep-alive>
</div> </div>
<!-- 右边小图标样式 -->
<ul class="icons">
<li
class="icon-item"
ref="iconItem"
v-for="(s, i) in asideList"
data-num="0"
:key="i"
@click="updateImg(i, $event)"
>
<img :src="i == index ? s.select : s.pic" alt="" />
<span :style="i == index ? 'color:#2620b1' : ''">{{ s.name }}</span>
<div class="mark"></div>
</li>
</ul>
</div>
<!-- <transition name="slide-fade"> -->
<!-- </transition> -->
<!-- <transition name="move"> -->
<!-- 库存组件 -->
<!-- <Stock v-if="index == 1" class="right-item" /> -->
<!-- 入库的组件 -->
<!-- <EnterStore v-if="index == 2" class="right-item" /> -->
<!-- 出库组件 -->
<!-- <OutStore v-if="index == 3" class="right-item" /> -->
<!-- <Manage v-if="index == 4" class="right-item" /> -->
<!-- </transition> -->
<keep-alive>
<transition name="slide-fade" mode="out-in">
<component ref="rightItem" :is="view" class="right-item"></component>
</transition>
</keep-alive>
</div> </div>
</div>
</template> </template>
<script> <script>
// //
import Stock from '@/component/Stock.vue' import Stock from "@/component/Stock.vue";
// //
import Manage from '@/component/Manage.vue' import Manage from "@/component/Manage.vue";
// //
import EnterStore from '@/component/EnterStore.vue' import EnterStore from "@/component/EnterStore.vue";
// //
import OutStore from '@/component/OutStore.vue' import OutStore from "@/component/OutStore.vue";
import OverView from '@/component/OverView.vue' import OverView from "@/component/OverView.vue";
import {getBacklogMaterialInfo,byPosition, byBatchAndMateri ,getWarehouseUsages,getTurnoverRate,getChangeAmount ,getInventoryAgeInfo ,getStore,getMaterialDataList} from "@/api/index";
export default { export default {
name: 'index', name: "index",
components: { components: {
Stock, Stock,
Manage, Manage,
EnterStore, EnterStore,
OutStore, OutStore,
OverView OverView,
},
data() {
return {
index: 0,
asideList: [
{
name: "总览",
select: require("@/assets/images/overview-select.png"),
pic: require("@/assets/images/overview-default.png"),
},
{
name: "库存",
select: require("@/assets/images/stock-select.png"),
pic: require("@/assets/images/stock-default.png"),
},
{
name: "入库",
select: require("@/assets/images/enter-select.png"),
pic: require("@/assets/images/enter-default.png"),
},
{
name: "出库",
select: require("@/assets/images/out-select.png"),
pic: require("@/assets/images/out-default.png"),
},
{
name: "管理",
select: require("@/assets/images/manage-select.png"),
pic: require("@/assets/images/manage-default.png"),
},
],
view: "",
asideShow: false,
};
},
mounted() {
// setTimeout(()=>{
this.view = "OverView";
// },2000)
//
byPosition({ wareHouseCode: "HA1", position: "B01-010102" }).then((res) => {
console.log(res, "仓位号");
});
//
byBatchAndMateri({ batch:"2021093009",wareHouseCode:'HA1' }).then((res) => {
console.log(res,'物料批次');
});
// // 使
// getWarehouseUsages({wareHouseCode:'HA1'}).then(res=>{
// console.log(res,'使');
// })
//
// getTurnoverRate({wareHouseCode:'HA1'}).then(res=>{
// console.log(res,'');
// })
//
getChangeAmount({wareHouseCode:'HA1'}).then(res=>{
console.log(res,'当月出入库金额');
})
//
//
getInventoryAgeInfo({wareHouseCode:'HA1'}).then(res=>{
console.log(res,'库龄结构');
})
//
// getStore({wareHouseCode:'HA1'}).then(res=>{
// console.log(res,'');
// })
//
// getMaterialDataList({method:'getYckc',LGUNM:"HA1",NY:"202304"}).then(res=>{
// console.log(res,'');
// })
},
created() {},
computed: {},
methods: {
//
updateImg(i, event) {
//
this.asideShow = !this.asideShow;
if (this.index == i && this.asideShow) {
// console.log(1);
this.view = "";
return;
}
this.index = i;
// let rightBox = document.querySelector('.right-item')
// rightBox.style.transform = 'translateX(0)'
// console.log(rightBox,'dom');
// console.log(event.target,'....');
if (this.index == 0) {
// this.$nextTick(() => {
// // echarts
// this.drawStore()
// this.drawTurnoverChart()
// this.drawOutbound()
// this.drawOverStock()
// })
this.view = "OverView";
} else if (this.index == 1) {
this.view = "Stock";
} else if (this.index == 2) {
this.view = "EnterStore";
} else if (this.index == 3) {
this.view = "OutStore";
} else if (this.index == 4) {
this.view = "Manage";
}
this.asideShow = false;
}, },
data() { },
return { };
index: 0,
asideList: [
{ name: '总览', select: require("@/assets/images/overview-select.png"), pic: require('@/assets/images/overview-default.png') },
{ name: '库存', select: require("@/assets/images/stock-select.png"), pic: require('@/assets/images/stock-default.png') },
{ name: '入库', select: require("@/assets/images/enter-select.png"), pic: require('@/assets/images/enter-default.png') },
{ name: '出库', select: require("@/assets/images/out-select.png"), pic: require('@/assets/images/out-default.png') },
{ name: '管理', select: require("@/assets/images/manage-select.png"), pic: require('@/assets/images/manage-default.png') }
],
view: '',
asideShow: false,
}
},
mounted() {
// setTimeout(()=>{
this.view = 'OverView'
// },2000)
},
created(){
},
computed: {
},
methods: {
//
updateImg(i, event) {
//
this.asideShow = !this.asideShow
if (this.index == i && this.asideShow) {
// console.log(1);
this.view = ''
return
}
this.index = i
// let rightBox = document.querySelector('.right-item')
// rightBox.style.transform = 'translateX(0)'
// console.log(rightBox,'dom');
// console.log(event.target,'....');
if (this.index == 0) {
// this.$nextTick(() => {
// // echarts
// this.drawStore()
// this.drawTurnoverChart()
// this.drawOutbound()
// this.drawOverStock()
// })
this.view = 'OverView'
} else if (this.index == 1) {
this.view = 'Stock'
} else if (this.index == 2) {
this.view = 'EnterStore'
} else if (this.index == 3) {
this.view = 'OutStore'
} else if (this.index == 4) {
this.view = 'Manage'
}
this.asideShow = false
}
},
}
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.mark { .mark {
// display: none; // display: none;
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
// background-color: #888888; // background-color: #888888;
} }
.slide-fade-enter-active { .slide-fade-enter-active {
transition: all 1s; transition: all 1s;
} }
.slide-fade-leave-active { .slide-fade-leave-active {
transition: all 1s cubic-bezier(1.0, 0.5, 0.8, 1.0); transition: all 1s cubic-bezier(1, 0.5, 0.8, 1);
} }
.slide-fade-enter, .slide-fade-enter,
.slide-fade-leave-to { .slide-fade-leave-to {
transform: translateX(-100%); transform: translateX(-100%);
opacity: 0; opacity: 0;
} }
.aside { .aside {
width: 21.4%; width: 21.4%;
height: 100%; height: 100%;
display: flex;
align-items: center;
margin-left: 3%;
position: relative;
z-index: 99;
.aside-box {
width: 100%;
height: 92.6%;
overflow: hidden;
// background-color: rgba(229, 237, 242, .5);
border-radius: 20px;
display: flex; display: flex;
align-items: center;
margin-left: 3%;
position: relative;
z-index: 99;
.aside-box { .left-item {
width: 100%; width: 18.8%;
height: 92.6%; height: 100%;
overflow: hidden; background-color: #f7f8f9;
// background-color: rgba(229, 237, 242, .5); border-top-left-radius: 20px;
border-radius: 20px; border-bottom-left-radius: 20px;
position: relative;
z-index: 15;
.logo {
margin-top: 15px;
display: flex; display: flex;
justify-content: center;
margin-bottom: 32px;
}
.left-item { .icons {
width: 18.8%; width: 100%;
height: 100%; height: 10%;
background-color: #f7f8f9;
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
position: relative;
z-index: 15;
.logo { .icon-item {
margin-top: 15px; width: 100%;
display: flex; height: 100%;
justify-content: center; display: flex;
margin-bottom: 32px; flex-wrap: wrap;
} align-items: center;
justify-content: center;
.icons { align-content: center;
width: 100%; cursor: pointer;
height: 10%; position: relative;
.icon-item {
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
align-content: center;
cursor: pointer;
position: relative;
img {
display: block;
}
span {
display: inline-block;
width: 100%;
text-align: center;
color: #888888;
}
}
}
}
.right-item {
width: 81.2%;
// display: none;
// opacity: 0;
// transition: all 1s;
height: 100%;
// transform: translateX(-100%);
background-color: rgba(229, 237, 242, .5);
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
position: relative;
z-index: 10;
.title {
font-size: 16px;
margin-left: 7%;
margin-bottom: 4%;
}
.storeUse {
width: 100%;
height: 21.5%;
}
.monthlyTurnover,
.outboundAmount {
width: 100%;
height: 25%;
.turnoverChart,
.outboundChart {
width: 90%;
height: 80%;
background-color: #fff;
margin: 0 auto;
border-radius: 10px;
}
}
.overStock {
height: calc(100% - 71.5%);
width: 100%;
.overChart {
width: 100%;
height: 80%;
}
}
img {
display: block;
}
span {
display: inline-block;
width: 100%;
text-align: center;
color: #888888;
}
} }
}
} }
.right-item {
width: 81.2%;
// display: none;
// opacity: 0;
// transition: all 1s;
height: 100%;
// transform: translateX(-100%);
background-color: rgba(229, 237, 242, 0.5);
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
position: relative;
z-index: 10;
.title {
font-size: 16px;
margin-left: 7%;
margin-bottom: 4%;
}
.storeUse {
width: 100%;
height: 21.5%;
}
.monthlyTurnover,
.outboundAmount {
width: 100%;
height: 25%;
.turnoverChart,
.outboundChart {
width: 90%;
height: 80%;
background-color: #fff;
margin: 0 auto;
border-radius: 10px;
}
}
.overStock {
height: calc(100% - 71.5%);
width: 100%;
.overChart {
width: 100%;
height: 80%;
}
}
}
}
} }
</style> </style>

View File

@ -1,33 +1,33 @@
// const { defineConfig } = require('@vue/cli-service') // const { defineConfig } = require('@vue/cli-service')
// module.exports = defineConfig({ // module.exports = defineConfig({
// transpileDependencies: true // transpileDependencies: true
// }) // })
module.exports = { module.exports = {
// 打包文件配置 // 打包文件配置
publicPath: "/", publicPath: "/",
assetsDir: "static", assetsDir: "static",
lintOnSave: false, lintOnSave: false,
devServer: { devServer: {
// overlay: { // 让浏览器 overlay 同时显示警告和错误 // overlay: { // 让浏览器 overlay 同时显示警告和错误
// warnings: true, // warnings: true,
// errors: true, // errors: true,
// }, // },
// hotOnly: true, // hotOnly: true,
// open: false, // npm run serve后自动打开页面 // open: false, // npm run serve后自动打开页面
// https: false, // https:{type:Boolean} // https: false, // https:{type:Boolean}
// host: "0.0.0.0", // 匹配本机IP地址(默认是0.0.0.0) // host: "0.0.0.0", // 匹配本机IP地址(默认是0.0.0.0)
// port: 8989, // 开发服务器运行端口号 // port: 8989, // 开发服务器运行端口号
proxy: { proxy: {
'/api': { //代理的名字 '/api': { //代理的名字
// target:'http://111.229.30.246:3111/', // target:'http://111.229.30.246:3111/',
target: 'http://ip:30005/gwcp/', target: 'http://192.168.80.111:30005/gwcpedge/',
// target:'http://www.weather.com.cn/', // target:'http://www.weather.com.cn/',
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/api': '', '^/api': '',
} }
}, },
} }
} }
} }