Commit 23747f2d authored by 13841799530's avatar 13841799530

解润东

20220721
消息代办消息接口联调
parent d41a270e
Pipeline #8622 passed with stage
in 5 minutes and 3 seconds
......@@ -14,14 +14,15 @@ export default {
return {
num:0,
params:{
id:0,
id:this.$route.params.id?this.$route.params.id:'',
path:'',
theme:'隐患'
mainId:this.$route.params.mainId?this.$route.params.mainId:'',
theme:this.$route.params.theme?this.$route.params.theme:'隐患'
},
api:{
隐患:'/hdreport/hdDetailsApp',
风险:'/riskMain/riskDetailsApp',
安全监督检查:'/check/notify/trouble'
隐患:'hdreport/hdDetailsApp',
风险:'riskMain/riskDetailsApp',
安全监督检查:'check/notify/trouble'
}
}
},
......@@ -29,7 +30,8 @@ export default {
},
mounted(){
postFun(`${this.api[this.params.theme]}/${this.params.id}`)
console.log(this.params.theme,this.$route)
postFun(`${this.api[this.params.theme]}/${this.params.mainId}`)
.then(res=>{
let data = res.data.hdReport||res.data.riskMain;
this.num=100
......
......@@ -185,6 +185,7 @@ export default {
name: 'center',
params: {
id: item.pid,
mainId:item.mainId,
path:item.appUrl,
theme:item.theme
}
......
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