7b990c04 by 杨威

流程数据加载loading

1 parent 9096e8b5
......@@ -39,12 +39,14 @@ export default {
"params": {},
"workflowPeriod": "current",
"workitemInstanceId": this.$route.query.workitemInstanceId
}
}
vm.loadingShow('数据获取中');
getActivityDetail(params).then((res) => {
console.log(res.processInstance.templetId);
templateLoad(res.processInstance.templetId).then((res1) => {
console.log(this.$x2js.xml2js(res1).Process,'Process');
getProcessOutline(res.processInstance.id).then((res2) => {
vm.loadingHide();
this.flowData = this.$x2js.xml2js(res1).Process;
console.log(res2.activityOutlines,'res.activityOutlines');
this.flowState = res2.activityOutlines;
......@@ -59,7 +61,9 @@ export default {
this.flowShow = true;
})
})
.catch((error) => {});
.catch((error) => {
vm.loadingHide();
});
})
.catch((error) => {});
})
......