| | |
| | | const StyleController = asyncComponent(() => import('@/menu/stylecontroller')) |
| | | const ReplaceField = asyncComponent(() => import('@/menu/replaceField')) |
| | | const Versions = asyncComponent(() => import('@/menu/versions')) |
| | | const Transfer = asyncComponent(() => import('@/menu/transfer')) |
| | | const Unattended = asyncComponent(() => import('@/templates/zshare/unattended')) |
| | | const UrlFieldComponent = asyncComponent(() => import('@/menu/urlfieldcomponent')) |
| | | const ModalController = asyncComponent(() => import('@/menu/modalconfig/controller')) |
| | |
| | | oriConfig: null, |
| | | config: null, |
| | | comloading: false, |
| | | settingshow: true, |
| | | settingshow: sessionStorage.getItem('settingshow') !== 'false', |
| | | view: null, |
| | | popConfig: null |
| | | } |
| | |
| | | } |
| | | }) |
| | | |
| | | if (!error && config.autoMatic && config.autoMatic.enable === 'true') { |
| | | let pass = false |
| | | config.components[0].action.forEach(item => { |
| | | if (item.uuid === config.autoMatic.action && (['pop', 'prompt', 'exec'].includes(item.OpenType) || (item.OpenType === 'funcbutton' && item.funcType === 'print'))) { |
| | | pass = true |
| | | } |
| | | }) |
| | | if (!pass) { |
| | | error = '无人值守设置无效!' |
| | | } |
| | | } |
| | | |
| | | if (show && error) { |
| | | notification.warning({ |
| | | top: 92, |
| | |
| | | |
| | | changeSetting = () => { |
| | | this.setState({settingshow: !this.state.settingshow}) |
| | | sessionStorage.setItem('settingshow', '' + !this.state.settingshow) |
| | | } |
| | | |
| | | render () { |
| | |
| | | <div style={{paddingLeft: '15px'}}> {config && config.MenuName} </div> |
| | | } bordered={false} extra={ |
| | | <div> |
| | | {config ? <Transfer config={config}/> : null} |
| | | {config ? <Unattended config={config} updateConfig={this.updateConfig}/> : null} |
| | | <Versions MenuId={MenuId} open_edition={config ? config.open_edition : ''}/> |
| | | <TableNodes config={config} /> |