🎉 1.3.1.RELEASE

saber
ssc 4 years ago
parent 9e1b8d3b10
commit 3e58127717
  1. 12
      src/views/plugin/workflow/design/index.vue

@ -205,15 +205,19 @@ export default {
dicData: [],
event: {
change: (val) => {
_this.option = { menuBtn: false, readonly: true }
this.option = {}
if (val) {
getFormByKey({ formKey: val }).then(res => {
_this.option = { ...eval('(' + res.data.data.content.replace(/this/g, '_this') + ')'), menuBtn: false, readonly: true }
_this.step1.option.group[1].display = true
setTimeout(() => {
if(_this.$refs.form2) _this.$refs.form2.clearValidate()
})
}).catch(() => {
_this.findObject(this.step1.option.group[1].column, 'form').display = false
_this.step1.option.group[1].display = false
})
} else {
_this.findObject(this.step1.option.group[1].column, 'form').display = false
_this.step1.option.group[1].display = false
}
}
},
@ -227,7 +231,7 @@ export default {
}, {
label: '表单预览',
icon: 'el-icon-view',
display: true,
display: false,
arrow: false,
column: [{
prop: 'form',

Loading…
Cancel
Save