From 84581333b74d8ac1b0867e5b8c276f6fc332e4eb Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 19 九月 2025 14:06:21 +0800 Subject: [PATCH] fix: bug --- src/views/DictionaryManage/DataDictionary.vue | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/views/DictionaryManage/DataDictionary.vue b/src/views/DictionaryManage/DataDictionary.vue index d585ccc..f73b34c 100644 --- a/src/views/DictionaryManage/DataDictionary.vue +++ b/src/views/DictionaryManage/DataDictionary.vue @@ -1,7 +1,7 @@ <template> <LoadingLayout :loading="state.loading"> <AppContainer> - <ProTableQueryFilterBar @on-reset="reset"> + <ProTableQueryFilterBar @on-reset="handleReset"> <template #query> <QueryFilterItem> <FieldSelect @@ -133,7 +133,7 @@ defaultExtraParams: { categoryId: '', keywords: '', - orderInput: [{ property: 'sort', order: EnumPagedListOrder.Asc }], + orderInput: [{ property: 'sort', order: EnumPagedListOrder.Desc }], }, queryKey: ['dictionaryServices/getDictionaryDatas'], columnsRenderProps: { @@ -158,7 +158,9 @@ sort: row.sort, isDisabled: row.isDisabled, field1: row.field1, + field3: row.field3, field2: convertApi2FormUrlOnlyOne(row.field2), + field4: row.field4, }); } else { handleAdd({ @@ -178,6 +180,8 @@ isDisabled: false, field1: '', field2: [] as UploadUserFile[], + field3: '', + field4: '', title: '鏂板瀛楀吀', }, editTitle: '缂栬緫瀛楀吀', @@ -193,6 +197,8 @@ isDisabled: editForm.isDisabled, field1: editForm.field1, field2: editForm.field2?.[0]?.path ?? '', + field3: editForm.field3, + field4: editForm.field4, }; if (editForm.id) { params.id = editForm.id; @@ -220,4 +226,11 @@ return !!res; } catch (error) {} } + +async function handleReset() { + try { + const dictionaryCategoryList = await ensureQueryData(); + reset({ categoryId: dictionaryCategoryList[0].value }); + } catch (error) {} +} </script> -- Gitblit v1.9.1