From 9b23d3da6db5fb2f1998d4867f5c5093916686ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=7E=E6=B5=B7=7E=E7=88=B1=E6=B5=B7=E7=88=B1?= =?UTF-8?q?=E6=B5=B7=7E=E5=8F=B3?= <1828712314@qq.com> Date: Wed, 19 Mar 2025 08:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9B=BE=E6=A0=87=E5=92=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=8C=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home/index.ts | 38 ++ src/layout/components/AppView.vue | 2 +- .../components/BackOperation/src/index.vue | 2 +- src/layout/components/Screen/src/Screen.vue | 2 +- src/layout/components/ToolHeader.vue | 3 - .../components/UserInfo/src/UserInfo.vue | 5 +- src/router/modules/remaining.ts | 2 +- src/store/modules/app.ts | 2 +- src/styles/var.css | 2 +- src/utils/dict.ts | 2 + src/views/Home/Index.vue | 447 ++++++++---------- src/views/Home/echarts-data.ts | 301 ++++++++---- 12 files changed, 473 insertions(+), 335 deletions(-) create mode 100644 src/api/home/index.ts diff --git a/src/api/home/index.ts b/src/api/home/index.ts new file mode 100644 index 0000000..0a0994c --- /dev/null +++ b/src/api/home/index.ts @@ -0,0 +1,38 @@ +import request from '@/config/axios' + +export const HomeApi = { + /** + * 获取区域 + */ + getArea: () => { + return request.get({ + url: `/system/home/getUserArea` + }) + }, + /** + * 获取列表数据 + */ + getListData: params => { + return request.get({ + url: '/system/home/appCount2', + params + }) + }, + /** + * 获取饼图相关的数据 + */ + getPieData: (params) => { + return request.get({ + url: '/system/home/appCount1', + params + }) + }, + /** + * 近6个月任务走势 + */ + getTaskNumDoing:()=>{ + return request.get({ + url: '/system/home/taskNumDoing' + }) + } +} diff --git a/src/layout/components/AppView.vue b/src/layout/components/AppView.vue index df720a1..f819275 100644 --- a/src/layout/components/AppView.vue +++ b/src/layout/components/AppView.vue @@ -36,7 +36,7 @@ provide('reload', reload) diff --git a/src/layout/components/ToolHeader.vue b/src/layout/components/ToolHeader.vue index c109bfb..62ac142 100644 --- a/src/layout/components/ToolHeader.vue +++ b/src/layout/components/ToolHeader.vue @@ -65,9 +65,6 @@ export default defineComponent({ color="var(--top-header-text-color)" > ) : undefined} - {message.value ? ( - - ) : undefined} diff --git a/src/layout/components/UserInfo/src/UserInfo.vue b/src/layout/components/UserInfo/src/UserInfo.vue index 4945567..1bad1cf 100644 --- a/src/layout/components/UserInfo/src/UserInfo.vue +++ b/src/layout/components/UserInfo/src/UserInfo.vue @@ -24,7 +24,6 @@ const { getPrefixCls } = useDesign() const prefixCls = getPrefixCls('user-info') const avatar = computed(() => userStore.user.avatar || avatarImg) -const userName = computed(() => userStore.user.nickname ?? 'Admin') const realName=computed(()=>userStore.user.realName ?? '管理员') // 锁定屏幕 const lockStore = useLockStore() @@ -58,8 +57,8 @@ const toDocument = () => {
- - {{ realName }} + + {{ realName }}|{{}}