fix: 过滤可读可写与原有逻辑冲突的问题

saber
ssc 4 years ago
parent 63b3fbb1d2
commit 3b6130d6f6
  1. 13
      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])

Loading…
Cancel
Save