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 React, { useEffect } from 'react'; |
||||
import { connect } from 'react-redux'; |
import { connect } from 'react-redux'; |
||||
import { Spin, Card } from '@douyinfe/semi-ui'; |
import { Spin, Button } from '@douyinfe/semi-ui'; |
||||
import '../style.less' |
import '../style.less' |
||||
|
|
||||
const Example = (props) => { |
const Example = (props) => { |
||||
const { dispatch, actions, user, loading, socket } = props |
const { dispatch, actions, user, loading, socket } = props |
||||
|
|
||||
useEffect(() => { |
useEffect(() => { |
||||
// dispatch(actions.example.getMembers(user.orgId)) |
// dispatch(actions.example.getMembers(user.orgId)) |
||||
}, []) |
}, []) |
||||
|
|
||||
|
|
||||
return ( |
return ( |
||||
<> |
<> |
||||
<div> |
<div style={{ background: '#FFFFFF', margin: '8px 12px', padding: '20px 20px 0px 20px' }}> |
||||
2222222222222 |
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}> |
||||
</div> |
<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) { |
function mapStateToProps (state) { |
||||
const { auth, global, members, webSocket } = state; |
const { auth, global, members } = state; |
||||
return { |
return { |
||||
// loading: members.isRequesting, |
// loading: members.isRequesting, |
||||
// user: auth.user, |
user: auth.user, |
||||
// actions: global.actions, |
actions: global.actions, |
||||
// members: members.data, |
// members: members.data, |
||||
// socket: webSocket.socket |
}; |
||||
}; |
|
||||
} |
} |
||||
|
|
||||
export default connect(mapStateToProps)(Example); |
export default connect(mapStateToProps)(Example); |
||||
|
Loading…
Reference in new issue