Compare commits
2 Commits
4ad9d7b311
...
34da0d1f0b
Author | SHA1 | Date |
---|---|---|
duanxiaohai | 34da0d1f0b | |
duanxiaohai | 66d72f1703 |
|
@ -624,7 +624,7 @@ const getData = async (name, fullName) => {
|
|||
name: item.sx,
|
||||
text: item.bmfxqk,
|
||||
// progress: item.xh,
|
||||
progress: '95',
|
||||
progress: '95', //进度条
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -681,9 +681,20 @@ const getData = () => {
|
|||
// 助老服务
|
||||
data.smfwcs = res.data.zlfw.smfwcs;
|
||||
// 乡镇助餐次数
|
||||
res.data.zlfw.xzzccs.forEach((element) => {
|
||||
let elements = res.data.zlfw.xzzccs;
|
||||
// 先处理 zccs 不等于 0 的元素
|
||||
elements.forEach((element) => {
|
||||
if (element.zccs !== 0) {
|
||||
data.zccs1.push(element.xzjd); // 地点
|
||||
data.zccs2.push(element.zccs); // 次数
|
||||
}
|
||||
});
|
||||
// 处理 zccs 等于 0 的元素
|
||||
elements.forEach((element) => {
|
||||
if (element.zccs === 0) {
|
||||
data.zccs1.push(element.xzjd); // 地点
|
||||
data.zccs2.push(element.zccs); // 次数
|
||||
}
|
||||
});
|
||||
}
|
||||
showEchart.value = true;
|
||||
|
|
|
@ -217,10 +217,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="history">
|
||||
<div
|
||||
class="history1"
|
||||
@click="showMapDialog('养老机构')"
|
||||
>
|
||||
<div class="history1" @click="showMapDialog('养老机构')">
|
||||
<div>
|
||||
<span>{{ data.yljgzlzx.yljg }}<span class="unit">个</span></span>
|
||||
</div>
|
||||
|
@ -445,10 +442,10 @@ const showDialog = (title, url, coulumn) => {
|
|||
getTable(url, pagination.currentPage);
|
||||
};
|
||||
//养老机构地图
|
||||
const showMapDialog =(title)=>{
|
||||
const showMapDialog = (title) => {
|
||||
mapTitle.value = title;
|
||||
dialogShowMap.value = true;
|
||||
}
|
||||
};
|
||||
//获取表格数据
|
||||
const getTable = (url, currentPage) => {
|
||||
http
|
||||
|
@ -657,7 +654,7 @@ const getData = () => {
|
|||
// 计划生育
|
||||
res.data.familyPlanning.familyPlanningData.forEach((element) => {
|
||||
data.centerBottom1.push(element.jhsyrs); // 人次
|
||||
data.centerBottom2.push((element.jhsybtje / 10000)); // 金额
|
||||
data.centerBottom2.push(element.jhsybtje / 10000); // 金额
|
||||
// data.centerBottom2.push(element.jhsybtje); // 金额
|
||||
});
|
||||
// 年份
|
||||
|
@ -668,9 +665,20 @@ const getData = () => {
|
|||
// 助老服务
|
||||
data.smfwcs = res.data.zlfw.smfwcs;
|
||||
// 乡镇助餐次数
|
||||
res.data.zlfw.xzzccs.forEach((element) => {
|
||||
let elements = res.data.zlfw.xzzccs;
|
||||
// 先处理 zccs 不等于 0 的元素
|
||||
elements.forEach((element) => {
|
||||
if (element.zccs !== 0) {
|
||||
data.zccs1.push(element.xzjd); // 地点
|
||||
data.zccs2.push(element.zccs); // 次数
|
||||
}
|
||||
});
|
||||
// 处理 zccs 等于 0 的元素
|
||||
elements.forEach((element) => {
|
||||
if (element.zccs === 0) {
|
||||
data.zccs1.push(element.xzjd); // 地点
|
||||
data.zccs2.push(element.zccs); // 次数
|
||||
}
|
||||
});
|
||||
}
|
||||
showEchart.value = true;
|
||||
|
|
Loading…
Reference in New Issue