From 7c70575c2292521d8ca97713e309d7498c76be9e Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Mon, 20 Jun 2022 17:55:21 +0800 Subject: [PATCH] Visualize event timeline --- src/store/modules/event.ts | 8 +-- src/views/dashboard/controls/Event.vue | 8 ++- src/views/dashboard/related/event/Content.vue | 66 +++++++++++++++++++ 3 files changed, 74 insertions(+), 8 deletions(-) create mode 100644 src/views/dashboard/related/event/Content.vue diff --git a/src/store/modules/event.ts b/src/store/modules/event.ts index 3193f00b..13174b3a 100644 --- a/src/store/modules/event.ts +++ b/src/store/modules/event.ts @@ -29,7 +29,7 @@ interface eventState { services: Service[]; instances: Instance[]; endpoints: Endpoint[]; - condition: QueryEventCondition | any; + condition: Nullable; } export const eventStore = defineStore({ @@ -40,12 +40,10 @@ export const eventStore = defineStore({ services: [{ value: "", label: "All" }], instances: [{ value: "", label: "All" }], endpoints: [{ value: "", label: "All" }], - condition: { - paging: { pageNum: 1, pageSize: 15 }, - }, + condition: null, }), actions: { - setEventCondition(data: any) { + setEventCondition(data: QueryEventCondition) { this.condition = data; }, async getServices(layer: string) { diff --git a/src/views/dashboard/controls/Event.vue b/src/views/dashboard/controls/Event.vue index 3c089ae6..a20bc5e9 100644 --- a/src/views/dashboard/controls/Event.vue +++ b/src/views/dashboard/controls/Event.vue @@ -32,15 +32,16 @@ limitations under the License. -->
- +
+ +
+