fix: 隐藏数据时,外部轮廓不隐藏 (#7)

* feat: 业务流程的支持

* fix: 流程bug修改

* fix: 修复了隐藏属性会被验证的bug,修复了隐藏的表格还显示的bug

* fix: 修复了使用流程后,隐藏失效的bug,修复了使用流程后,对于隐藏字段还进行校验的bug

* fix: 修复了隐藏数据时,外部轮廓不隐藏的bug
This commit is contained in:
Guard
2020-05-12 14:02:23 +08:00
committed by Dmitry Nagibin
parent 00b076b2ff
commit 9e2c857c32
@@ -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]