| | |
| | | }) |
| | | } |
| | | |
| | | if (config.Template === 'BaseTable') { |
| | | config.components.forEach(item => { |
| | | if (item.type === 'tabs') { |
| | | item.subtabs.forEach(tab => { |
| | | if (tab.components[0].$tables) { |
| | | ptbs.push(...tab.components[0].$tables) |
| | | tab.components[0].$tables.forEach(tb => { |
| | | tbs.push({ |
| | | label: tab.label, |
| | | table: tb, |
| | | color: '#5AD8A6', |
| | | id: Utils.getuuid(), |
| | | direction: 'left' |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | | } else if (item.$tables) { |
| | | ptbs.push(...item.$tables) |
| | | item.$tables.forEach(tb => { |
| | | tbs.push({ |
| | | label: '主表', |
| | | table: tb, |
| | | color: '#5AD8A6', |
| | | id: Utils.getuuid(), |
| | | direction: 'left' |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | traversal(config.components) |
| | | } |
| | | |
| | | return {tbs, ptbs} |
| | | } |
| | |
| | | delete _param.type |
| | | _param = window.btoa(window.encodeURIComponent(JSON.stringify(_param))) |
| | | window.open(`#/menudesign/${_param}`) |
| | | } else if (menu.param.MenuType === 'BaseTable') { |
| | | let _param = {...menu.param} |
| | | delete _param.type |
| | | delete _param.MenuType |
| | | _param = window.btoa(window.encodeURIComponent(JSON.stringify(_param))) |
| | | window.open(`#/tabledesign/${_param}`) |
| | | } |
| | | } else if (menu.param.type === 'app') { |
| | | if (menu.param.typename !== 'pc') { |