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 }}|{{}}