From 9c9a34c3cfaff02689d8bdf72936aa309b9cb572 Mon Sep 17 00:00:00 2001 From: linjun Date: Sun, 23 Jun 2024 16:23:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8=E9=80=89=E6=8B=A9=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=BB=98=E8=AE=A4=E8=BF=87=E6=BB=A4=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Form/src/components/DictionarySelect.vue | 110 +++++++++--------- src/store/modules/dictionary.ts | 7 +- 2 files changed, 62 insertions(+), 55 deletions(-) diff --git a/src/components/Form/src/components/DictionarySelect.vue b/src/components/Form/src/components/DictionarySelect.vue index 47075ce0..439c7c14 100644 --- a/src/components/Form/src/components/DictionarySelect.vue +++ b/src/components/Form/src/components/DictionarySelect.vue @@ -15,66 +15,68 @@ diff --git a/src/store/modules/dictionary.ts b/src/store/modules/dictionary.ts index 13429e28..c7066010 100644 --- a/src/store/modules/dictionary.ts +++ b/src/store/modules/dictionary.ts @@ -4,8 +4,12 @@ import { DefaultOptionType } from 'ant-design-vue/lib/select'; import { ref } from 'vue'; import { DICT_INFO_KEY } from '@/enums/cacheEnum'; +interface DictionaryDataDefaultOptionType extends DefaultOptionType { + status?: string | number | null; +} + interface DictionaryData { - data: DefaultOptionType[]; + data: DictionaryDataDefaultOptionType[]; } const requestCache = new Map< @@ -61,6 +65,7 @@ export const useDictionaryStore = defineStore({ dataConv.value.push({ label: result.data.data[i].title, value: result.data.data[i].value, + status: result.data.data[i].status, }); }