From 82222027c089201c8a9204783e1523681a4c1ca4 Mon Sep 17 00:00:00 2001 From: ival <610568032@qq.com> Date: Wed, 21 Aug 2019 09:18:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=9D=90=E6=A0=87=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/echarts/permission.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/echarts/permission.vue b/src/views/dashboard/echarts/permission.vue index c2c7898ce..ba3886fa3 100644 --- a/src/views/dashboard/echarts/permission.vue +++ b/src/views/dashboard/echarts/permission.vue @@ -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);