diff --git a/ruoyi-ui/src/components/Process/components/nodePanel/property/executionListener.vue b/ruoyi-ui/src/components/Process/components/nodePanel/property/executionListener.vue index 5f82792a..43a1ebc6 100644 --- a/ruoyi-ui/src/components/Process/components/nodePanel/property/executionListener.vue +++ b/ruoyi-ui/src/components/Process/components/nodePanel/property/executionListener.vue @@ -2,7 +2,6 @@
- - - - + + + + + + + + + +
@@ -410,9 +410,9 @@ export default { }, /** 跳转到流程设计页面 */ handleLoadXml(row){ - this.dialogVisible = true; - this.deployId = row.deploymentId; - // this.$router.push({ path: '/flowable/definition/model',query: { deployId: row.deploymentId }}) + // this.dialogVisible = true; + // this.deployId = row.deploymentId; + this.$router.push({ path: '/flowable/definition/model',query: { deployId: row.deploymentId }}) }, /** 流程图查看 */ handleReadImage(deployId){ diff --git a/ruoyi-ui/src/views/flowable/definition/model.vue b/ruoyi-ui/src/views/flowable/definition/model.vue index 733bdfe5..37d8129c 100644 --- a/ruoyi-ui/src/views/flowable/definition/model.vue +++ b/ruoyi-ui/src/views/flowable/definition/model.vue @@ -33,12 +33,6 @@ export default { bpmnModeler, vkBeautify }, - props: { - deployId: { - type: String, - default: '' - }, - }, // 自定义指令 directives: { deep: true, @@ -84,18 +78,12 @@ export default { }; }, - watch: { - deployId: { - handler(newVal) { - if (newVal) { - this.getXmlData(newVal); - } - }, - immediate: true, // 立即生效 - deep: true //监听对象或数组的时候,要用到深度监听 - }, - }, created () { + const deployId = this.$route.query && this.$route.query.deployId; + // 查询流程xml + if (deployId) { + this.getXmlData(deployId); + } this.getDicts("sys_process_category").then(res => { this.categorys = res.data; });