From 3e58127717108ff598ac6f2476d1d5d2cb02222c Mon Sep 17 00:00:00 2001 From: ssc <273702440@qq.com> Date: Mon, 15 Nov 2021 10:07:57 +0800 Subject: [PATCH] :tada: 1.3.1.RELEASE --- src/views/plugin/workflow/design/index.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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',