8ae8550b by 任超

style:流程图功能的完成

1 parent 8b261606
...@@ -68,15 +68,9 @@ import BpmnViewer from 'bpmn-js/lib/Viewer' ...@@ -68,15 +68,9 @@ import BpmnViewer from 'bpmn-js/lib/Viewer'
68 import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas' 68 import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas'
69 export default { 69 export default {
70 props: { 70 props: {
71 xml: { 71 formData: {
72 type: String 72 type: Object,
73 }, 73 default: {}
74 finishedInfo: {
75 type: Object
76 },
77 // 所有节点审批记录
78 allCommentList: {
79 type: Array
80 } 74 }
81 }, 75 },
82 data () { 76 data () {
...@@ -97,24 +91,10 @@ export default { ...@@ -97,24 +91,10 @@ export default {
97 hoverTimer: null 91 hoverTimer: null
98 } 92 }
99 }, 93 },
100 // watch: {
101 // xml: {
102 // handler (newXml) {
103 // this.importXML(newXml)
104 // },
105 // immediate: true
106 // },
107 // finishedInfo: {
108 // handler (newInfo) {
109 // this.setProcessStatus(newInfo)
110 // },
111 // immediate: true
112 // }
113 // },
114 created () { 94 created () {
115 this.$nextTick(() => { 95 this.$nextTick(() => {
116 this.importXML(this.xml) 96 this.importXML(this.formData.xml)
117 this.setProcessStatus(this.finishedInfo); 97 this.setProcessStatus(this.formData.finishedInfo);
118 }) 98 })
119 }, 99 },
120 destroyed () { 100 destroyed () {
......
...@@ -63,10 +63,10 @@ ...@@ -63,10 +63,10 @@
63 </div> 63 </div>
64 </div> 64 </div>
65 <fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" @updateDialog="updateDialog" /> 65 <fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" @updateDialog="updateDialog" />
66 <dialogBox title="流程图" width="60%" v-model="myValue" @closeDialog="closeDialog"> 66 <!-- <dialogBox title="流程图" width="60%" v-model="myValue" @closeDialog="closeDialog">
67 <process-viewer :key="`designer-${loadIndex}`" style="height:500px" :xml="xmlData" :finished-info="finishedInfo" 67 <process-viewer :key="`designer-${loadIndex}`" style="height:500px" :xml="xmlData" :finished-info="finishedInfo"
68 :all-comment-list="historyTaskList" @ch="changeLoadIndex" /> 68 :all-comment-list="historyTaskList" @ch="changeLoadIndex" />
69 </dialogBox> 69 </dialogBox> -->
70 </div> 70 </div>
71 </template> 71 </template>
72 72
...@@ -97,11 +97,6 @@ export default { ...@@ -97,11 +97,6 @@ export default {
97 return { 97 return {
98 isDialog: false, 98 isDialog: false,
99 // 流程图 99 // 流程图
100 myValue: false,
101 loadIndex: 0,
102 xmlData: '',
103 finishedInfo: {},
104 historyTaskList: [],
105 // 折叠 100 // 折叠
106 isShowdrawer: true, 101 isShowdrawer: true,
107 // 默认选中 102 // 默认选中
...@@ -212,7 +207,7 @@ export default { ...@@ -212,7 +207,7 @@ export default {
212 this.tabList.forEach(function (item, index) { 207 this.tabList.forEach(function (item, index) {
213 if (item.value == "clxx") { 208 if (item.value == "clxx") {
214 that.clxxIndex = index; 209 that.clxxIndex = index;
215 that.clxxForm = getForm(item.value,that.$route.query.sqywbm); 210 that.clxxForm = getForm(item.value, that.$route.query.sqywbm);
216 that.clxxTab = item; 211 that.clxxTab = item;
217 } 212 }
218 }); 213 });
...@@ -234,31 +229,21 @@ export default { ...@@ -234,31 +229,21 @@ export default {
234 case "B1": 229 case "B1":
235 getWorkFlowImage(this.bsmSlsq, this.$route.query.bestepid).then(res => { 230 getWorkFlowImage(this.bsmSlsq, this.$route.query.bestepid).then(res => {
236 let { result } = res 231 let { result } = res
237 this.myValue = true 232 this.$popup({
238 this.loadIndex++ 233 title: "流程图",
239 this.xmlData = result.xml 234 height: '500px',
240 this.finishedInfo = { 235 editItem: "workflow/components/processViewer",
241 finishedTaskSet: result.finishedTaskSet, 236 formData: {
242 unfinishedTaskSet: result.unfinishedTaskSet, 237 xml: result.xml,
243 rejectedTaskSet: result.rejectedTaskSet, 238 finishedInfo: {
244 finishedSequenceFlowSet: result.finishedSequenceFlowSet 239 finishedTaskSet: result.finishedTaskSet,
245 } 240 unfinishedTaskSet: result.unfinishedTaskSet,
246 this.allCommentList = result.historyTaskList 241 rejectedTaskSet: result.rejectedTaskSet,
247 // this.$popup({ 242 finishedSequenceFlowSet: result.finishedSequenceFlowSet
248 // title: "流程图", 243 },
249 // height: '500px', 244 allCommentList: result.historyTaskList
250 // editItem: "workflow/components/processViewer", 245 }
251 // formData: { 246 })
252 // xml: result.xml,
253 // finishedInfo: {
254 // finishedTaskSet: result.finishedTaskSet,
255 // unfinishedTaskSet: result.unfinishedTaskSet,
256 // rejectedTaskSet: result.rejectedTaskSet,
257 // finishedSequenceFlowSet: result.finishedSequenceFlowSet
258 // },
259 // allCommentList: result.historyTaskList
260 // }
261 // })
262 }) 247 })
263 break; 248 break;
264 case "B2": //材料分屏按钮 249 case "B2": //材料分屏按钮
...@@ -390,7 +375,7 @@ export default { ...@@ -390,7 +375,7 @@ export default {
390 }, 375 },
391 //切换选项卡内容组件 376 //切换选项卡内容组件
392 getFromRouter (tabname) { 377 getFromRouter (tabname) {
393 this.componentTag = getForm(tabname,this.$route.query.sqywbm); 378 this.componentTag = getForm(tabname, this.$route.query.sqywbm);
394 }, 379 },
395 //发送下一个环节 380 //发送下一个环节
396 send (obj) { 381 send (obj) {
......