From 6f1945e05e8a379b8a3b792c622ec22a75de5b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=99=E9=83=BD=E6=B2=A1=E7=94=A8?= <615206459@qq.com> Date: Fri, 6 Sep 2024 15:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/helper/hooks/code.ts | 1 - src/modules/helper/views/plugins/serve.vue | 2 +- src/plugins/crud/components/date/picker.vue | 8 +++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/modules/helper/hooks/code.ts b/src/modules/helper/hooks/code.ts index e406f2c..729a5c3 100644 --- a/src/modules/helper/hooks/code.ts +++ b/src/modules/helper/hooks/code.ts @@ -34,7 +34,6 @@ export function useCode() { table: { label, dict: list, - dictColor: true, minWidth: 120 }, form: { diff --git a/src/modules/helper/views/plugins/serve.vue b/src/modules/helper/views/plugins/serve.vue index d51ee1d..03544a2 100644 --- a/src/modules/helper/views/plugins/serve.vue +++ b/src/modules/helper/views/plugins/serve.vue @@ -141,7 +141,7 @@ const info = ref(); // 刷新 function refresh() { - service.plugin.info.page().then((res) => { + service.plugin.info.page({ page: 1, size: 100 }).then((res) => { list.value = res.list; }); } diff --git a/src/plugins/crud/components/date/picker.vue b/src/plugins/crud/components/date/picker.vue index 981ea67..53f9e21 100644 --- a/src/plugins/crud/components/date/picker.vue +++ b/src/plugins/crud/components/date/picker.vue @@ -56,6 +56,11 @@ const props = defineProps({ defaultQuickType: { type: String as PropType<"day" | "week" | "month" | "year" | "">, default: "day" + }, + // 筛选后是否刷新 + enableRefresh: { + type: Boolean, + default: true } }); @@ -108,7 +113,8 @@ function onChange(value: any) { }; } - if (props.prop) { + // 筛选列表 + if (props.enableRefresh) { Crud.value?.refresh({ ...params, page: 1