From 95acce43ade1f500e9bee34c0f1f0d4b947bacd8 Mon Sep 17 00:00:00 2001 From: haha Date: Sun, 7 Jul 2024 19:15:46 +0800 Subject: [PATCH] update code --- src/api/connection/index.js | 7 +- src/api/menu/index.ts | 18 +- src/views/{protocol => connection}/detail.vue | 81 ++++++-- src/views/connection/detailFlow.vue | 184 ++++++++++++++++++ src/views/{protocol => connection}/edit.vue | 8 +- .../{protocol => connection}/editFlow.vue | 0 src/views/{protocol => connection}/index.vue | 135 ++++--------- .../{protocol => connection}/nodePanel.vue | 0 src/views/dashboard/index.vue | 2 +- src/views/model/index.vue | 6 +- src/views/model/uploadModel.vue | 10 +- src/views/protocol/detailFlow.vue | 123 ------------ src/views/simulationEvaluation/index.vue | 2 +- 13 files changed, 317 insertions(+), 259 deletions(-) rename src/views/{protocol => connection}/detail.vue (69%) create mode 100644 src/views/connection/detailFlow.vue rename src/views/{protocol => connection}/edit.vue (97%) rename src/views/{protocol => connection}/editFlow.vue (100%) rename src/views/{protocol => connection}/index.vue (57%) rename src/views/{protocol => connection}/nodePanel.vue (100%) delete mode 100644 src/views/protocol/detailFlow.vue diff --git a/src/api/connection/index.js b/src/api/connection/index.js index 5295ec3..fda1eec 100644 --- a/src/api/connection/index.js +++ b/src/api/connection/index.js @@ -1,8 +1,9 @@ import request from "@/utils/request"; -const list=(pageSize,pageIndex)=>{ +const list=(data)=>{ return request({ - url: `/connections?page_num=${pageIndex}&page_size=${pageSize}`, - method: "get" + url: `/connections`, + method: "get", + params:data }); } diff --git a/src/api/menu/index.ts b/src/api/menu/index.ts index b3ac6f8..d77aa8f 100644 --- a/src/api/menu/index.ts +++ b/src/api/menu/index.ts @@ -91,10 +91,10 @@ class MenuAPI { ], }, { - path: "/protocol", + path: "/connection", component: "Layout", - redirect: "/protocol/index", - name: "/protocol", + redirect: "/connection/index", + name: "/connection", meta: { title: "互联协议管理", icon: "web", @@ -105,8 +105,8 @@ class MenuAPI { children: [ { path: "index", - component: "protocol/index", - name: "protocolIndex", + component: "connection/index", + name: "connectionIndex", meta: { title: "互联协议", icon: "user", @@ -118,8 +118,8 @@ class MenuAPI { }, { path: "edit", - component: "protocol/edit", - name: "protocolEdit", + component: "connection/edit", + name: "connectionEdit", meta: { title: "互联协议修改", icon: "user", @@ -131,8 +131,8 @@ class MenuAPI { }, { path: "detail", - component: "protocol/detail", - name: "protocolDetail", + component: "connection/detail", + name: "connectionDetail", meta: { title: "互联协议详情", icon: "user", diff --git a/src/views/protocol/detail.vue b/src/views/connection/detail.vue similarity index 69% rename from src/views/protocol/detail.vue rename to src/views/connection/detail.vue index c5fec37..308a7d5 100644 --- a/src/views/protocol/detail.vue +++ b/src/views/connection/detail.vue @@ -1,5 +1,5 @@