| | |
| | | static propTpyes = { |
| | | menuType: PropTypes.any, // 三级菜单类型,HS需特殊处理 |
| | | tableId: PropTypes.string, // 列表Id |
| | | pageSize: PropTypes.any, // 每页数据 |
| | | dict: PropTypes.object, // 字典项 |
| | | config: PropTypes.object, // 页面配置 |
| | | MenuID: PropTypes.string, // 菜单Id |
| | |
| | | } |
| | | |
| | | UNSAFE_componentWillMount () { |
| | | const { menuType, config, memberLevel } = this.props |
| | | const { menuType, config, memberLevel, pageSize } = this.props |
| | | let columns = JSON.parse(JSON.stringify(this.props.columns)) |
| | | let lineMarks = [] |
| | | let _columns = [] |
| | |
| | | if (item.hidden === true || item.Hide === 'true') return |
| | | |
| | | if (_format && !Math.floor(Math.random() * radio)) { |
| | | item.format = true |
| | | item.blur = true |
| | | } |
| | | |
| | | if (item.marks) { |
| | |
| | | |
| | | this.setState({ |
| | | columns: _columns, |
| | | pageSize: pageSize ? pageSize : 10, |
| | | lineMarks: lineMarks, |
| | | colMap: colMap |
| | | }) |
| | |
| | | } |
| | | } |
| | | |
| | | if (item.format) { |
| | | if (item.blur) { |
| | | className = '' |
| | | content = md5(content) |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | if (item.format) { |
| | | if (item.blur) { |
| | | className = '' |
| | | content = md5(content) |
| | | } |
| | |
| | | |
| | | content = content ? (item.prefix || '') + content + (item.postfix || '') : '' |
| | | |
| | | if (item.format) { |
| | | if (item.blur) { |
| | | content = md5(content) |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | if (item.format) { |
| | | if (item.blur) { |
| | | content = md5(content) |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | if (item.format) { |
| | | if (item.blur) { |
| | | content = md5(content) |
| | | } |
| | | |
| | |
| | | content = (col.prefix || '') + record[col.field] + (col.postfix || '') |
| | | } |
| | | |
| | | if (item.format) { |
| | | if (item.blur) { |
| | | content = md5(content) |
| | | } |
| | | |