| | |
| | | |
| | | import Api from '@/api' |
| | | import Utils from '@/utils/utils.js' |
| | | import options from '@/store/options.js' |
| | | |
| | | import './index.scss' |
| | | |
| | |
| | | class PageMessage extends Component { |
| | | static propTpyes = { |
| | | BID: PropTypes.any, // 父级Id,用于查询下拉选择项 |
| | | dict: PropTypes.object, // 字典 |
| | | } |
| | | |
| | | state = { |
| | |
| | | }) |
| | | } |
| | | |
| | | if (item.type === 'card' || (item.type === 'table' && item.subtype === 'tablecard')) { |
| | | if (item.type === 'card') { |
| | | item.subcards.forEach(card => { |
| | | card.elements && card.elements.forEach(cell => { |
| | | if (cell.eleType === 'button') { |
| | |
| | | } |
| | | }) |
| | | }) |
| | | } else if (item.type === 'table' && item.subtype === 'normaltable') { |
| | | } else if (item.type === 'table') { |
| | | item.cols.forEach(col => { |
| | | if (col.type !== 'action') return |
| | | col.elements && col.elements.forEach(cell => { |
| | |
| | | |
| | | |
| | | render() { |
| | | const { menu, dict } = this.props |
| | | const { menu } = this.props |
| | | const { debug, visible, data } = this.state |
| | | |
| | | return ( |
| | | <div className="page-message-wrap"> |
| | | {debug && options.sysType !== 'cloud' ? <Button |
| | | <div className={'page-message-wrap ' + (debug && window.GLOB.sysType !== 'cloud' ? 'exist' : '')}> |
| | | {debug && window.GLOB.sysType !== 'cloud' ? <Button |
| | | icon="copy" |
| | | shape="circle" |
| | | className="page-message" |
| | |
| | | visible={visible} |
| | | onCancel={() => this.setState({visible: false})} |
| | | footer={[ |
| | | <Button key="close" onClick={() => this.setState({visible: false})}>{dict['main.close']}</Button> |
| | | <Button key="close" onClick={() => this.setState({visible: false})}>关闭</Button> |
| | | ]} |
| | | destroyOnClose |
| | | > |