gxgetDatas2

This commit is contained in:
姚宇浩 2024-08-05 16:54:56 +08:00
parent 1d54b1c526
commit 4ad9d7b311
3 changed files with 63 additions and 52 deletions

View File

@ -35,7 +35,8 @@
<div class="my-info-label">居住状态</div> <div class="my-info-label">居住状态</div>
<div class="my-info-content"> <div class="my-info-content">
<p v-if="baseInfo.jzzt == 1">居住</p> <p v-if="baseInfo.jzzt == 1">居住</p>
<p v-else>未居住</p> <p v-else-if="baseInfo.jzzt == 0">未居住</p>
<p v-else></p>
</div> </div>
</div> </div>
<div class="my-info-item"> <div class="my-info-item">
@ -424,39 +425,42 @@ const getData = (nm, identNo) => {
} }
}); });
}; };
const getData2 = (nm, identNo) => { // const getData2 = (nm, identNo) => {
http // http
.get(`/api/ggfwyth/pg/lyxsdbrymdDetails?xm=${nm}&sfzhm=${identNo}`) // .get(`/api/ggfwyth/pg/lyxsdbrymdDetails?xm=${nm}&sfzhm=${identNo}`)
.then((res) => { // .then((res) => {
if (res.code == 200) { // if (res.code == 200) {
baseInfo.value = res.data; // baseInfo.value = res.data;
// dataMyTag.myTag.map((item) => { // // dataMyTag.myTag.map((item) => {
// if (res.data[item.jkName]) { // // if (res.data[item.jkName]) {
// item.show = Number(res.data[item.jkName]); // // item.show = Number(res.data[item.jkName]);
// // }
// // });
// if(res.data.yljlx){
// data.value=[
// {
// type:res.data.yljlx,
// date:res.data.yljffrq,
// sum:res.data.yljffje
// }
// ]
// }else{
// data.value=[]
// }
// // console.log(dataMyTag.myTag, 555);
// } // }
// }); // });
if(res.data.yljlx){ // };
data.value=[
{
type:res.data.yljlx,
date:res.data.yljffrq,
sum:res.data.yljffje
}
]
}else{
data.value=[]
}
// console.log(dataMyTag.myTag, 555);
}
});
};
onMounted(() => { onMounted(() => {
// console.log(routers.query); // console.log(routers.query);
if(routers.query.type == 'map'){ if(routers.query.type == 'map'){
getData(routers.query.nm, routers.query.identNo); getData(routers.query.nm, routers.query.identNo);
}else{ }else{
getData2(routers.query.nm, routers.query.identNo); // getData2(routers.query.nm, routers.query.identNo);
baseInfo.value.nm=routers.query.nm;
baseInfo.value.dz=routers.query.dz;
baseInfo.value.identNo=routers.query.identNo;
} }
}); });

View File

@ -599,7 +599,7 @@ const handleRowClick = (row, column, event) => {
console.log(row); console.log(row);
router.push({ router.push({
path: `/home/index/person`, path: `/home/index/person`,
query: { nm: row.xm, identNo: row.sfzhm, type: "detail" }, query: { nm: row.xm, identNo: row.sfzhm, dz: row.dz, type: "detail" },
}); });
}; };
onMounted(() => { onMounted(() => {

View File

@ -47,7 +47,7 @@
'below-line2': index % 2 === 0, 'below-line2': index % 2 === 0,
}, },
]" ]"
>{{ (item.progress).toFixed(2) + "%" }}</span >{{ item.progress.toFixed(2) + "%" }}</span
> >
<span <span
style="color: #fff; white-space: nowrap" style="color: #fff; white-space: nowrap"
@ -239,7 +239,7 @@ const cfJd = ref("");
// //
const cfCs = ref(""); const cfCs = ref("");
// //
const cfCsZs=ref('') const cfCsZs = ref("");
// //
var map = null; var map = null;
// //
@ -970,7 +970,7 @@ const tableType = reactive({
{ {
label: "居住状态", label: "居住状态",
property: "jzzt", property: "jzzt",
type:'slot' type: "slot",
}, },
{ {
label: "民族", label: "民族",
@ -986,9 +986,7 @@ const tableType = reactive({
width: "300px", width: "300px",
}, },
], ],
data: [ data: [],
],
}); });
// //
const pagination = reactive({ const pagination = reactive({
@ -1032,7 +1030,7 @@ const clear = () => {
title_cs.value = ""; title_cs.value = "";
cfJd.value = ""; cfJd.value = "";
cfCs.value = ""; cfCs.value = "";
cfCsZs.value=''; cfCsZs.value = "";
cs_un_choose_arr.value.forEach((item, index) => { cs_un_choose_arr.value.forEach((item, index) => {
map.removeOverlay(cs_un_choose_arr.value[index]); map.removeOverlay(cs_un_choose_arr.value[index]);
}); });
@ -1275,7 +1273,6 @@ const getDatas = async (e, i) => {
map.removeOverlay(cs_dd_arr.value[index]); map.removeOverlay(cs_dd_arr.value[index]);
}); });
cs_dd_arr.value = [...xuanzhongCs.value]; cs_dd_arr.value = [...xuanzhongCs.value];
cs_dd_arr.value.map((item, index) => { cs_dd_arr.value.map((item, index) => {
DGcreateCs2(item, index); DGcreateCs2(item, index);
@ -1751,8 +1748,6 @@ const open_detail = () => {
person_detail(age); person_detail(age);
dialogShow.value = true; dialogShow.value = true;
} }
}; };
const close = () => { const close = () => {
dialogShow.value = false; dialogShow.value = false;
@ -1779,7 +1774,9 @@ const person_detail = (age) => {
.get( .get(
`/api/ggfwyth/ysyzt/getRysmzq?page=${pagination.currentPage}&size=${ `/api/ggfwyth/ysyzt/getRysmzq?page=${pagination.currentPage}&size=${
pagination.pageSize pagination.pageSize
}&age=${age || ""}&committee=${cfCsZs.value || ""}&town=${cfJd.value || ""}` }&age=${age || ""}&committee=${cfCsZs.value || ""}&town=${
cfJd.value || ""
}`
) )
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -2390,7 +2387,12 @@ const addPolygonCountyCs = () => {
// getDataBqs(cfJd.value, cfCs.value); // getDataBqs(cfJd.value, cfCs.value);
} }
// //
getDatas2(cfJd.value, choose.value.person, cfCs.value); if (choose.value.person == 1) {
getDatas2(cfJd.value, "0", cfCs.value); //0
} else {
getDatas2(cfJd.value, choose.value.person - 1, cfCs.value);
}
// getDatas2(cfJd.value, choose.value.person, cfCs.value);
addCsChoose(); addCsChoose();
addCsUnChoose(); addCsUnChoose();
// if (choose.value.person == "") { // if (choose.value.person == "") {
@ -2483,7 +2485,12 @@ const addCsUnChoose = () => {
// }); // });
// getDataBqs(cfJd.value, cfCs.value); // getDataBqs(cfJd.value, cfCs.value);
getDataBq(cfJd.value, cfCs.value); getDataBq(cfJd.value, cfCs.value);
getDatas2(cfJd.value, choose.value.person, cfCs.value); if (choose.value.person == 1) {
getDatas2(cfJd.value, "0", cfCs.value); //0
} else {
getDatas2(cfJd.value, choose.value.person - 1, cfCs.value);
}
// getDatas2(cfJd.value, choose.value.person, cfCs.value);
// if ( // if (
// choose.value.person == "cjr" || // choose.value.person == "cjr" ||
// choose.value.person == "dibian" || // choose.value.person == "dibian" ||