diff --git a/src/views/plugin/workflow/pages/design/index.vue b/src/views/plugin/workflow/pages/design/index.vue index b404840..3230915 100644 --- a/src/views/plugin/workflow/pages/design/index.vue +++ b/src/views/plugin/workflow/pages/design/index.vue @@ -112,8 +112,8 @@ export default { if (!val || val == 0) return getDetail(val).then(res => { this.process = res.data.data - const { formKey, xml, exForm } = this.process - this.step2.option.xml = xml + const { formKey, modelXml, exForm } = this.process + this.step2.option.xml = modelXml this.step2.option.process = this.process if (formKey.startsWith('wf_ex_')) { // 外置表单 const column = [] @@ -387,7 +387,7 @@ export default { this.$refs.bpmn2.getData('xml').then(data => { this.step2.option.xml = data this.step3.option.xml = data - this.process.xml = data + this.process.modelXml = data this.step++ }) break; diff --git a/src/views/plugin/workflow/pages/design/model-history.vue b/src/views/plugin/workflow/pages/design/model-history.vue index 05b0d99..0b9c554 100755 --- a/src/views/plugin/workflow/pages/design/model-history.vue +++ b/src/views/plugin/workflow/pages/design/model-history.vue @@ -178,7 +178,7 @@ export default { handlePreview (row) { this.viewOption = { mode: 'view', - xml: row.xml, + xml: row.modeXml, } this.viewVisible = true }, diff --git a/src/views/plugin/workflow/pages/design/model.vue b/src/views/plugin/workflow/pages/design/model.vue index a165304..756bfb0 100644 --- a/src/views/plugin/workflow/pages/design/model.vue +++ b/src/views/plugin/workflow/pages/design/model.vue @@ -306,9 +306,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(() => {