From cf5c0a6c03fd53be980cd054a48067eed4264162 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 14 Jan 2022 14:43:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E6=88=B7=E7=BB=84=E5=92=8C?= =?UTF-8?q?=E6=9D=83=E9=99=90):=20=E6=9D=83=E9=99=90=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/system/group/EditPermission.vue | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/frontend/src/business/components/settings/system/group/EditPermission.vue b/frontend/src/business/components/settings/system/group/EditPermission.vue index 6614f886c2..70be92a299 100644 --- a/frontend/src/business/components/settings/system/group/EditPermission.vue +++ b/frontend/src/business/components/settings/system/group/EditPermission.vue @@ -11,7 +11,6 @@ border :data="tableData" class="permission-table" - :row-class-name="handleLicenseResource" style="width: 100%"> = 0; i--) { + if (this.tableData[i].resource.license) { + this.tableData.splice(i, 1); + } else { + for (let j = this.tableData[i].permissions.length - 1; j >= 0; j--) { + if (this.tableData[i].permissions[j].license) { + this.tableData[i].permissions.splice(j, 1); + } + } + } + } + }, _getUniteMenu() { let menu = ['TRACK', 'API', 'PERFORMANCE', 'REPORT']; for (let i = 0; i < this.tableData.length; i++) { @@ -158,21 +175,11 @@ export default { }, handleSelectAll(check, permissions) { permissions.map(p => p.checked = check); - }, - handleLicenseResource(row) { - if (!row.row.resource.license) { - return; - } - if (!hasLicense()) { - return 'hidden-row'; - } } } }