From 64eafab10d12f829b59847df47cb673befd8b156 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Wed, 23 Mar 2022 12:05:09 +0800 Subject: [PATCH] set current dashboard params --- src/store/modules/dashboard.ts | 1 + src/views/Layer.vue | 47 ++++++------------- src/views/dashboard/Edit.vue | 28 +++++++++-- src/views/dashboard/graphs/EndpointList.vue | 2 - src/views/dashboard/graphs/InstanceList.vue | 22 ++------- src/views/dashboard/graphs/ServiceList.vue | 2 - src/views/dashboard/panel/Layout.vue | 8 ++-- src/views/dashboard/panel/Tool.vue | 31 ++++++++---- .../related/topology/components/Graph.vue | 30 +++--------- 9 files changed, 76 insertions(+), 95 deletions(-) diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index 0f485c1f..769d0f1c 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -73,6 +73,7 @@ export const dashboardStore = defineStore({ sessionStorage.setItem("dashboards", JSON.stringify(list)); }, setCurrentDashboard(item: DashboardItem) { + console.log(item); this.currentDashboard = item; }, addControl(type: string) { diff --git a/src/views/Layer.vue b/src/views/Layer.vue index b7f3210c..3a2f1f69 100644 --- a/src/views/Layer.vue +++ b/src/views/Layer.vue @@ -13,23 +13,23 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> diff --git a/src/views/dashboard/Edit.vue b/src/views/dashboard/Edit.vue index eb62f74c..85a00091 100644 --- a/src/views/dashboard/Edit.vue +++ b/src/views/dashboard/Edit.vue @@ -13,9 +13,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->