一处没有容错
This commit is contained in:
parent
1430ce3f72
commit
de1037907e
|
|
@ -793,6 +793,9 @@ var TreeStore = /** @class */ (function (_super) {
|
|||
var filterFn_2 = this_1.translateFilter(attr, filter[attr], context, option);
|
||||
mto.push(function (node, nodeDict, exprResolveFns) {
|
||||
var row = _this.constructRow(node, context, option);
|
||||
if (!row) {
|
||||
return false;
|
||||
}
|
||||
if (obscurePass(row.entity, option) || obscurePass(row.entityId, option)) {
|
||||
return true;
|
||||
}
|
||||
|
|
@ -814,6 +817,9 @@ var TreeStore = /** @class */ (function (_super) {
|
|||
var filterFn_3 = this_1.translateFilter(relation_2, filter[attr], context, option);
|
||||
mto.push(function (node, nodeDict, exprResolveFns) {
|
||||
var row = _this.constructRow(node, context, option);
|
||||
if (!row) {
|
||||
return false;
|
||||
}
|
||||
if (obscurePass(row["".concat(attr, "Id")], option)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -868,6 +868,9 @@ export default class TreeStore<ED extends EntityDict & BaseEntityDict> extends C
|
|||
mto.push(
|
||||
(node, nodeDict, exprResolveFns) => {
|
||||
const row = this.constructRow(node, context, option);
|
||||
if (!row) {
|
||||
return false;
|
||||
}
|
||||
if (obscurePass((row as any).entity, option) || obscurePass((row as any).entityId, option)) {
|
||||
return true;
|
||||
}
|
||||
|
|
@ -891,6 +894,9 @@ export default class TreeStore<ED extends EntityDict & BaseEntityDict> extends C
|
|||
mto.push(
|
||||
(node, nodeDict, exprResolveFns) => {
|
||||
const row = this.constructRow(node, context, option);
|
||||
if (!row) {
|
||||
return false;
|
||||
}
|
||||
if (obscurePass((row as any)[`${attr}Id`], option)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue