From 634cccc5d0199ab154c50c2d08c2d7d5289976e7 Mon Sep 17 00:00:00 2001 From: ssc <273702440@qq.com> Date: Thu, 15 Jun 2023 16:13:59 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=AD=90=E8=A1=A8=E5=8D=95=E4=B8=AD?= =?UTF-8?q?=E6=9C=89=E5=AD=97=E6=AE=B5=E5=8F=AF=E8=AF=BB=E5=8F=AF=E5=86=99?= =?UTF-8?q?=EF=BC=8C=E8=AE=B0=E5=BD=95=E4=B8=BB=E5=AD=97=E6=AE=B5=E5=8F=AF?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plugin/workflow/mixins/ex-form.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/plugin/workflow/mixins/ex-form.js b/src/views/plugin/workflow/mixins/ex-form.js index aebdfc4..a2d7fd3 100644 --- a/src/views/plugin/workflow/mixins/ex-form.js +++ b/src/views/plugin/workflow/mixins/ex-form.js @@ -89,6 +89,12 @@ export default { if (col.type == 'dynamic') { col.children.addBtn = false col.children.delBtn = false + + // 子表单中有字段可读可写,记录主字段可提交 + col.children.column.forEach(cc => { + const child = taskForm.find(t => t.id == cc[props.prop]) + if (child && child.writable && child.readable) vars.push(col[props.prop]) + }) } else { col.readonly = true col.disabled = true