修改
This commit is contained in:
parent
a68be3e785
commit
f87d5ed14e
@ -77,11 +77,14 @@
|
|||||||
<div class="appbottom">
|
<div class="appbottom">
|
||||||
<div class="appbottomone">
|
<div class="appbottomone">
|
||||||
<div class="word">本月签约患者情况</div>
|
<div class="word">本月签约患者情况</div>
|
||||||
<div id="main1" style="height: 80%"></div>
|
<div id="main1" style="height: 80%" v-if="countydata"></div>
|
||||||
|
<el-empty description="暂无" style="width: 100%" v-else></el-empty>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="appbottomtwo">
|
<div class="appbottomtwo">
|
||||||
<div class="word">服务方式</div>
|
<div class="word">服务方式</div>
|
||||||
<div id="main" style="height: 80%"></div>
|
<div id="main" style="height: 80%" v-if="arrlist"></div>
|
||||||
|
<el-empty description="暂无" style="width: 100%" v-else></el-empty>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -105,6 +108,8 @@ export default {
|
|||||||
list: {},
|
list: {},
|
||||||
namelist: [],
|
namelist: [],
|
||||||
taskSituationlist: [],
|
taskSituationlist: [],
|
||||||
|
countydata:[],
|
||||||
|
arrlist:[],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -140,18 +145,20 @@ export default {
|
|||||||
getlist() {
|
getlist() {
|
||||||
signPatientCount().then((res) => {
|
signPatientCount().then((res) => {
|
||||||
console.log(res, "res");
|
console.log(res, "res");
|
||||||
var countydata = [];
|
// x轴
|
||||||
|
// this. countydata = [];
|
||||||
res.data.forEach((e) => {
|
res.data.forEach((e) => {
|
||||||
countydata.push(e.time);
|
this. countydata.push(e.time);
|
||||||
});
|
});
|
||||||
// 当月新增患者数量
|
// 当月新增患者数量
|
||||||
var countydatay = [];
|
var countydatay = [];
|
||||||
res.data.forEach((e) => {
|
res.data.forEach((e) => {
|
||||||
countydatay.push(e.patientCount);
|
countydatay.push(e.patientCount);
|
||||||
});
|
});
|
||||||
|
// 当月签约率
|
||||||
var proportionlist = [];
|
var proportionlist = [];
|
||||||
res.data.forEach((e) => {
|
res.data.forEach((e) => {
|
||||||
e.proportion = e.proportion*100;
|
e.proportion = e.proportion * 100;
|
||||||
proportionlist.push(e.proportion);
|
proportionlist.push(e.proportion);
|
||||||
});
|
});
|
||||||
// 签约数
|
// 签约数
|
||||||
@ -189,7 +196,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
type: "category",
|
type: "category",
|
||||||
data: countydata,
|
data: this.countydata,
|
||||||
axisPointer: {
|
axisPointer: {
|
||||||
type: "shadow",
|
type: "shadow",
|
||||||
},
|
},
|
||||||
@ -217,13 +224,12 @@ export default {
|
|||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: "axis",
|
trigger: "axis",
|
||||||
formatter: (params) => {
|
formatter: (params) => {
|
||||||
// console.log(params,'params')
|
let text = "";
|
||||||
let text = '';
|
|
||||||
params.map((item) => {
|
params.map((item) => {
|
||||||
if(item.seriesName =='当月签约率'){
|
if (item.seriesName == "当月签约率") {
|
||||||
text += item.seriesName + " : " + item.value + "%"+'<br/>';
|
text += item.seriesName + " : " + item.value + "%" + "<br/>";
|
||||||
}else{
|
} else {
|
||||||
text += item.seriesName + " : " + item.value+'<br/>';
|
text += item.seriesName + " : " + item.value + "<br/>";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return text;
|
return text;
|
||||||
@ -255,9 +261,9 @@ export default {
|
|||||||
},
|
},
|
||||||
info() {
|
info() {
|
||||||
serviceModeStatistics().then((res) => {
|
serviceModeStatistics().then((res) => {
|
||||||
let arr = [];
|
this. arrlist = [];
|
||||||
res.data.forEach((element) => {
|
res.data.forEach((element) => {
|
||||||
arr.push({
|
this.arrlist.push({
|
||||||
value: element.count, //将数组的conut值赋给value
|
value: element.count, //将数组的conut值赋给value
|
||||||
name: element.name, //将数组的name值赋给name
|
name: element.name, //将数组的name值赋给name
|
||||||
});
|
});
|
||||||
@ -278,7 +284,7 @@ export default {
|
|||||||
name: "",
|
name: "",
|
||||||
type: "pie",
|
type: "pie",
|
||||||
radius: ["40%", "70%"],
|
radius: ["40%", "70%"],
|
||||||
data: arr,
|
data: this.arrlist,
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
formatter: "{b}:{c}", // 设置标签显示格式为 "名称: 百分比"
|
formatter: "{b}:{c}", // 设置标签显示格式为 "名称: 百分比"
|
||||||
@ -294,7 +300,7 @@ export default {
|
|||||||
{
|
{
|
||||||
type: "pie",
|
type: "pie",
|
||||||
radius: ["40%", "70%"],
|
radius: ["40%", "70%"],
|
||||||
data: arr,
|
data: this.arrlist,
|
||||||
emphasis: {
|
emphasis: {
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
shadowBlur: 10,
|
shadowBlur: 10,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user