From defc671ad31624f5446563c8c9e1c7b9552bfda3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A6=AC?= Date: Sun, 26 Jan 2025 21:16:34 +0900 Subject: [PATCH] =?UTF-8?q?condition=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../my-kintone-plugin/src/js/conditions.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/vue-project/my-kintone-plugin/src/js/conditions.ts b/vue-project/my-kintone-plugin/src/js/conditions.ts index 8f9e60a..65f17d5 100644 --- a/vue-project/my-kintone-plugin/src/js/conditions.ts +++ b/vue-project/my-kintone-plugin/src/js/conditions.ts @@ -23,16 +23,17 @@ type ConditionItem = { }; export const conditionList: ConditionItem[] = [ - { value: 'eq', label: '=(等しい)', type: 'input' }, - { value: 'ne', label: '≠ (等しくない)', type: 'input' }, - { value: 'le', label: (field) => isDateTimeType(field) ? '≦ (以前)' : '≦ (以下)', type: 'input' }, - { value: 'lt', label: '< (より前)', type: 'input' }, - { value: 'gt', label: '> (より後)', type: 'input' }, - { value: 'ge', label: (field) => isDateTimeType(field) ? '≧ (以降)' : '≧ (以上)', type: 'input' }, - { value: 'contains', label: '次のいずれかを含む', type: 'input' }, - { value: 'not_contain', label: '次のいずれも含まない', type: 'input' }, + { value: '=', label: '=(等しい)', type: 'input' }, + { value: '!=', label: '≠ (等しくない)', type: 'input' }, + { value: '<=', label: (field) => isDateTimeType(field) ? '≦ (以前)' : '≦ (以下)', type: 'input' }, + { value: '<', label: '< (より前)', type: 'input' }, + { value: '>', label: '> (より後)', type: 'input' }, + { value: '>=', label: (field) => isDateTimeType(field) ? '≧ (以降)' : '≧ (以上)', type: 'input' }, + { value: 'like', label: '次のキーワードを含む', type: 'input' }, + { value: 'not like', label: '次のキーワードを含まない', type: 'input' }, + { value: 'in', label: '次のいずれかを含む', type: 'input' }, + { value: 'not in', label: '次のいずれも含まない', type: 'input' }, ]; - // search from conditionList // conditionItem = conditionMap[conditionValue] export const conditionMap: Record = conditionList.reduce(