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

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

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