From 3ced6977b60c07c6b4a1c48d9dd52933e3c3d238 Mon Sep 17 00:00:00 2001 From: Fine Date: Wed, 1 Feb 2023 16:01:14 +0800 Subject: [PATCH] feat: generate widget link --- src/router/dashboard.ts | 2 +- src/views/dashboard/Edit.vue | 1 - src/views/dashboard/components/WidgetLink.vue | 68 +++++++++++++++++-- 3 files changed, 63 insertions(+), 8 deletions(-) diff --git a/src/router/dashboard.ts b/src/router/dashboard.ts index 23414a9a..cd6b441a 100644 --- a/src/router/dashboard.ts +++ b/src/router/dashboard.ts @@ -185,7 +185,7 @@ export const routesDashboard: Array = [ }, children: [ { - path: "/page/:entity/:serviceId/:podId/:processId/:destServiceId/:destPodId/:destProcessId/:config", + path: "/page/:entity/:serviceId/:podId/:processId/:destServiceId/:destPodId/:destProcessId/:config/:duration?", component: () => import("@/views/dashboard/Widget.vue"), name: "ViewWidget", }, diff --git a/src/views/dashboard/Edit.vue b/src/views/dashboard/Edit.vue index 340b269f..7b78e9e3 100644 --- a/src/views/dashboard/Edit.vue +++ b/src/views/dashboard/Edit.vue @@ -32,7 +32,6 @@ limitations under the License. --> diff --git a/src/views/dashboard/components/WidgetLink.vue b/src/views/dashboard/components/WidgetLink.vue index 56a9d808..c5bd6fa0 100644 --- a/src/views/dashboard/components/WidgetLink.vue +++ b/src/views/dashboard/components/WidgetLink.vue @@ -12,26 +12,82 @@ distributed under the License is distributed on an "AS IS" BASIS, 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. --> -