From d425c878acbdcfc9369c167d14bf0eb7237a7257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Wed, 14 Aug 2024 17:37:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/index.js | 8 ++++++- src/views/index.vue | 47 ++++++++++++++++++----------------------- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/src/api/system/index.js b/src/api/system/index.js index 9b2e7da..25dfee9 100644 --- a/src/api/system/index.js +++ b/src/api/system/index.js @@ -23,4 +23,10 @@ export function serviceModeStatistics(query) { params: query }) } - +export function taskSituation(query) { + return request({ + url: '/system/homePage/taskSituation', + method: 'get', + params: query + }) +} diff --git a/src/views/index.vue b/src/views/index.vue index 9b4f9ef..6a6749c 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -30,42 +30,28 @@
待办任务
-
+
- 人工审核 + {{ item.name }} - - +
- - 10/20 -
-
-
-
- + {{ item.count }}/{{ item.allCount }} - 人工随访 - - - - -
-
- - 10/20
@@ -88,6 +74,7 @@ import { topStatistics, signPatientCount, serviceModeStatistics, + taskSituation, } from "@/api/system/index"; import * as echarts from "echarts"; @@ -99,6 +86,7 @@ export default { version: "0.0.1", list: {}, namelist: [], + taskSituationlist: [], }; }, mounted() { @@ -120,9 +108,16 @@ export default { // 上部分 infolist() { topStatistics().then((res) => { - console.log(res, "res"); + // console.log(res, "res"); this.list = res.data; }); + taskSituation().then((res) => { + this.taskSituationlist = res.data; + this.taskSituationlist.forEach((e) => { + e.content = Math.ceil((e.count / e.allCount) * 100); + console.log(e.content, " e.content"); + }); + }); }, getlist() { signPatientCount().then((res) => {