feat: 修改字段xml为modelXml以适配达梦数据库

master
ssc 3 years ago
parent eafd6ad4be
commit 07999a223f
  1. 6
      src/views/plugin/workflow/design/index.vue
  2. 2
      src/views/plugin/workflow/design/model-history.vue
  3. 4
      src/views/plugin/workflow/design/model.vue

@ -91,8 +91,8 @@ export default {
if (!val || val == 0) return if (!val || val == 0) return
getDetail(val).then(res => { getDetail(val).then(res => {
this.process = res.data.data this.process = res.data.data
const { formKey, xml, exForm } = this.process const { formKey, modelXml, exForm } = this.process
this.$set(this.step2.option, 'xml', xml) this.$set(this.step2.option, 'xml', modelXml)
this.$set(this.step2.option, 'process', this.process) this.$set(this.step2.option, 'process', this.process)
if (formKey.startsWith('wf_ex_')) { // if (formKey.startsWith('wf_ex_')) { //
const column = [] const column = []
@ -368,7 +368,7 @@ export default {
this.$refs.bpmn2.getData('xml').then(data => { this.$refs.bpmn2.getData('xml').then(data => {
this.$set(this.step2.option, 'xml', data) this.$set(this.step2.option, 'xml', data)
this.$set(this.step3.option, 'xml', data) this.$set(this.step3.option, 'xml', data)
this.process.xml = data this.process.modelXml = data
this.step++ this.step++
}) })
break; break;

@ -177,7 +177,7 @@ export default {
handlePreview(row) { handlePreview(row) {
this.viewOption = { this.viewOption = {
mode: 'view', mode: 'view',
xml: row.xml, xml: row.modelXml,
} }
this.viewVisible = true this.viewVisible = true
}, },

@ -243,9 +243,9 @@ export default {
}, },
handleCopy(row) { handleCopy(row) {
getDetail(row.id).then(res => { getDetail(row.id).then(res => {
const { xml } = res.data.data const { modelXml } = res.data.data
this.$Clipboard({ this.$Clipboard({
text: xml text: modelXml
}).then(() => { }).then(() => {
this.$message.success('拷贝xml成功') this.$message.success('拷贝xml成功')
}).catch(() => { }).catch(() => {

Loading…
Cancel
Save