From 07999a223f13115f9768c513f818cfd4251ae4a9 Mon Sep 17 00:00:00 2001 From: ssc <273702440@qq.com> Date: Mon, 17 Apr 2023 16:25:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5xml?= =?UTF-8?q?=E4=B8=BAmodelXml=E4=BB=A5=E9=80=82=E9=85=8D=E8=BE=BE=E6=A2=A6?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plugin/workflow/design/index.vue | 6 +++--- src/views/plugin/workflow/design/model-history.vue | 2 +- src/views/plugin/workflow/design/model.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/plugin/workflow/design/index.vue b/src/views/plugin/workflow/design/index.vue index a86f12d..0109908 100644 --- a/src/views/plugin/workflow/design/index.vue +++ b/src/views/plugin/workflow/design/index.vue @@ -91,8 +91,8 @@ export default { if (!val || val == 0) return getDetail(val).then(res => { this.process = res.data.data - const { formKey, xml, exForm } = this.process - this.$set(this.step2.option, 'xml', xml) + const { formKey, modelXml, exForm } = this.process + this.$set(this.step2.option, 'xml', modelXml) this.$set(this.step2.option, 'process', this.process) if (formKey.startsWith('wf_ex_')) { // 外置表单 const column = [] @@ -368,7 +368,7 @@ export default { this.$refs.bpmn2.getData('xml').then(data => { this.$set(this.step2.option, 'xml', data) this.$set(this.step3.option, 'xml', data) - this.process.xml = data + this.process.modelXml = data this.step++ }) break; diff --git a/src/views/plugin/workflow/design/model-history.vue b/src/views/plugin/workflow/design/model-history.vue index 90777e9..84dbd59 100644 --- a/src/views/plugin/workflow/design/model-history.vue +++ b/src/views/plugin/workflow/design/model-history.vue @@ -177,7 +177,7 @@ export default { handlePreview(row) { this.viewOption = { mode: 'view', - xml: row.xml, + xml: row.modelXml, } this.viewVisible = true }, diff --git a/src/views/plugin/workflow/design/model.vue b/src/views/plugin/workflow/design/model.vue index 88ac7ee..bc9daf7 100644 --- a/src/views/plugin/workflow/design/model.vue +++ b/src/views/plugin/workflow/design/model.vue @@ -243,9 +243,9 @@ export default { }, handleCopy(row) { getDetail(row.id).then(res => { - const { xml } = res.data.data + const { modelXml } = res.data.data this.$Clipboard({ - text: xml + text: modelXml }).then(() => { this.$message.success('拷贝xml成功') }).catch(() => {