This commit is contained in:
姚宇浩 2024-08-02 10:55:50 +08:00
parent b5dc31baab
commit 3766c9b197
2 changed files with 109 additions and 23 deletions

View File

@ -75,6 +75,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-else v-else
:width="item.width"
:property="item.property" :property="item.property"
:label="item.label" :label="item.label"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"

View File

@ -954,13 +954,13 @@ const tableType = reactive({
property: "xm", property: "xm",
}, },
{ {
label: "证件类型", label: "手机号",
property: "szdw", property: "phone",
},
{
label: "证件号码",
property: "zy",
}, },
// {
// label: "",
// property: "zy",
// },
{ {
label: "政治面貌", label: "政治面貌",
property: "zzmm", property: "zzmm",
@ -980,13 +980,13 @@ const tableType = reactive({
{ {
label: "户口登记地", label: "户口登记地",
property: "hkdjd", property: "hkdjd",
width: "200px",
}, },
], ],
data: [ data: [
{ {
xm: "张三", xm: "张三",
szdw: "身份证", phone: "123456789012345678",
zy: "123456789012345678",
zzmm: "党员", zzmm: "党员",
jzzt: "未居住", jzzt: "未居住",
mz: "汉族", mz: "汉族",
@ -1004,7 +1004,7 @@ const pagination = reactive({
//------------------------------------------------ //------------------------------------------------
// //
const initMap = () => { const initMap = () => {
map = new BMapGL.Map("map", { minZoom: 11, maxZoom: 20 }); map = new BMapGL.Map("map", { minZoom: 8, maxZoom: 20 });
map.setMapType(BMAP_SATELLITE_MAP); map.setMapType(BMAP_SATELLITE_MAP);
map.enableScrollWheelZoom(true); map.enableScrollWheelZoom(true);
goMapCenter([119.178783, 29.034583], 11); goMapCenter([119.178783, 29.034583], 11);
@ -1400,6 +1400,16 @@ const getDatas2 = async (e, i, cs) => {
} }
} }
}); });
if (
i == "cjr" ||
i == "dibian" ||
i == "db" ||
i == "gxy" ||
i == "tnb" ||
i == "tyjr" ||
i == "kjer"
) {
} else {
if (choose.value.person == "") { if (choose.value.person == "") {
cs_dd_arr.value.map((item, index) => { cs_dd_arr.value.map((item, index) => {
DGcreateCs(item, index); DGcreateCs(item, index);
@ -1409,6 +1419,7 @@ const getDatas2 = async (e, i, cs) => {
DGcreateCs2(item, index); DGcreateCs2(item, index);
}); });
} }
}
}; };
// //
// //
@ -1532,6 +1543,80 @@ const getDataBqs2 = async (jd, cs, bq, f = true) => {
} }
}); });
}; };
//
const getDataBqs3 = async (jd, cs, bq) => {
//fchangeRs2
let data = {};
let vv = 0;
if (cs == "" && jd == "") {
data = {
tsbq: bq,
};
vv = 1;
} else if (cs == "") {
data = {
xzjd: jd,
tsbq: bq,
};
vv = 2;
} else {
data = {
xzjd: jd,
tsbq: bq,
csq: cs,
};
vv = 3;
}
await http.get(`/api/ggfwyth/ysyzt/getTsbqByXzjdOrCsq`, data).then((res) => {
if (res.code == 200) {
// if (cfJd.value != "") {
xkzCenter.map((item) => {
item.numbers = 0;
res.data.map((items) => {
if (items.csq == item.name) {
item.numbers = items.rs;
}
});
});
// }
// cs_name_arr.value.forEach((item, index) => {
// map.removeOverlay(cs_name_arr.value[index]);
// });
// cs_number_name_arr.value.forEach((item, index) => {
// map.removeOverlay(cs_number_name_arr.value[index]);
// });
// cs_dd_arr.value.forEach((item, index) => {
// map.removeOverlay(cs_dd_arr.value[index]);
// });
// if (title_jd.value == "") {
// } else {
// if (sfdd.value) {
cs_dd_arr.value = [...xuanzhongCs.value];
if (choose.value.person == "") {
// cs_dd_arr.value.forEach((item, index) => {
// map.removeOverlay(cs_dd_arr.value[index]);
// });
cs_dd_arr.value.map((item, index) => {
DGcreateCs(item, index);
});
} else {
// cs_dd_arr.value = [...xuanzhongCs.value];
cs_dd_arr.value.map((item, index) => {
DGcreateCs2(item, index);
});
}
// }
// else {
// if (choose.value.person == "") {
// addCs();
// } else {
// addCs2();
// }
// }
// }
}
});
};
// //
const getDataBqJD = async (bq) => { const getDataBqJD = async (bq) => {
let data = {}; let data = {};
@ -2183,7 +2268,7 @@ const addPolygonCountyCs = () => {
map.addOverlay(cs_qk_arr.value[index]); map.addOverlay(cs_qk_arr.value[index]);
cs_qk_arr.value[index].addEventListener("click", () => { cs_qk_arr.value[index].addEventListener("click", () => {
// console.log("", item.name); // console.log("", item.name);
cs_dd_arr.value = [];
cfCs.value = item.name; cfCs.value = item.name;
title_cs.value = item.name; title_cs.value = item.name;
sfdd.value = true; sfdd.value = true;
@ -2221,7 +2306,7 @@ const addPolygonCountyCs = () => {
choose.value.person == "tyjr" || choose.value.person == "tyjr" ||
choose.value.person == "kjer" choose.value.person == "kjer"
) { ) {
getDataBqs2(cfJd.value, cfCs.value, choose.value.person, false); getDataBqs3(cfJd.value, cfCs.value, choose.value.person);
} else { } else {
// getDataBqs(cfJd.value, cfCs.value); // getDataBqs(cfJd.value, cfCs.value);
} }
@ -2314,9 +2399,9 @@ const addCsUnChoose = () => {
unChooseList.value.push(itemm); unChooseList.value.push(itemm);
} }
}); });
cs_un_choose_arr.value.forEach((item, index) => { // cs_un_choose_arr.value.forEach((item, index) => {
map.removeOverlay(cs_qk_arr.value[index]); // map.removeOverlay(cs_qk_arr.value[index]);
}); // });
// 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); getDatas2(cfJd.value, choose.value.person, cfCs.value);
@ -2345,7 +2430,7 @@ const addCsUnChoose = () => {
choose.value.person == "tyjr" || choose.value.person == "tyjr" ||
choose.value.person == "kjer" choose.value.person == "kjer"
) { ) {
getDataBqs2(cfJd.value, cfCs.value, choose.value.person, false); getDataBqs3(cfJd.value, cfCs.value, choose.value.person);
} }
// if (choose.value.person == "") { // if (choose.value.person == "") {
// cs_dd_arr.value.map((item, index) => { // cs_dd_arr.value.map((item, index) => {
@ -2665,7 +2750,7 @@ const reset_font = () => {
} }
}; };
onMounted(() => { onMounted(() => {
// tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
reset_font(); reset_font();
initMap(); initMap();
getData(); getData();