From 2be0a84d4894801b8b32e338b8dd09d71611b23a Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Thu, 16 Jun 2022 15:19:17 +0800 Subject: [PATCH] fix: optimize widgets (#111) --- src/store/modules/log.ts | 6 ++++++ .../related/components/LogTable/Index.vue | 20 +++++++++++-------- src/views/dashboard/related/log/Header.vue | 5 ++++- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/store/modules/log.ts b/src/store/modules/log.ts index ce1674d1..241297de 100644 --- a/src/store/modules/log.ts +++ b/src/store/modules/log.ts @@ -53,6 +53,12 @@ export const logStore = defineStore({ setLogCondition(data: any) { this.conditions = { ...this.conditions, ...data }; }, + resetCondition() { + this.conditions = { + queryDuration: useAppStoreWithOut().durationTime, + paging: { pageNum: 1, pageSize: 15 }, + }; + }, async getServices(layer: string) { const res: AxiosResponse = await graphql.query("queryServices").params({ layer, diff --git a/src/views/dashboard/related/components/LogTable/Index.vue b/src/views/dashboard/related/components/LogTable/Index.vue index 1e1f257a..f1658ee4 100644 --- a/src/views/dashboard/related/components/LogTable/Index.vue +++ b/src/views/dashboard/related/components/LogTable/Index.vue @@ -17,7 +17,9 @@ limitations under the License. -->