|
|
|
@ -72,11 +72,14 @@ export default { |
|
|
|
const vars = [] |
|
|
|
const vars = [] |
|
|
|
column.forEach(col => { |
|
|
|
column.forEach(col => { |
|
|
|
let c = taskForm.find(s => s.id == col[props.prop]) |
|
|
|
let c = taskForm.find(s => s.id == col[props.prop]) |
|
|
|
if (c && c.readable || !c) { |
|
|
|
if (c && c.readable) { |
|
|
|
if (!c) { // 未重新点击节点设计表单字段可读可写。
|
|
|
|
// /**
|
|
|
|
if ((this.process.isOwner && this.process.status == 'todo') || !this.process.hasOwnProperty('isOwner')) c = { readable: true, writable: true } |
|
|
|
// * @deprecated 与节点配置可读可写冲突
|
|
|
|
else c = { readable: true, writable: false } |
|
|
|
// */
|
|
|
|
} |
|
|
|
// 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'] |
|
|
|
let event = ['change', 'blur', 'click', 'focus'] |
|
|
|
if (c.writable) { // 可写,记录需要提交的字段、处理字段默认值
|
|
|
|
if (c.writable) { // 可写,记录需要提交的字段、处理字段默认值
|
|
|
|
vars.push(col[props.prop]) |
|
|
|
vars.push(col[props.prop]) |
|
|
|
|