| | |
| | | const [searchParam, setSearchParam] = useState({}); |
| | | |
| | | const [scopeModalVisible, setScopeModalVisible] = useState(false); |
| | | const [menuIds, setMenuIds] = useState([]); |
| | | |
| | | useEffect(() => { |
| | | |
| | |
| | | type="link" |
| | | key="scope" |
| | | onClick={() => { |
| | | setScopeModalVisible(true); |
| | | setCurrentRow(record); |
| | | Http.doGetPromise('/api/role/scope/list', { roleId: record.id }, (res) => { |
| | | if (res.data) { |
| | | setMenuIds(res.data); |
| | | } |
| | | setScopeModalVisible(true); |
| | | setCurrentRow(record); |
| | | }); |
| | | }} |
| | | > |
| | | 分配权限 |
| | |
| | | <Scope |
| | | open={scopeModalVisible} |
| | | values={currentRow || {}} |
| | | originMenuIds={menuIds} |
| | | onCancel={ |
| | | () => { |
| | | setScopeModalVisible(false); |