|
@@ -176,14 +176,18 @@ const config = computed(() => {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
proxy.post('flowExample/getApprovalRecord',{id:row.id}).then(res=>{
|
|
proxy.post('flowExample/getApprovalRecord',{id:row.id}).then(res=>{
|
|
- console.log(res)
|
|
|
|
if(res.recordList.length > 0) {
|
|
if(res.recordList.length > 0) {
|
|
|
|
+ let data = res.recordList.filter(item => item.status === 2)
|
|
|
|
+ let nodeType= 0
|
|
|
|
+ if (data && data.length > 0) {
|
|
|
|
+ nodeType = data[0].nodeType
|
|
|
|
+ }
|
|
proxy.$router.push({
|
|
proxy.$router.push({
|
|
path: "/platform_manage/process/processApproval",
|
|
path: "/platform_manage/process/processApproval",
|
|
query: {
|
|
query: {
|
|
flowKey: row.flowKey,
|
|
flowKey: row.flowKey,
|
|
id: row.id,
|
|
id: row.id,
|
|
- processType:res.recordList[0].nodeType == 1 && res.recordList[0].status == 2 ? 30 : 10,
|
|
|
|
|
|
+ processType:nodeType == 1 ? 30 : 10,
|
|
version:row.version
|
|
version:row.version
|
|
},
|
|
},
|
|
});
|
|
});
|