From bdf4ebf03e48324c42d7d0448178d187f4f172e5 Mon Sep 17 00:00:00 2001 From: tony <846249920@qq.com> Date: Tue, 27 Dec 2022 14:02:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E4=B8=AD:?= =?UTF-8?q?modal=3D"false"=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nodePanel/property/executionListener.vue | 1 - .../nodePanel/property/listenerParam.vue | 1 - .../nodePanel/property/multiInstance.vue | 1 - .../components/nodePanel/property/signal.vue | 1 - .../nodePanel/property/taskListener.vue | 1 - .../Process/components/nodePanel/task.vue | 3 --- .../src/views/flowable/definition/index.vue | 26 +++++++++---------- .../src/views/flowable/definition/model.vue | 22 ++++------------ 8 files changed, 18 insertions(+), 38 deletions(-) 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; });