From 56c3e1588017ea43196445c3a7ca3141d1bd75ed 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 10:56:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=9A=E4=B8=AA=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=8E=B7=E5=8F=96=E6=8E=A5=E5=8F=A3=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home/index.ts | 23 +- src/views/Home/Index.vue | 432 ++++++++++++++++++++++++++------- src/views/Home/echarts-data.ts | 285 ---------------------- src/views/Home/types.ts | 50 ---- 4 files changed, 372 insertions(+), 418 deletions(-) delete mode 100644 src/views/Home/echarts-data.ts delete mode 100644 src/views/Home/types.ts 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 @@