diff --git a/src/api/home/index.ts b/src/api/home/index.ts index 0a0994c..62a9c0b 100644 --- a/src/api/home/index.ts +++ b/src/api/home/index.ts @@ -30,9 +30,28 @@ export const HomeApi = { /** * 近6个月任务走势 */ - getTaskNumDoing:()=>{ + getTaskNumDoing:params=>{ return request.get({ - url: '/system/home/taskNumDoing' + 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/views/Home/Index.vue b/src/views/Home/Index.vue index ad27ca3..a8d5704 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -3,7 +3,12 @@ - +
- + 查询 - + 重置 @@ -83,9 +90,10 @@ class="text-15px flex justify-between" > {{ item.title }} - {{ item.user }} - {{ item.date }} + {{ item.deptName }} + {{ formatDate(item.startDate, 'YYYY年M月D日') }} +
@@ -103,6 +111,7 @@ {{ item.name }} {{ item.count }}次 + @@ -120,6 +129,7 @@ {{ item.name }} {{ item.count }}天 + @@ -127,18 +137,293 @@