| | |
| | | visible: false |
| | | } |
| | | |
| | | resetconfig = (item) => { |
| | | let appType = sessionStorage.getItem('appType') |
| | | |
| | | resetconfig = (item, appType) => { |
| | | if (item.type === 'tabs') { |
| | | item.uuid = MenuUtils.getuuid() |
| | | item.setting.name = item.setting.name + MenuUtils.getSignName() |
| | |
| | | } |
| | | |
| | | tab.components = tab.components.map(cell => { |
| | | cell = this.resetconfig(cell) |
| | | cell = this.resetconfig(cell, appType) |
| | | return cell |
| | | }) |
| | | }) |
| | |
| | | item.name = item.setting.name |
| | | |
| | | item.components = item.components.map(cell => { |
| | | cell = MenuUtils.resetComponentConfig(cell) |
| | | cell = MenuUtils.resetComponentConfig(cell, appType) |
| | | return cell |
| | | }) |
| | | } else { |
| | | item = MenuUtils.resetComponentConfig(item) |
| | | item = MenuUtils.resetComponentConfig(item, appType) |
| | | } |
| | | |
| | | return item |
| | |
| | | |
| | | pasteSubmit = () => { |
| | | let appType = sessionStorage.getItem('appType') |
| | | let options = ['tabs', 'timeline', 'datacard', 'propcard', 'mainsearch', 'simpleform', 'stepform', 'tabform', 'balcony', 'group', 'normaltable', 'tablecard', 'line', 'bar', 'pie', 'scatter', 'iframe', 'sandbox'] |
| | | let options = ['tabs', 'timeline', 'datacard', 'propcard', 'simpleform', 'stepform', 'tabform', 'balcony', 'group', 'normaltable', 'tablecard', 'line', 'bar', 'editor', 'pie', 'scatter', 'iframe', 'sandbox'] |
| | | |
| | | if (appType === 'mob') { |
| | | if (sessionStorage.getItem('editMenuType') !== 'popview') { |
| | | options.push('menubar', 'topbar') |
| | | options.push('menubar', 'topbar', 'singleSearch') |
| | | } else { |
| | | options.push('menubar') |
| | | options.push('menubar', 'singleSearch') |
| | | } |
| | | } else { |
| | | options.push('editable', 'antvG6', 'tree', 'dashboard', 'chart') |
| | | options.push('editable', 'mainsearch', 'antvG6', 'tree', 'dashboard', 'chart') |
| | | } |
| | | |
| | | this.pasteFormRef.handleConfirm().then(res => { |
| | |
| | | return |
| | | } |
| | | |
| | | res = this.resetconfig(res) |
| | | res = this.resetconfig(res, appType) |
| | | |
| | | // delete res.copyType |
| | | |