diff --git a/src/views/plugin/workflow/design/index.vue b/src/views/plugin/workflow/design/index.vue index ed55be9..afee3b9 100644 --- a/src/views/plugin/workflow/design/index.vue +++ b/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',