From 5c8860f3cd8921e7eb0da7749628e9dc669b3203 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 17 三月 2020 10:19:16 +0800 Subject: [PATCH] 2020-03-17 --- src/templates/formtabconfig/index.jsx | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/templates/formtabconfig/index.jsx b/src/templates/formtabconfig/index.jsx index 7b93ee2..8e8a69a 100644 --- a/src/templates/formtabconfig/index.jsx +++ b/src/templates/formtabconfig/index.jsx @@ -426,10 +426,21 @@ }) } + let roleList = [] + if (menu.roleList && menu.roleList.length > 0) { + roleList = menu.roleList.map(role => { + return { + uuid: role.uuid, + field: role.value, + label: role.text + } + }) + } + this.setState({ modaltype: 'search', card: card, - formlist: getModalForm(card, _inputfields, _linkableFields, _linksupFields) + formlist: getModalForm(card, _inputfields, _linkableFields, _linksupFields, false, roleList) }) } -- Gitblit v1.8.0