mirror of
https://github.com/vxcontrol/ncform.git
synced 2026-07-18 16:24:27 -04:00
fix: 隐藏数据时,外部轮廓不隐藏 (#7)
* feat: 业务流程的支持 * fix: 流程bug修改 * fix: 修复了隐藏属性会被验证的bug,修复了隐藏的表格还显示的bug * fix: 修复了使用流程后,隐藏失效的bug,修复了使用流程后,对于隐藏字段还进行校验的bug * fix: 修复了隐藏数据时,外部轮廓不隐藏的bug
This commit is contained in:
@@ -197,11 +197,15 @@ export default {
|
||||
return fieldSchema.ui && fieldSchema.ui.showLegend && fieldSchema.ui.legend;
|
||||
},
|
||||
hidden(fieldSchema) {
|
||||
if (!fieldSchema || fieldSchema.ui.process === true || fieldSchema.ui.process === undefined) {
|
||||
if (fieldSchema || !fieldSchema.ui || fieldSchema.ui.process === true || fieldSchema.ui.process === undefined) {
|
||||
return this._analyzeVal(fieldSchema.ui.hidden);
|
||||
}
|
||||
let nodeCodeArr = this.globalConst.nodeCodeArr || []
|
||||
return !(nodeCodeArr.includes(fieldSchema.ui.process) || fieldSchema.ui.process === this.globalConst.nodeUId);
|
||||
if ((nodeCodeArr.includes(fieldSchema.ui.process) || fieldSchema.ui.process === this.globalConst.nodeUId)) {
|
||||
return this._analyzeVal(fieldSchema.ui.hidden)
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
},
|
||||
},
|
||||
mixins: [layoutObjectMixin]
|
||||
|
||||
Reference in New Issue
Block a user