[Core] [DataSet] Supports filters >, >=

This commit is contained in:
qianmoQ 2024-02-26 14:27:08 +08:00
parent 884c6d6eb1
commit 9ed4a36475
4 changed files with 8 additions and 2 deletions

View File

@ -84,6 +84,8 @@ export default {
columnExpressionIsLike: 'Is Like',
columnExpressionIsNotLike: 'Is Not Like',
columnExpressionIsContains: 'Is Contains',
columnExpressionGreaterThan: 'Greater Than',
columnExpressionGreaterThanOrEquals: 'Greater Than Or Equals',
columnExpressionIsNotContains: 'Is Not Contains',
validatorSamplingTip: 'The order by key must contain a sampling key',
customFunction: 'Custom Function',

View File

@ -85,6 +85,8 @@ export default {
columnExpressionIsNotLike: '不像',
columnExpressionIsContains: '包含',
columnExpressionIsNotContains: '不包含',
columnExpressionGreaterThan: '大于',
columnExpressionGreaterThanOrEquals: '大于等于',
validatorSamplingTip: '排序键中必须包含抽样键',
customFunction: '自定义函数',
}

View File

@ -12,8 +12,8 @@ export enum Expression
IS_NOT_NULL = 'NNULL',
IS_LIKE = 'LIKE',
IS_NOT_LIKE = 'NLIKE',
IS_IN = 'IS_IN',
IS_NOT_IN = 'IS_NOT_IN',
GT = 'GT',
GTE = 'GTE',
IS_CONTAINS = 'IS_CONTAINS',
IS_NOT_CONTAINS = 'IS_NOT_CONTAINS',
}

View File

@ -17,6 +17,8 @@
<Option :value="Expression.IS_NOT_LIKE">{{ $t('dataset.columnExpressionIsNotLike') }}</Option>
<Option :value="Expression.EQ">{{ $t('dataset.columnExpressionEquals') }}</Option>
<Option :value="Expression.NE">{{ $t('dataset.columnExpressionNotEquals') }}</Option>
<Option :value="Expression.GT">{{ $t('dataset.columnExpressionGreaterThan') }}</Option>
<Option :value="Expression.GTE">{{ $t('dataset.columnExpressionGreaterThanOrEquals') }}</Option>
</Select>
</FormItem>
<FormItem v-if="formState.expression