| | |
| | | actionRef={actionRef} |
| | | setSearchParam={setSearchParam} |
| | | />, |
| | | render: (_, record) => { |
| | | return ( |
| | | <a |
| | | onClick={() => { |
| | | Http.doGetPromise('/api/role/scope/list', { roleId: record.id }, (res) => { |
| | | if (res.data) { |
| | | setMenuIds(res.data); |
| | | } |
| | | setScopeModalVisible(true); |
| | | setCurrentRow(record); |
| | | }); |
| | | }} |
| | | > |
| | | {_} |
| | | </a> |
| | | ); |
| | | }, |
| | | }, |
| | | { |
| | | title: '标识', |
| | |
| | | > |
| | | 编辑 |
| | | </Button>, |
| | | <Button |
| | | type="link" |
| | | key="scope" |
| | | onClick={() => { |
| | | Http.doGetPromise('/api/role/scope/list', { roleId: record.id }, (res) => { |
| | | if (res.data) { |
| | | setMenuIds(res.data); |
| | | } |
| | | setScopeModalVisible(true); |
| | | setCurrentRow(record); |
| | | }); |
| | | }} |
| | | > |
| | | 分配权限 |
| | | </Button>, |
| | | <Button |
| | | type="link" |
| | | key="scope" |
| | | onClick={() => { |
| | | Http.doGetPromise('/api/role/scope/list', { roleId: record.id }, (res) => { |
| | | if (res.data) { |
| | | setMenuIds(res.data); |
| | | } |
| | | setScopeModalVisible(true); |
| | | setCurrentRow(record); |
| | | }); |
| | | }} |
| | | > |
| | | 分配权限 |
| | | </Button>, |
| | | <Button |
| | | type="link" |
| | | danger |