| | |
| | | <Space> |
| | | { |
| | | record.roleId != 1 && |
| | | // <Access accessible={access.settings_role_edit}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData(record); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | // </Access> |
| | | <Access accessible={access['/system_setting/role_management/edit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData(record); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | </Access> |
| | | } |
| | | { |
| | | record.roleId != 1 && |
| | | // <Access accessible={access.settings_role_detele}> |
| | | <Access accessible={access['/system_setting/role_management/del']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | |
| | | showDelConfirm(async () => { |
| | | let status = await sendRequest(del, record.id) |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | }, '确认删除所选信息吗?'); |
| | | }} |
| | | > |
| | | 删除 |
| | | </Button> |
| | | </Access> |
| | | } |
| | | <Access accessible={access['/system_setting/role_management/detail'] || false}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | |
| | | showDelConfirm(async () => { |
| | | let status = await sendRequest(del, record.id) |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | }, '确认删除所选信息吗?'); |
| | | addViewRef.current.refreshData(record, true); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 删除 |
| | | 查看详情 |
| | | </Button> |
| | | // </Access> |
| | | } |
| | | {/* <Access accessible={access.settings_role_detail}> */} |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData(record, true); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 查看详情 |
| | | </Button> |
| | | {/* </Access> */} |
| | | </Access> |
| | | </Space > |
| | | ); |
| | | }, |
| | |
| | | }} |
| | | request={(params) => buildProTableDataSource(getList, params)} |
| | | toolBarRender={(action, selectRows) => [ |
| | | // <Access accessible={access.settings_role_add}> |
| | | <Space> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData({}); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 添加 |
| | | </Button> |
| | | </Space> |
| | | // </Access> |
| | | <Access accessible={access['/system_setting/role_management/add']}> |
| | | <Space> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData({}); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 添加 |
| | | </Button> |
| | | </Space> |
| | | </Access> |
| | | ]} |
| | | /> |
| | | <AddAndEdit |