diff --git a/src/api/home/index.ts b/src/api/home/index.ts new file mode 100644 index 0000000..62a9c0b --- /dev/null +++ b/src/api/home/index.ts @@ -0,0 +1,57 @@ +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:params=>{ + return request.get({ + url: '/system/home/taskNumDoing', + params + }) + }, + /** + * 执法整改 + */ + getExecCorrection:params=>{ + return request.get({ + url: '/system/home/execCorrectionCount', + params + }) + }, + /** + * 最新任务 + */ + getNewTask:params=> { + return request.get({ + url: 'system/task-info/appPage', + params + }) + } +} 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..d2a5ab0 100644 --- a/src/layout/components/UserInfo/src/UserInfo.vue +++ b/src/layout/components/UserInfo/src/UserInfo.vue @@ -24,8 +24,8 @@ 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 realName = computed(() => userStore.user.realName ?? '管理员') +const deptName = computed(() => userStore.user.deptName ?? '管理员') // 锁定屏幕 const lockStore = useLockStore() const getIsLock = computed(() => lockStore.getLockInfo?.isLock ?? false) @@ -57,9 +57,9 @@ const toDocument = () => {