| @@ -19,7 +19,7 @@ const Settings: ProLayoutProps & { | |||||
| title: '智能软件开发平台', | title: '智能软件开发平台', | ||||
| pwa: true, | pwa: true, | ||||
| logo: '/assets/images/left-top-logo.png', | logo: '/assets/images/left-top-logo.png', | ||||
| iconfontUrl: '//at.alicdn.com/t/c/font_4511326_2511riex401.js', | |||||
| iconfontUrl: '//at.alicdn.com/t/c/font_4511326_1cmi0j3dj1x.js', | |||||
| token: { | token: { | ||||
| // 参见ts声明,demo 见文档,通过token 修改样式 | // 参见ts声明,demo 见文档,通过token 修改样式 | ||||
| //https://procomponents.ant.design/components/layout#%E9%80%9A%E8%BF%87-token-%E4%BF%AE%E6%94%B9%E6%A0%B7%E5%BC%8F | //https://procomponents.ant.design/components/layout#%E9%80%9A%E8%BF%87-token-%E4%BF%AE%E6%94%B9%E6%A0%B7%E5%BC%8F | ||||
| @@ -68,32 +68,33 @@ export default [ | |||||
| routes: [ | routes: [ | ||||
| { | { | ||||
| name: '流水线', | name: '流水线', | ||||
| path: '', | |||||
| path: '/pipeline/pipelineText', | |||||
| component: './Pipeline/index', | component: './Pipeline/index', | ||||
| }, | }, | ||||
| { | { | ||||
| name: '训练', | name: '训练', | ||||
| path: 'pytorchtext/:id/:name', | |||||
| path: '/pipeline/pytorchtext/:id/:name', | |||||
| component: './Pipeline/editPipeline/index', | component: './Pipeline/editPipeline/index', | ||||
| }, | }, | ||||
| ], | |||||
| }, | |||||
| { | |||||
| name: 'experiment', | |||||
| path: '/experiment', | |||||
| routes: [ | |||||
| { | { | ||||
| name: '实验', | name: '实验', | ||||
| path: '', | |||||
| path: '/pipeline/experimentText', | |||||
| component: './Experiment/index', | component: './Experiment/index', | ||||
| }, | }, | ||||
| { | { | ||||
| name: '实验训练', | name: '实验训练', | ||||
| path: 'pytorchtext/:workflowId/:id', | |||||
| path: '/pipeline/experimentPytorchtext/:workflowId/:id', | |||||
| component: './Experiment/experimentText/index', | component: './Experiment/experimentText/index', | ||||
| }, | }, | ||||
| ], | ], | ||||
| }, | }, | ||||
| { | |||||
| name: 'experiment', | |||||
| path: '/experiment', | |||||
| routes: [ | |||||
| ], | |||||
| }, | |||||
| { | { | ||||
| name: 'developmentEnvironment', | name: 'developmentEnvironment', | ||||
| path: '/developmentEnvironment', | path: '/developmentEnvironment', | ||||
| @@ -168,6 +169,52 @@ export default [ | |||||
| }, | }, | ||||
| ], | ], | ||||
| }, | }, | ||||
| { | |||||
| name: 'workspace', | |||||
| path: '/workspace', | |||||
| routes: [ | |||||
| { | |||||
| name: '工作空间', | |||||
| path: '', | |||||
| component: './missingPage.jsx', | |||||
| }, | |||||
| ], | |||||
| }, | |||||
| { | |||||
| name: 'modelDseployment', | |||||
| path: '/modelDseployment', | |||||
| routes: [ | |||||
| { | |||||
| name: '模型部署', | |||||
| path: '', | |||||
| component: './missingPage.jsx', | |||||
| }, | |||||
| ], | |||||
| }, | |||||
| { | |||||
| name: 'appsDeployment', | |||||
| path: '/appsDeployment', | |||||
| routes: [ | |||||
| { | |||||
| name: '应用开发', | |||||
| path: '', | |||||
| component: './missingPage.jsx', | |||||
| }, | |||||
| ], | |||||
| }, | |||||
| { | |||||
| name: 'see', | |||||
| path: '/see', | |||||
| routes: [ | |||||
| { | |||||
| name: '监控运维', | |||||
| path: '', | |||||
| component: './missingPage.jsx', | |||||
| }, | |||||
| ], | |||||
| }, | |||||
| { | { | ||||
| name: 'monitor', | name: 'monitor', | ||||
| path: '/monitor', | path: '/monitor', | ||||
| @@ -59,10 +59,11 @@ body { | |||||
| padding-top: 40px; | padding-top: 40px; | ||||
| } | } | ||||
| .ant-table-wrapper .ant-table-container table > thead > tr:first-child > *:first-child, | .ant-table-wrapper .ant-table-container table > thead > tr:first-child > *:first-child, | ||||
| .ant-table-wrapper .ant-table-container table > tbody > tr:first-child { | |||||
| .ant-table-wrapper .ant-table-tbody>tr>td:first-child { | |||||
| padding: 0 30px; | padding: 0 30px; | ||||
| } | } | ||||
| .ant-pro-global-header-logo-mix { | .ant-pro-global-header-logo-mix { | ||||
| width: 257px; | width: 257px; | ||||
| height: 75px; | height: 75px; | ||||
| @@ -256,7 +256,7 @@ function Experiment() { | |||||
| }; | }; | ||||
| const routerToText = (e, item, record) => { | const routerToText = (e, item, record) => { | ||||
| e.stopPropagation(); | e.stopPropagation(); | ||||
| navgite({ pathname: `/experiment/pytorchtext/${record.workflow_id}/${item.id}` }); | |||||
| navgite({ pathname: `/pipeline/experimentPytorchtext/${record.workflow_id}/${item.id}` }); | |||||
| }; | }; | ||||
| const handleTensorboard = async (experimentIn) => { | const handleTensorboard = async (experimentIn) => { | ||||
| @@ -0,0 +1,10 @@ | |||||
| import missingPage from '@/assets/img/missing-back.png'; | |||||
| const MissingPage = () => ( | |||||
| <div style={{ width: '100%', display: 'flex', flexDirection: 'column', alignItems: 'center' }}> | |||||
| <img src={missingPage} style={{ width: '575px', margin: '278px 0 44px 0' }} alt="" /> | |||||
| <span style={{ color: '#575757', fontSize: '16px' }}>页面开发中,敬请期待......</span> | |||||
| </div> | |||||
| ); | |||||
| export default MissingPage; | |||||