up
This commit is contained in:
@ -1310,6 +1310,12 @@ const getTownships = city => {
|
||||
};
|
||||
//村
|
||||
const getadministratives = city => {
|
||||
dd = {
|
||||
无冻害: [],
|
||||
轻度冻害: [],
|
||||
中度冻害: [],
|
||||
重度冻害: [],
|
||||
};
|
||||
getadministrative({ divisions: city }).then(res => {
|
||||
Township.brr = res.data;
|
||||
let arr = [...res.data];
|
||||
@ -1328,7 +1334,7 @@ const getadministratives = city => {
|
||||
}
|
||||
});
|
||||
Object.keys(dd).forEach(it => {
|
||||
const index = town.findIndex(a => a && a.type === it);
|
||||
const index = town.findIndex(a => a && a.type === it && a.area > 0);
|
||||
if (index > -1) {
|
||||
dd[it].push(1);
|
||||
} else {
|
||||
@ -2066,6 +2072,7 @@ function chartModes() {
|
||||
type: 'slider',
|
||||
width: '40%',
|
||||
top: '90%',
|
||||
zoomLock: true, //禁止拉伸
|
||||
start: 0,
|
||||
end: ends,
|
||||
showDataShadow: false,
|
||||
@ -2108,7 +2115,7 @@ function chartModes() {
|
||||
axisLabel: {
|
||||
fontSize: 12,
|
||||
interval: 0,
|
||||
rotate: 40,
|
||||
rotate: 0,
|
||||
},
|
||||
axisLine: {
|
||||
lineStyle: {
|
||||
|
Reference in New Issue
Block a user