This commit is contained in:
姚宇浩 2024-06-12 11:27:16 +08:00
parent 7c15dbe66a
commit 4e7e00b234
4 changed files with 28 additions and 21 deletions

View File

@ -131,7 +131,7 @@ const option = {
title: [ title: [
{ {
text: "99.25%", text: `${((dataList[0].value / dataList[1].value)*100).toFixed(2)}%`,
right: "18%", right: "18%",
bottom: "40%", bottom: "40%",
textStyle: { textStyle: {

View File

@ -127,8 +127,9 @@ const option = {
title: [ title: [
{ {
text: "0.03%", // text: "0.03%",
right: "22%", text:`${((dataList[0].value / dataList[1].value)*100).toFixed(2)}%`,
right: "19%",
bottom: "40%", bottom: "40%",
textStyle: { textStyle: {
color: "#ffffff", color: "#ffffff",

View File

@ -126,8 +126,8 @@ const option = {
title: [ title: [
{ {
text: "0.02%", text: `${((dataList[0].value / dataList[1].value)*100).toFixed(2)}%`,
right: "22%", right: "19%",
bottom: "40%", bottom: "40%",
textStyle: { textStyle: {
color: "#ffffff", color: "#ffffff",

View File

@ -183,7 +183,10 @@
</div> </div>
</div> </div>
<div class="history"> <div class="history">
<div class="history1" @click="showDialog('养老机构', '')"> <div
class="history1"
@click="showDialog('养老机构', '/api/ggfwyth/yljghmcList')"
>
<div> <div>
<span>{{ data.yljgzlzx.yljg }}<span class="unit"></span></span> <span>{{ data.yljgzlzx.yljg }}<span class="unit"></span></span>
</div> </div>
@ -198,7 +201,12 @@
<img src="@/assets/YLimg/ylimg3.png" alt="" /> <img src="@/assets/YLimg/ylimg3.png" alt="" />
<img class="historyimg" src="@/assets/YLimg/ylimg6.png" alt="" /> <img class="historyimg" src="@/assets/YLimg/ylimg6.png" alt="" />
</div> --> </div> -->
<div class="history1" @click="showDialog('居家养老服务照料中心', '')"> <div
class="history1"
@click="
showDialog('居家养老服务照料中心', '/api/ggfwyth/yljgzlzxList')
"
>
<div> <div>
<span>{{ data.yljgzlzx.zlzx }}<span class="unit"></span></span> <span>{{ data.yljgzlzx.zlzx }}<span class="unit"></span></span>
</div> </div>
@ -345,15 +353,15 @@ const xz_column = ref([
const yl_column = ref([ const yl_column = ref([
{ {
label: "机构名称", label: "机构名称",
property: "name", property: "mc",
}, },
{ {
label: "机构地址", label: "机构地址",
property: "address", property: "dz",
}, },
{ {
label: "老人数量", label: "老人数量",
property: "oldMan", property: "rzlrsl",
}, },
]); ]);
// //
@ -379,17 +387,15 @@ const showDialog = (title, url) => {
}; };
// //
const getTable = (url, currentPage) => { const getTable = (url, currentPage) => {
dialogShow.value = true; http
tableType.data = []; .get(`${url}?page=${currentPage}&size=${pagination.pageSize}`)
// http .then((res) => {
// .get(`${url}?page=${currentPage}&size=${pagination.pageSize}`) if (res.code == 200) {
// .then((res) => { tableType.data = res.data;
// if (res.code == 200) { pagination.total = res.count;
// tableType.data = res.data; dialogShow.value = true;
// pagination.total = res.count; }
// dialogShow.value = true; });
// }
// });
}; };
const close = () => { const close = () => {
dialogShow.value = false; dialogShow.value = false;