fix: rebuild MES as compilable go-zero+ent backend (renamed bj_power_mes), restore 3 workstation projects from pristine original, align naming; all Go projects go build clean
This commit is contained in:
@@ -1,10 +1,26 @@
|
||||
import React, {lazy} from 'react'
|
||||
|
||||
import {IconHistogram, IconCard, IconUser} from '@douyinfe/semi-icons'
|
||||
import {IconHistogram, IconUser} from '@douyinfe/semi-icons'
|
||||
import {IconCard, IconConfig, IconMarkdown, IconPopover, IconScrollList} from '@douyinfe/semi-icons-lab'
|
||||
|
||||
const Dashboard = lazy(() => import('@/views/dashboard'))
|
||||
const WorkOrder = lazy(() => import('@/views/work-order'))
|
||||
const Profile = lazy(() => import('@/views/profile'))
|
||||
const Role = lazy(() => import('@/views/settings/role'))
|
||||
const Organization = lazy(() => import('@/views/settings/organization'))
|
||||
const Equipment = lazy(() => import('@/views/equipment'))
|
||||
const WorkOrder = lazy(() => import('@/views/work-order'))
|
||||
const Process = lazy(() => import('@/views/process'))
|
||||
const Workpiece = lazy(() => import('@/views/workpiece'))
|
||||
const ProductionReport = lazy(() => import('@/views/reports/production-report'))
|
||||
const MachineUtilizationReport = lazy(
|
||||
() => import('@/views/reports/machine-utilization')
|
||||
)
|
||||
const SamplingData = lazy(() => import('@/views/reports/sampling-data'))
|
||||
const Rgv = lazy(() => import('@/views/rgv'))
|
||||
const EventLog = lazy(() => import('@/views/event-log'))
|
||||
const StationMonitor = lazy(() => import('@/views/station-monitor'))
|
||||
const Inspection = lazy(() => import('@/views/inspection'))
|
||||
const InspectionImages = lazy(() => import('@/views/inspection-images'))
|
||||
|
||||
interface Router {
|
||||
name: string
|
||||
@@ -23,11 +39,19 @@ export default [
|
||||
{
|
||||
name: 'app.menu.dashboard',
|
||||
index: true,
|
||||
// path: '/dashboard',
|
||||
path: '/',
|
||||
icon: <IconHistogram/>,
|
||||
isMenu: true,
|
||||
element: <Dashboard/>
|
||||
},
|
||||
{
|
||||
name: 'app.menu.station.monitor',
|
||||
path: '/station-monitor',
|
||||
icon: <IconMarkdown/>,
|
||||
isMenu: true,
|
||||
element: <StationMonitor/>
|
||||
},
|
||||
{
|
||||
name: 'app.menu.product.management',
|
||||
icon: <IconCard/>,
|
||||
@@ -38,6 +62,139 @@ export default [
|
||||
path: '/work-order',
|
||||
isMenu: true,
|
||||
element: <WorkOrder/>
|
||||
},
|
||||
{
|
||||
name: 'app.menu.workpiece.management',
|
||||
path: '/workpiece',
|
||||
isMenu: true,
|
||||
element: <Workpiece/>
|
||||
},
|
||||
{
|
||||
name: 'app.menu.product.log',
|
||||
path: '/event-log',
|
||||
isMenu: true,
|
||||
element: <EventLog/>
|
||||
}
|
||||
]
|
||||
},
|
||||
/*{
|
||||
name: 'app.menu.technology.management',
|
||||
icon: <IconCascader />,
|
||||
isMenu: true,
|
||||
children: [
|
||||
{
|
||||
name: 'app.menu.process.management',
|
||||
path: '/process',
|
||||
isMenu: true,
|
||||
element: <Process />
|
||||
}
|
||||
/!*,
|
||||
{
|
||||
name: 'app.menu.parameters.management',
|
||||
path: '/params',
|
||||
isMenu: true,
|
||||
element: <Parameter />
|
||||
}*!/
|
||||
]
|
||||
},*/
|
||||
{
|
||||
name: 'app.menu.device.management',
|
||||
icon: <IconPopover/>,
|
||||
// path: '/technology',
|
||||
isMenu: true,
|
||||
children: [
|
||||
/*{
|
||||
name: 'app.menu.category.management',
|
||||
path: '/category',
|
||||
isMenu: true,
|
||||
element: <Category />
|
||||
},*/
|
||||
{
|
||||
name: 'app.menu.equipment.management',
|
||||
path: '/equipment',
|
||||
isMenu: true,
|
||||
element: <Equipment/>
|
||||
},
|
||||
{
|
||||
name: 'app.menu.inspection',
|
||||
path: '/inspection',
|
||||
isMenu: true,
|
||||
element: <Inspection/>
|
||||
}/*,
|
||||
{
|
||||
name: 'app.menu.rgv.management',
|
||||
path: '/rgv',
|
||||
isMenu: true,
|
||||
element: <Rgv />
|
||||
},
|
||||
{
|
||||
name: 'app.menu.cnc-machine.management',
|
||||
path: '/cnc-machine',
|
||||
isMenu: true,
|
||||
element: <CncMachine />
|
||||
},
|
||||
{
|
||||
name: 'app.menu.robot.management',
|
||||
path: '/robot',
|
||||
isMenu: true,
|
||||
element: <Robot />
|
||||
},
|
||||
{
|
||||
name: 'app.menu.plc.management',
|
||||
path: '/plc',
|
||||
isMenu: true,
|
||||
element: <Plc />
|
||||
}*/
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'app.menu.data.report',
|
||||
icon: <IconScrollList/>,
|
||||
isMenu: true,
|
||||
children: [
|
||||
{
|
||||
name: 'app.menu.inspection.image',
|
||||
path: '/inspection-images',
|
||||
isMenu: true,
|
||||
element: <InspectionImages/>
|
||||
},
|
||||
{
|
||||
name: 'app.menu.sampling.data',
|
||||
path: '/sampling-data',
|
||||
isMenu: true,
|
||||
element: <SamplingData/>
|
||||
},
|
||||
{
|
||||
name: 'app.menu.production.report',
|
||||
path: '/production/report',
|
||||
isMenu: true,
|
||||
element: <ProductionReport/>
|
||||
},
|
||||
{
|
||||
name: 'app.menu.machine.utilization.report',
|
||||
path: '/machine/utilization/report',
|
||||
isMenu: true,
|
||||
element: <MachineUtilizationReport/>
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'app.menu.settings',
|
||||
icon: <IconConfig/>,
|
||||
// path: '/technology',
|
||||
isMenu: true,
|
||||
children: [
|
||||
{
|
||||
name: 'app.menu.settings.organization',
|
||||
path: '/organization',
|
||||
isMenu: true,
|
||||
element: <Organization/>
|
||||
},
|
||||
{
|
||||
name: 'app.menu.settings.role',
|
||||
path: '/role',
|
||||
isMenu: true,
|
||||
element: <Role/>
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -49,4 +206,4 @@ export default [
|
||||
}
|
||||
] as Router[]
|
||||
|
||||
export type {Router}
|
||||
export type {Router}
|
||||
|
||||
Reference in New Issue
Block a user