调整坐标布局

This commit is contained in:
ival 2019-08-21 09:18:52 +08:00
parent 73d5b4c4fa
commit 82222027c0

View File

@ -42,7 +42,7 @@ export default {
},
grid: [{
top: '17%',
width: '50%',
width: '45%',
bottom: '5%',
left: 50,
containLabel: true
@ -138,7 +138,11 @@ export default {
};
(this.permissionList.filter(elem => { return elem.mapName == mapName; })|| []).forEach(elem => {
permissionMap[`${elem.mapProductName}-${permissionDict[elem.type]}`] = elem.remains;
if (elem.mapProductName == Object.keys(permissionMap)[Object.keys(permissionMap).length -1]) {
permissionMap[`${elem.mapProductName}`] = elem.remains;
} else {
permissionMap[`${elem.mapProductName}-${permissionDict[elem.type]}`] = elem.remains;
}
});
const keys = Object.keys(permissionMap);