| | |
| | | |
| | | const ComTableConfig = asyncLoadComponent(() => import('@/templates/comtableconfig')) |
| | | const ModalConfig = asyncLoadComponent(() => import('@/templates/modalconfig')) |
| | | const SubTable = asyncLoadComponent(() => import('@/templates/subtableconfig')) |
| | | |
| | | const { confirm } = Modal |
| | | const { TabPane } = Tabs |
| | | const { Search } = Input |
| | |
| | | } |
| | | |
| | | state = { |
| | | dict: (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS, |
| | | show: true, |
| | | thawmenulist: null, // 已冻结的二级菜单 |
| | | visible: null, |
| | | title: '', |
| | | type: '', |
| | | tabview: '', // 选择模板窗口(template)、基础表格配置(CommonTable) |
| | | tabview: '', // 选择模板窗口(template)、基础表格配置(CommonTable) |
| | | formlist: null, |
| | | editMenu: null, // 编辑菜单 |
| | | editAction: null, // 编辑按钮 |
| | | thawMvisible: false, // 解除冻结模态框 |
| | | editMenu: null, // 编辑菜单 |
| | | editAction: null, // 编辑按钮 |
| | | editTab: null, // 编辑标签 |
| | | thawMvisible: false, // 解除冻结模态框 |
| | | confirmLoading: false, // 提交中。。。 |
| | | dict: (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS, |
| | | selectTemp: '', // 选择模板 |
| | | selectTemp: '', // 选择模板 |
| | | usedTemplates: null, |
| | | menuConfig: '', |
| | | tempSearchKey: '', |
| | |
| | | document.getElementById('root').style.overflowY = 'unset' |
| | | } |
| | | |
| | | handleSubConfig = (item, originMenu, config) => { |
| | | if (item.OpenType === 'pop') { |
| | | item.pageParam = '' |
| | | if (config && config.type === 'Modal') { |
| | | item.pageParam = config |
| | | handleSubConfig = (item, originMenu, config, type) => { |
| | | if (type === 'button') { |
| | | if (item.OpenType === 'pop') { |
| | | item.pageParam = '' |
| | | if (config && config.type === 'Modal') { |
| | | item.pageParam = config |
| | | } |
| | | |
| | | this.setState({ |
| | | editMenu: originMenu, |
| | | editAction: item, |
| | | tabview: 'Modal' |
| | | }) |
| | | } |
| | | |
| | | this.setState({ |
| | | editMenu: originMenu, |
| | | editAction: item, |
| | | tabview: 'Modal' |
| | | }) |
| | | } else if (type === 'tab') { |
| | | console.log(item) |
| | | // if (item.type === 'SubTable') { |
| | | // this.setState({ |
| | | // editMenu: originMenu, |
| | | // editTab: item, |
| | | // tabview: 'SubTable' |
| | | // }) |
| | | // } |
| | | } |
| | | } |
| | | |
| | |
| | | handleConfig={this.handleConfig} |
| | | /> |
| | | } |
| | | {this.state.tabview === 'SubTable' && |
| | | <SubTable |
| | | menu={this.state.editMenu} |
| | | editTab={this.state.editTab} |
| | | handleConfig={this.handleConfig} |
| | | /> |
| | | } |
| | | {/* 图片预览 */} |
| | | <Preview cancel={this.cancelPrePicture} preview={this.state.preview} template={this.state.pretemplate} confirm={this.useTemplate}/> |
| | | {/* 解冻菜单模态框 */} |