From d0aaa24f90e32c93f8414a97029b1c8698a87e2d Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Fri, 23 Aug 2024 13:19:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=A0=8F/=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=A0=8F=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/plan/static.ts | 8 + frontend/src/assets/images/dashboard/1.svg | 1296 ++++++++++ frontend/src/assets/images/dashboard/2.svg | 67 + frontend/src/assets/images/dashboard/3.svg | 2104 +++++++++++++++++ .../src/components/echarts/pie/default.vue | 109 + .../src/layouts/LayoutTransverse/index.vue | 3 +- .../components/Header/components/Avatar.vue | 15 +- .../src/layouts/components/Main/index.vue | 22 +- frontend/src/stores/modules/auth.ts | 55 +- frontend/src/stores/modules/user.ts | 8 +- frontend/src/views/home/components/table.vue | 89 + frontend/src/views/home/components/tree.vue | 70 + frontend/src/views/home/index.vue | 234 +- frontend/src/views/home/tabs/dashboard.vue | 406 ++++ frontend/src/views/home/tabs/model.vue | 242 ++ .../src/views/login/components/LoginForm.vue | 51 +- frontend/src/views/plan/detection/index.vue | 16 + 17 files changed, 4751 insertions(+), 44 deletions(-) create mode 100644 frontend/src/api/plan/static.ts create mode 100644 frontend/src/assets/images/dashboard/1.svg create mode 100644 frontend/src/assets/images/dashboard/2.svg create mode 100644 frontend/src/assets/images/dashboard/3.svg create mode 100644 frontend/src/components/echarts/pie/default.vue create mode 100644 frontend/src/views/home/components/table.vue create mode 100644 frontend/src/views/home/components/tree.vue create mode 100644 frontend/src/views/home/tabs/dashboard.vue create mode 100644 frontend/src/views/home/tabs/model.vue create mode 100644 frontend/src/views/plan/detection/index.vue diff --git a/frontend/src/api/plan/static.ts b/frontend/src/api/plan/static.ts new file mode 100644 index 0000000..4b6ca43 --- /dev/null +++ b/frontend/src/api/plan/static.ts @@ -0,0 +1,8 @@ +import http from "@/api"; +export const getStaticTreeData = (data: any) => { + return http.post( + "http://127.0.0.1:4523/m1/2573730-0-default/plan/static/planData", + data, + { loading: false } + ); // 正常 post json 请求 ==> application/json +}; diff --git a/frontend/src/assets/images/dashboard/1.svg b/frontend/src/assets/images/dashboard/1.svg new file mode 100644 index 0000000..b166029 --- /dev/null +++ b/frontend/src/assets/images/dashboard/1.svg @@ -0,0 +1,1296 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/images/dashboard/2.svg b/frontend/src/assets/images/dashboard/2.svg new file mode 100644 index 0000000..af16270 --- /dev/null +++ b/frontend/src/assets/images/dashboard/2.svg @@ -0,0 +1,67 @@ + + + Illustration/数据 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/src/assets/images/dashboard/3.svg b/frontend/src/assets/images/dashboard/3.svg new file mode 100644 index 0000000..c0f9fd2 --- /dev/null +++ b/frontend/src/assets/images/dashboard/3.svg @@ -0,0 +1,2104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/components/echarts/pie/default.vue b/frontend/src/components/echarts/pie/default.vue new file mode 100644 index 0000000..612a82e --- /dev/null +++ b/frontend/src/components/echarts/pie/default.vue @@ -0,0 +1,109 @@ + + + + diff --git a/frontend/src/layouts/LayoutTransverse/index.vue b/frontend/src/layouts/LayoutTransverse/index.vue index a65dad5..a604c26 100644 --- a/frontend/src/layouts/LayoutTransverse/index.vue +++ b/frontend/src/layouts/LayoutTransverse/index.vue @@ -11,7 +11,7 @@ /> {{ title }} - +