7b990c04 by 杨威

流程数据加载loading

1 parent 9096e8b5
...@@ -39,12 +39,14 @@ export default { ...@@ -39,12 +39,14 @@ export default {
39 "params": {}, 39 "params": {},
40 "workflowPeriod": "current", 40 "workflowPeriod": "current",
41 "workitemInstanceId": this.$route.query.workitemInstanceId 41 "workitemInstanceId": this.$route.query.workitemInstanceId
42 } 42 }
43 vm.loadingShow('数据获取中');
43 getActivityDetail(params).then((res) => { 44 getActivityDetail(params).then((res) => {
44 console.log(res.processInstance.templetId); 45 console.log(res.processInstance.templetId);
45 templateLoad(res.processInstance.templetId).then((res1) => { 46 templateLoad(res.processInstance.templetId).then((res1) => {
46 console.log(this.$x2js.xml2js(res1).Process,'Process'); 47 console.log(this.$x2js.xml2js(res1).Process,'Process');
47 getProcessOutline(res.processInstance.id).then((res2) => { 48 getProcessOutline(res.processInstance.id).then((res2) => {
49 vm.loadingHide();
48 this.flowData = this.$x2js.xml2js(res1).Process; 50 this.flowData = this.$x2js.xml2js(res1).Process;
49 console.log(res2.activityOutlines,'res.activityOutlines'); 51 console.log(res2.activityOutlines,'res.activityOutlines');
50 this.flowState = res2.activityOutlines; 52 this.flowState = res2.activityOutlines;
...@@ -59,7 +61,9 @@ export default { ...@@ -59,7 +61,9 @@ export default {
59 this.flowShow = true; 61 this.flowShow = true;
60 }) 62 })
61 }) 63 })
62 .catch((error) => {}); 64 .catch((error) => {
65 vm.loadingHide();
66 });
63 }) 67 })
64 .catch((error) => {}); 68 .catch((error) => {});
65 }) 69 })
......