From 5232d34f026f72eb90a5ba6fff33d30cf9d961aa Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 25 十二月 2020 19:11:07 +0800 Subject: [PATCH] 2020-12-25 --- src/tabviews/custom/index.jsx | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index 89ed828..57a77d4 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -242,6 +242,8 @@ if (item.action && item.action.length > 0) { item.action = item.action.filter(cell => { cell.logLabel = item.name + '-' + cell.label + cell.ContainerId = this.state.ContainerId + return permAction[cell.uuid] }) } @@ -258,15 +260,18 @@ if (cell.eleType === 'button') { cell.logLabel = item.name + '-' + cell.label cell.Ot = 'requiredSgl' + cell.ContainerId = this.state.ContainerId } else if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height && _hasheight) { cell.innerHeight = 'auto' } + return cell.eleType !== 'button' || permAction[cell.uuid] }) card.backElements = card.backElements.filter(cell => { if (cell.eleType === 'button') { cell.logLabel = item.name + '-' + cell.label cell.Ot = 'requiredSgl' + cell.ContainerId = this.state.ContainerId } else if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height && _hasheight) { cell.innerHeight = 'auto' } @@ -280,6 +285,7 @@ if (cell.eleType === 'button') { cell.logLabel = item.name + '-' + cell.label cell.Ot = 'requiredSgl' + cell.ContainerId = this.state.ContainerId } else if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height && _hasheight) { cell.innerHeight = 'auto' } @@ -292,6 +298,7 @@ col.elements = col.elements.filter(cell => { cell.logLabel = item.name + '-' + cell.label cell.Ot = 'requiredSgl' + cell.ContainerId = this.state.ContainerId return permAction[cell.uuid] }) return col.elements.length !== 0 -- Gitblit v1.8.0