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, }); }