Commit e745c30f authored by p-wanping.song's avatar p-wanping.song

修改准事故类型等显示数据有问题

parent f2e0b7c6
......@@ -802,6 +802,7 @@
:style="{ height: '100%' }"
>
<selectList
v-if="showCheckSelect"
:listdata="columnsCheckData"
@closeSlect="showCheckSelect = false"
@saveSlect="saveCheckSelect"
......@@ -1209,6 +1210,7 @@ export default {
this.columnsCheckData = res.data;
this.showCheckSelect = true;
}
console.log(this.showSelect);
})
.catch(() => {
this.$toast.fail("加载失败,请稍后再试");
......
......@@ -368,7 +368,10 @@ export default {
this.form.projectId = this.projectId;
}
postFun(this.initData[this.type].fetchUrl,this.form)
.then(() => {
.then((res) => {
if(this.type==='project'){
this.form.projectId =res.data
}
setTimeout(() => {
this.loadingStatus = false;
this.$toast("保存成功");
......
......@@ -337,7 +337,7 @@ export default {
return {
createComponentData: {
visible: false,
type: "",
type: "", //project||building
close: this.projectComponentClose,
confirm: this.projectComponentConfirm
},
......@@ -441,8 +441,14 @@ export default {
this.createComponentData.type = "";
},
projectComponentConfirm(data) {
// this.createComponentData.visible = false;
// this.createComponentData.type = '';
// 如果是关联项目添加对应的项目名称和项目id
if( this.createComponentData.type ==='project'){
this.form.projectName = data.name
this.form.projectId = data.projectId
this.form.buildingNames = ''
this.form.buildingIds = ''
}
this.createComponentData.close()
},
getDetail(id) {
this.$toast.loading({
......
......@@ -12,16 +12,15 @@ module.exports = {
target: "http://192.168.4.232:8080/", //这里是后台的地址
// target: "http://192.168.10.137:8080/", //这里是后台的地址
// target: 'http://192.168.15.124:8080/', //这里是杨帆的地址
// target: 'http://192.168.10.137:8080/', //这里是昊哥的地址
// target: 'http://192.168.10.36:8080/', //这里是昊哥的地址
// target: "http://192.168.10.137:8080/", //这里是昊哥的地址
// target: 'http://localhost:8081/', //这里是后台的地址
ws: true,
changOrigin: true //允许跨域
changOrigin: true, //允许跨域
// logLevel: 'debug', // 显示代理调试信息
// pathRewrite: {
// '^/app-api': '' //请求的时候使用这个api就可以
// }
}
},
// '/ps_ceninss': {
// target: 'http://192.168.3.80:8080', //这里是后台的地址
// ws: true,
......@@ -30,6 +29,6 @@ module.exports = {
// '^/ps_ceninss': 'ps_ceninss' //请求的时候使用这个api就可以
// }
// }
}
}
},
},
};
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