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) => {