Commit 1201dc91 authored by yf's avatar yf

Merge branch 'develop' of http://git.censoft.com.cn/rongtong/rongtong-app into dev-yf'

parents cf637611 0bee0a13
...@@ -162,7 +162,7 @@ const routes = [{ ...@@ -162,7 +162,7 @@ const routes = [{
component: () => import('../views/riskProject/add/addCurrent.vue'), component: () => import('../views/riskProject/add/addCurrent.vue'),
}, },
{//新增现状风险 {//新增现状风险
path: '/addPresent ', path: '/addPresent',
name: 'addPresent', name: 'addPresent',
component: () => import('../views/riskProject/add/addPresent.vue'), component: () => import('../views/riskProject/add/addPresent.vue'),
}, },
......
This diff is collapsed.
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<div class="login" :style="{ backgroundImage: `url(${bg})` }"> <div class="login" :style="{ backgroundImage: `url(${bg})` }">
<div class="title"> <div class="title">
<div class="login-logo"> <div class="login-logo">
融通物管安全管理平台 融通危险源辨识系统建设项目
</div> </div>
<div class="login-name">Enterprise Business Data Monitoring</div> <!-- <div class="login-name">Enterprise Business Data Monitoring</div> -->
</div> </div>
<div class="con" :style="{ backgroundImage: `url(${conBg})` }"> <div class="con" :style="{ backgroundImage: `url(${conBg})` }">
......
...@@ -270,7 +270,7 @@ import { getFun, postFun } from "@/service/table.js"; ...@@ -270,7 +270,7 @@ import { getFun, postFun } from "@/service/table.js";
// postRiskShowMeasures, // postRiskShowMeasures,
// } from "@/service/risk"; // } from "@/service/risk";
export default { export default {
name: "risk-add", name: "addCurrent",
components: { components: {
LHeader, LHeader,
}, },
...@@ -345,9 +345,9 @@ export default { ...@@ -345,9 +345,9 @@ export default {
}; };
}, },
created() { created() {
if (this.$route.params.inherentId) { if (this.$route.params.inherentId || sessionStorage.getItem("inherentId")) {
this.inherentId = this.$route.params.inherentId this.inherentId = this.$route.params.inherentId || sessionStorage.getItem("inherentId")
this.buildingIds = this.$route.params.buildingId this.buildingIds = this.$route.params.buildingId || sessionStorage.getItem("buildingId")
this.postReturnEcho(); this.postReturnEcho();
} }
// this.getList(); // this.getList();
......
This diff is collapsed.
...@@ -297,7 +297,8 @@ ...@@ -297,7 +297,8 @@
</van-uploader> </van-uploader>
</template> </template>
</van-field> </van-field>
<div v-if="this.$route.params.isView" style="height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;" > <!-- v-if="this.$route.params.isView" -->
<div style="height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;" >
<img src="@/assets/accidentIcon/bookmark.svg" alt="" style="position: relative;top: 32%;transform: translateY(-50%);" > <img src="@/assets/accidentIcon/bookmark.svg" alt="" style="position: relative;top: 32%;transform: translateY(-50%);" >
参考依据 参考依据
</div> </div>
...@@ -331,8 +332,8 @@ ...@@ -331,8 +332,8 @@
@cancel="showSource = false" @cancel="showSource = false"
/> />
</van-popup> </van-popup>
<!-- v-if="this.$route.params.isView" -->
<div style="margin: 16px 16px 0" v-if="this.$route.params.isView" > <div style="margin: 16px 16px 0" >
<van-button round block type="info" native-type="submit" <van-button round block type="info" native-type="submit"
>上报</van-button >上报</van-button
> >
...@@ -367,7 +368,8 @@ ...@@ -367,7 +368,8 @@
</van-row> </van-row>
</div> </div>
</van-dialog> </van-dialog>
<div v-if="this.$route.params.isView" style="margin: 10px 16px 0px; padding-bottom: 16px"> <!-- v-if="this.$route.params.isView" -->
<div style="margin: 10px 16px 0px; padding-bottom: 16px">
<van-button round block type="warning" @click.native="cancel" <van-button round block type="warning" @click.native="cancel"
>取消</van-button >取消</van-button
> >
...@@ -390,35 +392,23 @@ import { getFun, postFun } from "@/service/table.js"; ...@@ -390,35 +392,23 @@ import { getFun, postFun } from "@/service/table.js";
// postRiskShowMeasures, // postRiskShowMeasures,
// } from "@/service/risk"; // } from "@/service/risk";
export default { export default {
name: "risk-add", name: "addPresent",
components: { components: {
LHeader, LHeader,
}, },
activated() { activated() {
this.showSetRank = false; // 再次关闭弹出层 以防万一
if (this.$route.params.taskId) {
this.isShowreturnCause = true;
this.text = "风险上报退回";
this.taskId = this.$route.params.taskId;
this.postReturnEcho();
}
this.getList();
this.$bus.$on("riskLevelBus", (res) => { },
this.showSetRank = false; // 再次关闭弹出层 以防万一 beforeRouteEnter(to, from, next){
console.log(Boolean(res)); if(from.name=='addCurrent'){
if (res) { sessionStorage.setItem('presentForm','')
this.riskRank = res; sessionStorage.setItem('level','')
} else {
this.setRank = "";
} }
// 销毁一下监听事件 不然会越加越多 next()
this.$bus.$off("riskLevelBus");
});
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
if (to.name != "matrix-grad") { if (to.name != "riskInherent") {
sessionStorage.setItem('presentForm',JSON.stringify(this.form))
} }
next(); next();
}, },
...@@ -445,15 +435,6 @@ export default { ...@@ -445,15 +435,6 @@ export default {
columnsProjectName: [], columnsProjectName: [],
factor: "", //风险因素 factor: "", //风险因素
showFactor: false, showFactor: false,
columnsFactor: [],
messageList: [
{
title:'回显风险源名称',
time:'2022-12-12',
name:'Mr.周',
state:1
}
],
source: "", //风险源 source: "", //风险源
userPrefix: "", //风险源 userPrefix: "", //风险源
showSource: false, showSource: false,
...@@ -515,6 +496,12 @@ export default { ...@@ -515,6 +496,12 @@ export default {
this.form.projectId='测试项目' this.form.projectId='测试项目'
}, },
mounted(){
if(sessionStorage.getItem('presentForm')!=''){
this.form=JSON.parse(sessionStorage.getItem('presentForm'))
this.form.level = sessionStorage.getItem('level')
}
},
methods: { methods: {
seletFloor(name){ seletFloor(name){
this.$toast.loading({ this.$toast.loading({
...@@ -709,27 +696,6 @@ export default { ...@@ -709,27 +696,6 @@ export default {
this.$toast.clear(); this.$toast.clear();
}, },
// 请求表单数据
getList() {
this.$toast.loading({
message: "加载中...",
forbidClick: true,
loadingType: "spinner",
duration: 0,
});
getFormList("/riskMain/add")
.then((res) => {
this.$toast.clear();
this.columnsProjectName = res.data.projectInformations;
this.columnsFactor = res.data.riskInventories;
this.columnsMainDutyDept = res.data.organizationList;
})
.catch(() => {
this.$toast.clear();
this.$toast.fail("加载失败,请稍后再试");
});
},
// 请求已退回详情数据 // 请求已退回详情数据
postReturnEcho() { postReturnEcho() {
this.$toast.loading({ this.$toast.loading({
......
...@@ -33,9 +33,9 @@ ...@@ -33,9 +33,9 @@
<van-col span="15">{{ item.roomName }}</van-col> <van-col span="15">{{ item.roomName }}</van-col>
</van-row> </van-row>
</van-col> </van-col>
<van-col span="7" :style="{ color: item.state == 1 ? '#0069e5' : '#03b615' }"> <!-- <van-col span="7" :style="{ color: item.state == 1 ? '#0069e5' : '#03b615' }">
{{ "●待审批" }} {{ "●待审批" }}
</van-col> </van-col> -->
</van-row> </van-row>
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop="showIndex = null"> <div class="wrapper" @click.stop="showIndex = null">
...@@ -113,8 +113,8 @@ export default { ...@@ -113,8 +113,8 @@ export default {
}, },
created() { created() {
this.planId = this.$route.params.id || sessionStorage.getItem("planId"); this.planId = this.$route.params.id || sessionStorage.getItem("planId");
this.buildingId = this.$route.params.buildingId|| sessionStorage.getItem("buildingId"); this.buildingId = this.$route.params.buildingId || sessionStorage.getItem("buildingId");
this.buildingName = this.$route.params.buildingName|| sessionStorage.getItem("buildingName"); this.buildingName = this.$route.params.buildingName || sessionStorage.getItem("buildingName");
this.getRiskList(this.planId); this.getRiskList(this.planId);
// this.postList(); // this.postList();
}, },
...@@ -134,36 +134,47 @@ export default { ...@@ -134,36 +134,47 @@ export default {
}, },
//新增固有风险 //新增固有风险
performTasks() { performTasks() {
sessionStorage.setItem('buildingId',this.buildingId) sessionStorage.setItem('buildingId', this.buildingId)
sessionStorage.setItem('planId',this.planId) sessionStorage.setItem('planId', this.planId)
sessionStorage.setItem('buildingName',this.buildingName) sessionStorage.setItem('buildingName', this.buildingName)
this.$router.push({ this.$router.push({
name: "addInherent", name: "addInherent",
params: { params: {
id: this.active, id: this.active,
planId: this.planId, planId: this.planId,
buildingId:this.buildingId, buildingId: this.buildingId,
buildingName:this.buildingName buildingName: this.buildingName
} }
}); });
}, },
//任务执行结束 //任务执行结束
endTasks() { endTasks() {
//toDo //toDo
Dialog.confirm({
title: '任务执行结束',
message: '是否任务执行结束',
})
.then(() => {
postFun( postFun(
`/risk/plan/submit/${this.planId}/${this.buildingId}` `/risk/plan/submit/${this.planId}/${this.buildingId}`
).then(res => { ).then(res => {
console.log(res.msg,'lllll') // Dialog.alert({
Dialog.alert({ // title: '任务执行结束',
title: '任务执行结束', // message: res.msg,
message: res.msg, // }).then(() => {
}).then(() => { // resolve(res.data);
this.$toast.success(res.msg)
this.$router.push({ this.$router.push({
name:'riskAssess' name: 'riskAssess'
}) })
}); // });
}) })
})
.catch(() => {
// on cancel
});
}, },
handadd() { handadd() {
this.$router.push({ this.$router.push({
...@@ -240,12 +251,12 @@ export default { ...@@ -240,12 +251,12 @@ export default {
}, },
async changeFloor() { async changeFloor() {
let room = await this.roomList(this.value1); let room = await this.roomList(this.value1);
let risk = await this.riskList(this.planId, this.active, this.value1); let risk = await this.riskList(this.planId, this.buildingId, this.value1, this.value2);
}, },
async changeRoom() { async changeRoom() {
let risk = await this.riskList( let risk = await this.riskList(
this.planId, this.planId,
this.active, this.buildingId,
this.value1, this.value1,
this.value2 this.value2
); );
...@@ -262,16 +273,17 @@ export default { ...@@ -262,16 +273,17 @@ export default {
}, },
// 详情 // 详情
goDetail(data) { goDetail(data) {
sessionStorage.setItem('buildingId',this.buildingId) sessionStorage.setItem('buildingId', this.buildingId)
sessionStorage.setItem('planId',this.planId) sessionStorage.setItem('planId', this.planId)
sessionStorage.setItem('buildingName',this.buildingName) sessionStorage.setItem('buildingName', this.buildingName)
sessionStorage.setItem('inherentId', data.businessId || data.id)
this.$router.push({ this.$router.push({
name: "addCurrent", name: "addCurrent",
params: { params: {
inherentId: data.businessId || data.id, inherentId: data.businessId || data.id,
planId: this.planId, planId: this.planId,
buildingId:this.buildingId, buildingId: this.buildingId,
buildingName:this.buildingName buildingName: this.buildingName
} }
}); });
this.showIndex = null; this.showIndex = null;
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<div class="section"> <div class="section">
<p>该次测评风险值为:</p> <p>该次测评风险值为:</p>
<div> <div class="resultScore">
<p style="font-weight: bold;font-size: 20px;">{{ score }}</p> <p style="font-weight: bold;font-size: 20px;">{{ this.$route.params.score }}</p>
</div> </div>
<p>本次评估结果评定为:{{ level }}</p> <p>本次评估结果评定为:{{ level }}</p>
<van-divider></van-divider> <van-divider></van-divider>
...@@ -12,10 +12,11 @@ ...@@ -12,10 +12,11 @@
<van-field readonly label="风险发生可能性:" placeholder="一般情况不会发生" /> <van-field readonly label="风险发生可能性:" placeholder="一般情况不会发生" />
<van-field readonly label="后果严重程度" placeholder="轻微影响" /> <van-field readonly label="后果严重程度" placeholder="轻微影响" />
<van-field readonly label="判定标准:" placeholder="见下图" /> <van-field readonly label="判定标准:" placeholder="见下图" />
<van-image width="90vw" height="auto" :src="require('@/assets/workbench/sst.jpg')" />
</div> </div>
<div style="display: flex;margin: 10px 16px 0px; padding-bottom: 16px"> <div style="display: flex;margin: 10px 16px 0px; padding-bottom: 16px">
<van-button block type="info" @click="sureClose">确认本次测评结果</van-button> <van-button block type="info" @click="sureClose" style="margin-right: 4px;">确认本次测评结果</van-button>
<van-button block plain type="info" @click="resetClose">取消</van-button> <van-button block plain type="info" @click="resetClose" style="margin-left: 4px;">取消</van-button>
</div> </div>
</div> </div>
...@@ -47,30 +48,30 @@ import LHeader from "@/components/header.vue"; ...@@ -47,30 +48,30 @@ import LHeader from "@/components/header.vue";
}) })
}, },
resetClose(){ resetClose(){
this.$router.push({ sessionStorage.setItem('level','')
name:'addInherent', history.go(-1)
params:{
level:''
}
})
}, },
sureClose(){ sureClose(){
this.$router.push({ // this.$emit('',)
name:'addInherent', sessionStorage.setItem('level',this.level)
params:{ history.go(-1)
level:this.level // this.$router.push({
} // name:'addInherent',
}) // params:{
// level:this.level
// }
// })
} }
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.wrapper{ .wrapper {
width: 100%; width: 100%;
height: 100%; height: 100%;
.section{
.section {
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 10px; padding: 10px;
...@@ -78,5 +79,15 @@ import LHeader from "@/components/header.vue"; ...@@ -78,5 +79,15 @@ import LHeader from "@/components/header.vue";
background: #fff; background: #fff;
font-size: 14px; font-size: 14px;
} }
.resultScore{
width: 48px;
height: 48px;
background: #ffc600;
text-align: center;
line-height: 48px;
border-radius: 50%;
margin: 0 auto;
}
} }
</style> </style>
\ No newline at end of file
...@@ -22,14 +22,14 @@ ...@@ -22,14 +22,14 @@
<div>开始时间:</div> <div>开始时间:</div>
<div> <div>
{{ {{
timestampToTimes(messageList.startTime) || messageList.startTime timestampToTimes(messageList.startTime,'DT2') || messageList.startTime
}} }}
</div> </div>
</van-grid-item> </van-grid-item>
<van-grid-item> <van-grid-item>
<div>结束时间:</div> <div>结束时间:</div>
<div> <div>
{{ timestampToTimes(messageList.endTime) || messageList.endTime }} {{ timestampToTimes(messageList.endTime,'DT2') || messageList.endTime }}
</div> </div>
</van-grid-item> </van-grid-item>
</van-grid> </van-grid>
...@@ -69,8 +69,8 @@ ...@@ -69,8 +69,8 @@
/> />
<van-field <van-field
readonly readonly
name="projectName" name="name"
:value="form.projectName" :value="form.name"
label="任务名称" label="任务名称"
input-align="right" input-align="right"
:rules="[{ required: true, message: '任务名称不能为空' }]" :rules="[{ required: true, message: '任务名称不能为空' }]"
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
/> />
<van-field <van-field
readonly
clickable clickable
name="workUserNames" name="workUserNames"
:value="form.workUserNames" :value="form.workUserNames"
...@@ -129,7 +130,7 @@ ...@@ -129,7 +130,7 @@
input-align="right" input-align="right"
:formatter=" :formatter="
() => { () => {
return timestampToTimes(form.startTime); return timestampToTimes(form.startTime,'DT2');
} }
" "
:rules="[{ required: true, message: '任务开始时间不能为空' }]" :rules="[{ required: true, message: '任务开始时间不能为空' }]"
...@@ -142,7 +143,7 @@ ...@@ -142,7 +143,7 @@
label="任务结束时间" label="任务结束时间"
:formatter=" :formatter="
() => { () => {
return timestampToTimes(form.endTime); return timestampToTimes(form.endTime,'DT2')
} }
" "
input-align="right" input-align="right"
...@@ -168,30 +169,28 @@ ...@@ -168,30 +169,28 @@
type="flex" type="flex"
justify="space-between" justify="space-between"
style="margin-top:10px;" style="margin-top:10px;"
@click="toRiskDetail(item)"
> >
<van-col span="22" @click="toRiskDetail(item)"> <van-col span="20" >
<van-col span="5"> <van-col span="5">
<van-image <van-image
width="46" width="46"
height="46" height="46"
src="https://img01.yzcdn.cn/vant/cat.jpeg" src="http://rongtongpc.censoft.com.cn/dev-api/profile/upload/2023/07/08/guyou.png"
/> />
<van-image width="46" height="46" :src="item.avatar" /> <!-- <van-image width="46" height="46" :src="item.avatar" /> -->
</van-col> </van-col>
<van-col span="17"> <van-col span="15">
<van-row gutter=""> <van-row gutter="">
<van-col span="9">风险名称:</van-col> <van-col span="9">风险名称:</van-col>
<van-col span="15">{{ item.name }}</van-col> <van-col span="15">{{ item.name }}</van-col>
</van-row> </van-row>
</van-col> </van-col>
</van-col> </van-col>
<van-col span="2"> <van-col span="4">
<van-row <van-row type="flex">
:style="{ 详情
color: '#03b615' <van-icon name="arrow" size="26px" />
}"
>
<van-icon name="arrow" size="26px" @click="goColorDetail" />
</van-row> </van-row>
</van-col> </van-col>
</van-row> </van-row>
...@@ -211,7 +210,7 @@ ...@@ -211,7 +210,7 @@
<van-row> <van-row>
<van-col span="24"> <van-col span="24">
<div class="info-title"> <div class="info-title">
{{ timestampToTimes(item.startTime) }} {{ timestampToTimes(item.startTime,"DT1") }}
</div> </div>
</van-col> </van-col>
</van-row> </van-row>
...@@ -427,7 +426,7 @@ ...@@ -427,7 +426,7 @@
<van-row gutter=""> <van-row gutter="">
<van-col span="8">发起时间:</van-col> <van-col span="8">发起时间:</van-col>
<van-col span="16" <van-col span="16"
>{{ timestampToTimes(item.startTime) }} >{{ timestampToTimes(item.startTime,"DT2") }}
</van-col> </van-col>
</van-row> </van-row>
</van-col> </van-col>
...@@ -556,11 +555,12 @@ export default { ...@@ -556,11 +555,12 @@ export default {
this.getRiskTaskList(this.planId, buildingId); this.getRiskTaskList(this.planId, buildingId);
}, },
methods: { methods: {
timestampToTimes(time) { timestampToTimes(time,type) {
return timestampToTime(new Date(time), "DT2", true); return timestampToTime(new Date(time), type, true);
}, },
//执行任务 //执行任务
performTasks() { performTasks() {
console.log( this.messageList,'LLLL')
sessionStorage.setItem( sessionStorage.setItem(
"buildingId", "buildingId",
this.messageList.riskBuildingListDtos[0].buildingId this.messageList.riskBuildingListDtos[0].buildingId
...@@ -642,6 +642,11 @@ export default { ...@@ -642,6 +642,11 @@ export default {
console.log(res.data, "lll"); console.log(res.data, "lll");
this.riskList = res.data; this.riskList = res.data;
}); });
}else{
getFun(`/risk/plan/inherent/list/${planId}`).then(res => {
console.log(res.data, "lll");
this.riskList = res.data;
});
} }
}, },
postList(id, buildingId) { postList(id, buildingId) {
...@@ -744,7 +749,6 @@ export default { ...@@ -744,7 +749,6 @@ export default {
}, },
//风险清单列表点击 //风险清单列表点击
toRiskDetail(item) { toRiskDetail(item) {
console.log(item, "LLLL");
this.$router.push({ this.$router.push({
name: "taskDetail", name: "taskDetail",
params: { params: {
......
...@@ -139,7 +139,11 @@ ...@@ -139,7 +139,11 @@
type="info" type="info"
size="mini" size="mini"
@click="todotail(index, item)" @click="todotail(index, item)"
>查看详情</van-button >{{
item.status == "wait" || item.status == "return"
? "去处理"
: "查看详情"
}}</van-button
> >
</van-row></van-col </van-row></van-col
> >
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div style="display: flex;"> <div style="display: flex;">
<van-field readonly required name="roomName" :value="InherentRisk.roomName" label="所属房间" placeholder="请输入" <van-field readonly required name="roomName" :value="InherentRisk.roomName" label="所属房间" placeholder="请输入"
:rules="[{ required: true, message: '所属房间不能为空' }]" /> :rules="[{ required: true, message: '所属房间不能为空' }]" />
<van-button style="color: #cccc;background-color: #f0f1f5;" icon="plus" type="info" /> <!-- <van-button style="color: #cccc;background-color: #f0f1f5;" icon="plus" type="info" /> -->
</div> </div>
<van-field required clickable name="name" v-model="InherentRisk.factor" label="风险源名称" placeholder="请输入" <van-field required clickable name="name" v-model="InherentRisk.factor" label="风险源名称" placeholder="请输入"
:rules="[{ required: true, message: '风险源名称不能为空' }]" /> :rules="[{ required: true, message: '风险源名称不能为空' }]" />
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</van-row> </van-row>
<van-row type="flex" style="flex-direction: column;align-items: center;"> <van-row type="flex" style="flex-direction: column;align-items: center;">
<van-col> <van-col>
<van-image round width="34" height="34" src="https://img01.yzcdn.cn/vant/cat.jpeg" /> <van-image round width="34" height="34" src="http://rongtongpc.censoft.com.cn/dev-api/profile/upload/2023/07/08/xianyou.png" />
</van-col> </van-col>
<van-col> <van-col>
{{ item.userName }} {{ item.userName }}
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</div> </div>
</van-tab> </van-tab>
<van-tab title="四色图" name="c"> <van-tab title="四色图" name="c">
<drawCanvas /> <drawCanvas :isView="true"/>
</van-tab> </van-tab>
</van-tabs> </van-tabs>
</div> </div>
...@@ -99,12 +99,12 @@ export default { ...@@ -99,12 +99,12 @@ export default {
}) })
}, },
timestampToTimes(time) { timestampToTimes(time) {
return timestampToTime(new Date(time), "DT2", true); return timestampToTime(new Date(time), "DT1", true);
}, },
goDetail(item){ goDetail(item){
console.log(item,'???') console.log(item,'???')
this.$router.push({ this.$router.push({
name:'addPresent', name:'taskDetail',
params:{ params:{
isView:false, isView:false,
// buildingId:, // buildingId:,
......
...@@ -8,9 +8,10 @@ module.exports = { ...@@ -8,9 +8,10 @@ module.exports = {
//以上的ip和端口是我们本机的;下面为需要跨域的 //以上的ip和端口是我们本机的;下面为需要跨域的
proxy: { //配置跨域 proxy: { //配置跨域
'/app-api': { '/app-api': {
target: 'http://192.168.4.232:8080/', //这里是后台的地址 // target: 'http://192.168.4.232:8080/', //这里是后台的地址
// target: 'http://192.168.15.124:8080/', //这里是杨帆的地址 // target: 'http://192.168.15.124:8080/', //这里是杨帆的地址
// target: 'http://192.168.10.137:8080/', //这里是昊哥的地址 // target: 'http://192.168.10.137:8080/', //这里是昊哥的地址
target: 'http://192.168.10.36:8080/', //这里是昊哥的地址
// target: 'http://localhost:8080/', //这里是后台的地址 // target: 'http://localhost:8080/', //这里是后台的地址
ws: true, ws: true,
changOrigin: true, //允许跨域 changOrigin: true, //允许跨域
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment