|
|
|
@ -324,13 +324,23 @@ export default {
|
|
|
|
|
if ( |
|
|
|
|
f && |
|
|
|
|
f.fk_column_id && |
|
|
|
|
this.columnsById[f.fk_column_id] && |
|
|
|
|
this.columnsById[f.fk_column_id].uidt === |
|
|
|
|
UITypes.LinkToAnotherRecord && |
|
|
|
|
this.columnsById[f.fk_column_id].uidt === UITypes.Lookup |
|
|
|
|
this.columnsById[f.fk_column_id] |
|
|
|
|
) { |
|
|
|
|
return !['notempty', 'empty', 'notnull', 'null'].includes(op.value) |
|
|
|
|
} |
|
|
|
|
const uidt = this.columnsById[f.fk_column_id].uidt |
|
|
|
|
if (uidt === UITypes.Lookup) { |
|
|
|
|
// TODO: handle it later |
|
|
|
|
return !['notempty', 'empty', 'notnull', 'null'].includes(op.value) |
|
|
|
|
} else if (uidt === UITypes.LinkToAnotherRecord) { |
|
|
|
|
const type = this.columnsById[f.fk_column_id].colOptions.type |
|
|
|
|
if (type === 'hm' || type === 'mm') { |
|
|
|
|
// exclude notnull & null |
|
|
|
|
return !['notnull', 'null'].includes(op.value) |
|
|
|
|
} else if (type === 'bt') { |
|
|
|
|
// exclude notempty & empty |
|
|
|
|
return !['notempty', 'empty'].includes(op.value) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return true |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|