dianlixunjian
parent
8665f641b5
commit
7b560dcb21
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue