dianlixunjian
刘妍 2024-11-24 14:42:17 +08:00
parent 8665f641b5
commit 7b560dcb21
2 changed files with 8 additions and 6 deletions

View File

@ -224,7 +224,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({
@ -425,7 +425,7 @@
}
.legend {
width: 200px;
width: 220px;
padding: 10px;
position: absolute;
bottom: 20px;
@ -437,6 +437,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

@ -114,10 +114,11 @@
(val) => {
console.log(val);
for (let key in val.legend[0]) {
console.log(key);
filters.value.push({
name: key,
});
if (key != '默认') {
filters.value.push({
name: key,
});
}
}
},
);