zhufu 2024-11-24 15:56:33 +08:00
commit 73b3e54491
2 changed files with 7 additions and 3 deletions

View File

@ -241,7 +241,7 @@
let obj = JSON.parse(res.codeValue);
layerSettings.value = obj[0];
layerInfo.value = layerSettings.value.layerinfo;
layerCenterShow.value = true;
layerCenterShow.value = true;
let legend = layerSettings.value.legend[0];
for (const key in legend) {
legends.value.push({
@ -485,7 +485,7 @@
}
.legend {
width: 200px;
width: 220px;
padding: 10px;
position: absolute;
bottom: 20px;
@ -497,6 +497,7 @@
background-image: url('/statistical/left_statistical.png');
background-size: 100% 100%;
.legend-item {
width: 82px;
padding: 5px 0px;
font-size: 14px;
color: #666666;

View File

@ -57,7 +57,9 @@
subjectName.value = props.layerSettings.subjectname;
subjectTable.value = props.layerSettings.tablename;
Object.keys(props.layerSettings.legend[0]).forEach((item) => {
filters.value.push({ name: item });
if (item != '默认') {
filters.value.push({ name: item });
}
});
},
);
@ -110,6 +112,7 @@
},
]);
const showSearchResult = ref(false);
const showFilterOptions = ref(false);
const currentFilter = ref('全部');