【修改】修改传参

This commit is contained in:
zhoulingpo
2023-04-25 14:57:36 +08:00
parent 21f68b0bd8
commit fc43422f22
12 changed files with 157 additions and 88 deletions
+7 -2
View File
@@ -57,6 +57,7 @@ export default {
methods: {
handleRouter (item) {
this.$store.commit('setActiveTabIndex','')
console.log("我点击的",item)
if (item.belong == 0) {
this.$store.commit('saveMenuName', item.label)
if (this.$route.path == '/system/401Page') {
@@ -78,12 +79,16 @@ export default {
})
} else {
this.$store.commit('saveMenuName', item.label)
this.$router.push({ name: 'urlIndex', query: param })
this.$router.push({ name: 'urlIndex', query: {
id:param.id
} })
}
} else {
if (this.$route.path === item.href) return
// delete(this.$route.query.itemHref)
this.$router.push({ path: item.href, query: this.$route.query })
this.$router.push({ path: item.href, query: {
id:this.$route.query.id
} })
}
}
},
+11 -4
View File
@@ -28,7 +28,10 @@
taskId: '',
userId: '',
},
processOld:{} //存储流程的就信息
processOld:{} , //存储流程的就信息
prcId: '',
prcNum: '',
prcName:''
}
},
methods: {
@@ -101,11 +104,15 @@
})
},
// 获取流程详细信息
getProcessDetail(params){
getProcessDetail(){
return new Promise((resolve,reject)=>{
this.$api.process.getProcessDetail(params).then(res=>{
this.$api.process.getProcessDetail({
prcId: this.prcId,
prcType: this.prcType
}).then(res=>{
let data=res.data
this.processOld=data.data
this.processOld=data
console.log( this.processOld,"processOld")
resolve()
}).catch(err=>{
reject()