From 1366e8e8485a5d6bb6d2bbddae233a955de56f8e Mon Sep 17 00:00:00 2001 From: chenxf Date: Fri, 23 Jan 2026 15:26:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(regulatoryPlatForm):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BE=85=E5=8A=9E=E6=80=BB=E8=A7=88=E7=BB=9F=E8=AE=A1=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E5=9B=BE=E8=A1=A8=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增indexPageStatistic API接口用于获取待办总览统计数据 - 实现待办事项状态显示(正常、超期、即将超期)的动态数据绑定 - 优化柱状图X轴标签显示,添加自动换行功能避免文字重叠 - 修复饼状图和柱状图的数据动态更新机制 - 添加getStatusData方法获取待办总览状态数据 - 实现图表数据的实时更新和颜色循环显示 --- src/api/regulatoryPlatForm.js | 9 ++ src/views/regulatoryPlatForm/index.vue | 115 +++++++++++++++++++------ 2 files changed, 99 insertions(+), 25 deletions(-) diff --git a/src/api/regulatoryPlatForm.js b/src/api/regulatoryPlatForm.js index 91c0d01..3d92b8f 100644 --- a/src/api/regulatoryPlatForm.js +++ b/src/api/regulatoryPlatForm.js @@ -32,3 +32,12 @@ export function taskUnionPageStatistic(data) { }) } +// 待办总览统计(正常、超期、即将超期) +export function indexPageStatistic(data) { + return request({ + url: '/aiccs-api/task/indexPageStatistic', + method: 'post', + data + }) +} + diff --git a/src/views/regulatoryPlatForm/index.vue b/src/views/regulatoryPlatForm/index.vue index cf87bfd..b6cc098 100644 --- a/src/views/regulatoryPlatForm/index.vue +++ b/src/views/regulatoryPlatForm/index.vue @@ -4,9 +4,9 @@
待办事项总览 - 正常 12 - 超期 42 - 即将超期 122 + 正常 {{ statusData.normal }} + 超期 {{ statusData.overdue }} + 即将超期 {{ statusData.soonOverdue }}
@@ -77,7 +77,7 @@