This commit is contained in:
duanxiaohai 2024-10-10 14:10:30 +08:00
commit 00517d3a55
2 changed files with 47 additions and 1 deletions

View File

@ -352,7 +352,7 @@
:class=" :class="
item.label == '学校' || item.label == '班级' ? 'widu' : '' item.label == '学校' || item.label == '班级' ? 'widu' : ''
" "
v-if="rightList?.length != 0" v-if="rightList?.length != 0 && item.show==true"
> >
{{ item.label }} {{ item.label }}
</div> </div>
@ -912,6 +912,21 @@ const getTable = (url, csh) => {
} else { } else {
// //
rightList.value = tableType.data[0]; rightList.value = tableType.data[0];
for(const key in tableType.data[0]){
if(tableType.data[0][key] == null){
tableType.columns.forEach((item) => {
if(item.property == key){
item.show=false
}
})
}else{
tableType.columns.forEach((item) => {
if(item.property == key){
item.show=true
}
})
}
}
rightTypeShow.value = false; rightTypeShow.value = false;
// if (res.data[0].gzsj === null) { // if (res.data[0].gzsj === null) {
// rightTypeShow.value = true; // rightTypeShow.value = true;

View File

@ -1818,6 +1818,29 @@ const clear = () => {
xkzCenter.length = 0; xkzCenter.length = 0;
xkzDk.length = 0; xkzDk.length = 0;
}; };
//()
const clearPerson=()=>{
if(choose.value.person){
choose.value.person='';
jdm_number_arr.value.forEach((item, index) => {
map.removeOverlay(jdm_number_arr.value[index]);
});
addJd();
}
}
//
const clearyaosu=()=>{
if(yaosuList.value.length!=0){
yaosuList.value.forEach((name,index)=>{
yaosuIcon.value[name].sj.forEach((item, index) => {
map.removeOverlay(yaosuIcon.value[name].sj[index].overlay);
});
})
yaosuList.value.length=0;
}
}
// //
const goMapCenter = (point, zoom) => { const goMapCenter = (point, zoom) => {
map.centerAndZoom(new BMapGL.Point(point[0], point[1]), zoom); map.centerAndZoom(new BMapGL.Point(point[0], point[1]), zoom);
@ -1898,6 +1921,7 @@ const buten = async (item) => {
} }
} else { } else {
loadingss.value = true; loadingss.value = true;
clearyaosu();
await getData(item.age); await getData(item.age);
await getDatasL(cfJd.value, item.age); await getDatasL(cfJd.value, item.age);
loadingss.value = false; loadingss.value = false;
@ -1938,6 +1962,7 @@ const buten2 = async (item) => {
} }
} else { } else {
loadingss.value = true; loadingss.value = true;
clearyaosu();
await getDataBqs(cfJd.value, cfCs.value, item.id); await getDataBqs(cfJd.value, cfCs.value, item.id);
loadingss.value = false; loadingss.value = false;
} }
@ -2690,6 +2715,8 @@ const changeys = (name) => {
map.removeOverlay(yaosuIcon.value[name].sj[index].overlay); map.removeOverlay(yaosuIcon.value[name].sj[index].overlay);
}); });
} else { } else {
csh();
clearPerson();
yaosuList.value.push(name); yaosuList.value.push(name);
let url; let url;
let img; let img;
@ -3097,6 +3124,7 @@ const changeFwq = async (id, name, names) => {
// circle = null; // circle = null;
} else { } else {
csh(); csh();
clearPerson();
await loadCs(name); await loadCs(name);
await getServiceCircle(names, name); await getServiceCircle(names, name);
if (fwqList.value.length !== 0) { if (fwqList.value.length !== 0) {
@ -3662,6 +3690,9 @@ const addPolygonCounty = () => {
// townName.value = item.name; // townName.value = item.name;
if (item.name == cfJd.value) { if (item.name == cfJd.value) {
} else { } else {
if(yaosuList.value.length!=0){
return
}
loadingss.value = true; loadingss.value = true;
clear(); clear();
xkzDk.length = 0; xkzDk.length = 0;