fix: id operators

This commit is contained in:
chenos 2022-04-19 11:19:22 +08:00
parent fca0943e8d
commit 28f9b902e8
3 changed files with 21 additions and 14 deletions

View File

@ -42,6 +42,6 @@ export const id: IField = {
},
},
filterable: {
operators: operators.number,
operators: operators.id,
},
};

View File

@ -116,19 +116,19 @@ export const linkTo: IField = {
filterable: {
nested: true,
children: [
{
name: 'id',
title: '{{t("Exists")}}',
operators: [
{ label: '{{t("exists")}}', value: '$exists', noValue: true },
{ label: '{{t("not exists")}}', value: '$notExists', noValue: true },
],
schema: {
title: '{{t("Exists")}}',
type: 'string',
'x-component': 'Input',
},
},
// {
// name: 'id',
// title: '{{t("Exists")}}',
// operators: [
// { label: '{{t("exists")}}', value: '$exists', noValue: true },
// { label: '{{t("not exists")}}', value: '$notExists', noValue: true },
// ],
// schema: {
// title: '{{t("Exists")}}',
// type: 'string',
// 'x-component': 'Input',
// },
// },
],
},
};

View File

@ -67,6 +67,13 @@ export const number = [
{ label: '{{t("is not empty")}}', value: '$notEmpty', noValue: true },
];
export const id = [
{ label: '{{t("is")}}', value: '$eq', selected: true },
{ label: '{{t("is not")}}', value: '$ne' },
{ label: '{{t("Exists")}}', value: '$exists', noValue: true },
{ label: '{{t("Not exists")}}', value: '$notExists', noValue: true },
];
export const enumType = [
{
label: '{{t("is")}}',