deartibers
2 years ago
5 changed files with 73 additions and 41 deletions
Before Width: | Height: | Size: 789 B After Width: | Height: | Size: 19 KiB |
@ -1,34 +1,61 @@ |
|||
import React, { useEffect } from 'react'; |
|||
import { connect } from 'react-redux'; |
|||
import { Spin, Card } from '@douyinfe/semi-ui'; |
|||
import { Spin, Button } from '@douyinfe/semi-ui'; |
|||
import '../style.less' |
|||
|
|||
const Example = (props) => { |
|||
const { dispatch, actions, user, loading, socket } = props |
|||
const { dispatch, actions, user, loading, socket } = props |
|||
|
|||
useEffect(() => { |
|||
// dispatch(actions.example.getMembers(user.orgId)) |
|||
}, []) |
|||
useEffect(() => { |
|||
// dispatch(actions.example.getMembers(user.orgId)) |
|||
}, []) |
|||
|
|||
|
|||
return ( |
|||
<> |
|||
<div> |
|||
2222222222222 |
|||
</div> |
|||
</> |
|||
) |
|||
return ( |
|||
<> |
|||
<div style={{ background: '#FFFFFF', margin: '8px 12px', padding: '20px 20px 0px 20px' }}> |
|||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}> |
|||
<div style={{ display: 'flex', alignItems: 'center' }}> |
|||
<div style={{ width: 0, height: 20, borderLeft: '3px solid #005ABD', borderTop: '3px solid transparent', borderBottom: '3px solid transparent' }}></div> |
|||
<div style={{ fontFamily: "YouSheBiaoTiHei", fontSize: 24, color: '#101531', marginLeft: 8 }}>系统映射</div> |
|||
<div style={{ marginLeft: 6, fontSize: 12, color: '#969799', fontFamily: "DINExp", }}>ROLE ASSIGNMENT</div> |
|||
</div> |
|||
<div style={{marginRight:20}}> |
|||
<Button |
|||
theme="solid" |
|||
type="primary" |
|||
style={{ |
|||
width: 108, |
|||
height: 32, |
|||
borderRadius: 2, |
|||
marginLeft: 40 |
|||
}} |
|||
onClick={() => { |
|||
// setEditObj({}) |
|||
// setMemberEdit(false) |
|||
// setMemberModal(true); |
|||
}} |
|||
> |
|||
添加映射关系 |
|||
</Button> |
|||
</div> |
|||
</div> |
|||
<div style={{marginTop:20}}> |
|||
111 |
|||
</div> |
|||
</div> |
|||
</> |
|||
) |
|||
} |
|||
|
|||
function mapStateToProps (state) { |
|||
const { auth, global, members, webSocket } = state; |
|||
return { |
|||
// loading: members.isRequesting, |
|||
// user: auth.user, |
|||
// actions: global.actions, |
|||
// members: members.data, |
|||
// socket: webSocket.socket |
|||
}; |
|||
const { auth, global, members } = state; |
|||
return { |
|||
// loading: members.isRequesting, |
|||
user: auth.user, |
|||
actions: global.actions, |
|||
// members: members.data, |
|||
}; |
|||
} |
|||
|
|||
export default connect(mapStateToProps)(Example); |
|||
|
Loading…
Reference in new issue