From 3b6130d6f679142efc8d4310d81457562de44080 Mon Sep 17 00:00:00 2001 From: ssc <273702440@qq.com> Date: Sun, 26 Dec 2021 15:56:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=87=E6=BB=A4=E5=8F=AF=E8=AF=BB?= =?UTF-8?q?=E5=8F=AF=E5=86=99=E4=B8=8E=E5=8E=9F=E6=9C=89=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E5=86=B2=E7=AA=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plugin/workflow/mixins/ex-form.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/plugin/workflow/mixins/ex-form.js b/src/views/plugin/workflow/mixins/ex-form.js index 1e0577a..3a27617 100644 --- a/src/views/plugin/workflow/mixins/ex-form.js +++ b/src/views/plugin/workflow/mixins/ex-form.js @@ -72,11 +72,14 @@ export default { const vars = [] column.forEach(col => { let c = taskForm.find(s => s.id == col[props.prop]) - if (c && c.readable || !c) { - if (!c) { // 未重新点击节点设计表单字段可读可写。 - if ((this.process.isOwner && this.process.status == 'todo') || !this.process.hasOwnProperty('isOwner')) c = { readable: true, writable: true } - else c = { readable: true, writable: false } - } + if (c && c.readable) { + // /** + // * @deprecated 与节点配置可读可写冲突 + // */ + // if (!c) { // 未重新点击节点设计表单字段可读可写。 + // if ((this.process.isOwner && this.process.status == 'todo') || !this.process.hasOwnProperty('isOwner')) c = { readable: true, writable: true } + // else c = { readable: true, writable: false } + // } let event = ['change', 'blur', 'click', 'focus'] if (c.writable) { // 可写,记录需要提交的字段、处理字段默认值 vars.push(col[props.prop])