| | |
| | | import Api from '@/api' |
| | | import Utils from '@/utils/utils.js' |
| | | import { getTables } from '@/utils/utils-custom.js' |
| | | // import MKEmitter from '@/utils/events.js' |
| | | import './index.scss' |
| | | // import './index.scss' |
| | | |
| | | const { confirm } = Modal |
| | | |
| | |
| | | } |
| | | } |
| | | }) |
| | | tab.components[0].cols = tab.components[0].cols.filter(col => !(col.field && col.Hide === 'true')) |
| | | tab.components[0].cols.forEach(col => { |
| | | if (col.type !== 'action') return |
| | | if (col.type !== 'custom') return |
| | | col.elements.forEach(btn => { |
| | | if (btn.OpenType === 'popview' && btn.config) { |
| | | btn.config.Template = 'CustomPage' |
| | |
| | | } |
| | | } |
| | | }) |
| | | item.cols = item.cols.filter(col => !(col.field && col.Hide === 'true')) |
| | | item.cols.forEach(col => { |
| | | if (col.type !== 'action') return |
| | | if (col.type !== 'custom') return |
| | | col.elements.forEach(btn => { |
| | | if (btn.OpenType === 'popview' && btn.config) { |
| | | btn.config.Template = 'CustomPage' |
| | |
| | | Api.getSystemConfig(param).then(res => { |
| | | _resolve() |
| | | if (!res.status) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: res.message, |
| | | duration: 5 |
| | | Modal.warning({ |
| | | title: res.message, |
| | | okText: '知道了' |
| | | }) |
| | | return |
| | | } |
| | | |
| | | localStorage.setItem('menuUpdate', new Date().getTime()) |
| | | localStorage.setItem('menuUpdate', new Date().getTime() + ',' + _config.uuid) |
| | | notification.success({ |
| | | top: 92, |
| | | message: '切换成功。', |
| | |
| | | |
| | | render() { |
| | | return ( |
| | | <div className="mk-replace-field" style={{display: 'inline-block'}}> |
| | | <Button className="mk-border-green" icon="retweet" onClick={this.trigger}>模板切换</Button> |
| | | </div> |
| | | <Button className="mk-border-green" icon="retweet" onClick={this.trigger}>模板切换</Button> |
| | | ) |
| | | } |
| | | } |