import React, {Component} from 'react'
|
import PropTypes from 'prop-types'
|
import { is, fromJS } from 'immutable'
|
import { Card, Col, Row, Icon } from 'antd'
|
// import Api from '@/api'
|
import zhCN from '@/locales/zh-CN/role.js'
|
import enUS from '@/locales/en-US/role.js'
|
import './index.scss'
|
|
export default class RoleManage extends Component {
|
static propTpyes = {
|
MenuNo: PropTypes.string, // 菜单参数
|
MenuID: PropTypes.string // 菜单Id
|
}
|
|
state = {
|
dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
|
}
|
|
UNSAFE_componentWillMount () {
|
|
}
|
|
shouldComponentUpdate (nextProps, nextState) {
|
return !is(fromJS(this.props), fromJS(nextProps)) || !is(fromJS(this.state), fromJS(nextState))
|
}
|
|
render() {
|
return (
|
<div className="rolemanage">
|
<Row gutter={16}>
|
<Col span={6}>
|
<Card
|
title={<span className="role-title"><Icon type="bank" /> {this.state.dict['role.title']}</span>}
|
bordered={false}>
|
Card content
|
</Card>
|
</Col>
|
<Col span={18}>
|
<Card title="Card title" bordered={false}>
|
Card content
|
</Card>
|
</Col>
|
</Row>
|
</div>
|
)
|
}
|
}
|