| | |
| | | direction: 'left' |
| | | }) |
| | | } |
| | | if (cell.exInterface) { |
| | | let url = '' |
| | | |
| | | try { |
| | | url = JSON.parse(cell.exInterface).url |
| | | } catch(e) { |
| | | url = '' |
| | | } |
| | | |
| | | if (url) { |
| | | tbs.push({ |
| | | label: url + ' (' + cell.label + ')', |
| | | color: 'orange', |
| | | id: Utils.getuuid(), |
| | | direction: 'left' |
| | | }) |
| | | } |
| | | } |
| | | if (cell.exProInterface) { |
| | | let url = '' |
| | | |
| | | try { |
| | | url = JSON.parse(cell.exProInterface).url |
| | | } catch(e) { |
| | | url = '' |
| | | } |
| | | |
| | | if (url) { |
| | | tbs.push({ |
| | | label: url + ' (' + cell.label + ')', |
| | | color: 'orange', |
| | | id: Utils.getuuid(), |
| | | direction: 'left' |
| | | }) |
| | | } |
| | | } |
| | | if (cell.callbackFunc) { |
| | | tbs.push({ |
| | | label: cell.callbackFunc + ' (' + cell.label + ')', |
| | |
| | | id: Utils.getuuid(), |
| | | direction: 'left' |
| | | }) |
| | | } |
| | | if (item.setting.exInterface) { |
| | | let url = '' |
| | | |
| | | try { |
| | | url = JSON.parse(item.setting.exInterface).url |
| | | } catch(e) { |
| | | url = '' |
| | | } |
| | | |
| | | if (url) { |
| | | tbs.push({ |
| | | label: url + ' (数据源)', |
| | | color: 'orange', |
| | | id: Utils.getuuid(), |
| | | direction: 'left' |
| | | }) |
| | | } |
| | | } |
| | | if (item.setting.exProInterface) { |
| | | let url = '' |
| | | |
| | | try { |
| | | url = JSON.parse(item.setting.exProInterface).url |
| | | } catch(e) { |
| | | url = '' |
| | | } |
| | | |
| | | if (url) { |
| | | tbs.push({ |
| | | label: url + ' (数据源)', |
| | | color: 'orange', |
| | | id: Utils.getuuid(), |
| | | direction: 'left' |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | </div> |
| | | <div className="footer"> |
| | | <Button key="cancel" onClick={() => { this.setState({ visible: false })}}>关闭</Button> |
| | | <span className="tip">注:点击表名可展开/收起菜单</span> |
| | | <span className="tip">注:点击表名(右侧)可展开/收起菜单,左侧橙色标注为接口或函数名。</span> |
| | | </div> |
| | | </Modal> |
| | | </div> |