This commit is contained in:
闫晓茹 2024-08-14 16:43:23 +08:00
parent cbebad7c04
commit 1fd8e96f87
2 changed files with 92 additions and 46 deletions

View File

@ -16,3 +16,11 @@ export function signPatientCount(query) {
params: query params: query
}) })
} }
export function serviceModeStatistics(query) {
return request({
url: '/system/homePage/serviceModeStatistics',
method: 'get',
params: query
})
}

View File

@ -32,7 +32,15 @@
<div class="wait">待办任务</div> <div class="wait">待办任务</div>
<div class="all"> <div class="all">
<div class="person" @click="goback"> <div class="person" @click="goback">
人工审核 <el-tooltip
class=""
effect="dark"
content="任务总数量"
placement="top"
>
<span class="">人工审核</span>
</el-tooltip>
<el-badge :value="139" class="item"></el-badge> <el-badge :value="139" class="item"></el-badge>
<i class="el-icon-arrow-right"></i> <i class="el-icon-arrow-right"></i>
</div> </div>
@ -43,7 +51,15 @@
</div> </div>
<div class="all"> <div class="all">
<div class="person" @click="gofollowup"> <div class="person" @click="gofollowup">
人工随访 <el-tooltip
class=""
effect="dark"
content="随访总数量"
placement="top"
>
<span class="">人工随访</span>
</el-tooltip>
<el-badge :value="22" class="item"></el-badge> <el-badge :value="22" class="item"></el-badge>
<i class="el-icon-arrow-right"></i> <i class="el-icon-arrow-right"></i>
</div> </div>
@ -68,7 +84,11 @@
</template> </template>
<script> <script>
import { topStatistics, signPatientCount } from "@/api/system/index"; import {
topStatistics,
signPatientCount,
serviceModeStatistics,
} from "@/api/system/index";
import * as echarts from "echarts"; import * as echarts from "echarts";
export default { export default {
@ -78,6 +98,7 @@ export default {
// //
version: "0.0.1", version: "0.0.1",
list: {}, list: {},
namelist: [],
}; };
}, },
mounted() { mounted() {
@ -104,7 +125,6 @@ export default {
}); });
}, },
getlist() { getlist() {
// domecharts
signPatientCount().then((res) => { signPatientCount().then((res) => {
console.log(res, "res"); console.log(res, "res");
var countydata = []; var countydata = [];
@ -207,38 +227,65 @@ export default {
}); });
}, },
info() { info() {
var chartDom = document.getElementById("main"); serviceModeStatistics().then((res) => {
var myChart = echarts.init(chartDom); let arr = [];
var option = { res.data.forEach((element) => {
tooltip: { arr.push({
trigger: "item", value: element.count, //conutvalue
}, name: element.name, //namename
legend: { });
top: "2%", var chartDom = document.getElementById("main");
right: "2%", var myChart = echarts.init(chartDom);
left: "center", var option = {
}, tooltip: {
color: ["#91ED93", "#68B4FF", "#3363FF"], trigger: "item",
series: [ },
{ legend: {
name: "Access From", top: "2%",
type: "pie", right: "2%",
radius: ["40%", "70%"], left: "center",
// center: ['50%', '70%'], },
// adjust the start and end angle color: ["#91ED93", "#68B4FF", "#3363FF", "orange"],
// startAngle: 180, series: [
// endAngle: 360, {
data: [ name: "",
{ value: 1048, name: "AI电话" }, type: "pie",
{ value: 735, name: "短信" }, radius: ["40%", "70%"],
{ value: 580, name: "微信" }, data: arr,
{ value: 484, name: "人工随访" }, label: {
], show: true,
}, formatter: "{b}:{c}", // " "
], position: "outside", //
}; },
option && myChart.setOption(option); labelLine: {
show: true,
length2: 30, // 线
maxSurfaceAngle: 80, // 线
},
},
{
type: "pie",
radius: ["40%", "70%"],
data: arr,
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: "rgba(0, 0, 0, 0.5)",
},
},
label: {
show: true,
formatter: "{d}%", // " "
position: "inside", //
},
},
],
};
option && myChart.setOption(option);
});
});
}, },
}, },
}; };
@ -320,7 +367,8 @@ export default {
width: 17%; width: 17%;
background: #fff; background: #fff;
border-radius: 5px; border-radius: 5px;
height: calc(100vh - 450px); height: 300px;
// height: calc(100vh - 450px);
.wait { .wait {
// padding: 20px; // padding: 20px;
font-weight: 600; font-weight: 600;
@ -336,16 +384,6 @@ export default {
font-weight: 600; font-weight: 600;
font-size: 12px; font-size: 12px;
} }
// .number{
// display: inline-block;
// width: 22px;
// height: 22px;
// line-height: 22px;
// text-align: center;
// border-radius: 50%;
// background: red;
// color: white;
// }
.el-icon-arrow-right { .el-icon-arrow-right {
float: right; float: right;
} }