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 { ...@@ -14,14 +14,15 @@ export default {
return { return {
num:0, num:0,
params:{ params:{
id:0, id:this.$route.params.id?this.$route.params.id:'',
path:'', path:'',
theme:'隐患' mainId:this.$route.params.mainId?this.$route.params.mainId:'',
theme:this.$route.params.theme?this.$route.params.theme:'隐患'
}, },
api:{ api:{
隐患:'/hdreport/hdDetailsApp', 隐患:'hdreport/hdDetailsApp',
风险:'/riskMain/riskDetailsApp', 风险:'riskMain/riskDetailsApp',
安全监督检查:'/check/notify/trouble' 安全监督检查:'check/notify/trouble'
} }
} }
}, },
...@@ -29,7 +30,8 @@ export default { ...@@ -29,7 +30,8 @@ export default {
}, },
mounted(){ 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=>{ .then(res=>{
let data = res.data.hdReport||res.data.riskMain; let data = res.data.hdReport||res.data.riskMain;
this.num=100 this.num=100
......
...@@ -185,6 +185,7 @@ export default { ...@@ -185,6 +185,7 @@ export default {
name: 'center', name: 'center',
params: { params: {
id: item.pid, id: item.pid,
mainId:item.mainId,
path:item.appUrl, path:item.appUrl,
theme:item.theme 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