| | |
| | | }, |
| | | { |
| | | title: '修改时间', dataIndex: 'modifydate', key: 'modifydate', align: 'center' |
| | | } |
| | | }, |
| | | { |
| | | title: '操作', |
| | | key: 'action', |
| | | align: 'center', |
| | | render: (text, record) => ( |
| | | <Button type="link" onClick={() => this.jumpApp(record)} style={{color: '#1890ff', marginLeft: '5px'}}>查看</Button> |
| | | ), |
| | | }, |
| | | ] |
| | | } |
| | | |
| | |
| | | this.getAppViewList() |
| | | } |
| | | |
| | | jumpApp = (item) => { |
| | | const { app } = this.props |
| | | |
| | | let route = 'mobdesign' |
| | | if (app.typename === 'pc') { |
| | | route = 'pcdesign' |
| | | } |
| | | |
| | | if (item.menus_rolelist) { |
| | | item.type = 'view' |
| | | try { |
| | | let pageParam = JSON.parse(window.decodeURIComponent(window.atob(item.menus_rolelist))) |
| | | if (pageParam.type === 'navbar') { |
| | | item.type = 'navbar' |
| | | } |
| | | } catch(e) { |
| | | |
| | | } |
| | | } |
| | | |
| | | if (item.type === 'navbar') { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '导航栏不可单独打开,请在含有导航栏的页面中查看。', |
| | | duration: 5 |
| | | }) |
| | | return |
| | | } |
| | | |
| | | window.open(window.location.href.replace(/#.+/ig, `#/${route}/${window.btoa(window.encodeURIComponent(JSON.stringify({...app, MenuID: item.MenuID, type: 'app'})))}`)) |
| | | } |
| | | |
| | | getAppViewList = () => { |
| | | const { app } = this.props |
| | | |