123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333 |
- import { defineConfig } from '@umijs/max';
- export default defineConfig({
- hash: true,
- antd: {},
- access: {},
- model: {},
- initialState: {},
- request: {},
- dva: {},
- layout: false,
- // publicPath: process.env.NODE_ENV == 'development' ? '/' : '/gt-dig/',
- publicPath: '/',
- metas: [
- // 配置html禁止缓存
- { 'http-equiv': 'pragma', content: 'no-cache' },
- { 'http-equiv': 'cache-control', content: 'no-cache' },
- { 'http-equiv': 'expires', content: '0' },
- { 'http-equiv': 'X-UA-Compatible', content: 'IE=EmulateIE9' },
- { name: 'transparent', content: 'true' },
- {
- name: 'viewport',
- content:
- 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0',
- },
- ],
- headScripts: [`/rem.js`],
- proxy: {
- '/api': {
- // target: 'http://47.96.12.136:8888/',
- target: 'http://47.96.12.136:8788/',
- // target: 'http://120.55.44.4:8900/',
- //target: 'https://metawant.greentech.com.cn/',
- changeOrigin: true,
- },
- },
- routes: [
- {
- path: '/',
- redirect: '/home/92',
- },
- {
- name: '首页',
- path: '/home/:projectId',
- component: './Home',
- },
- {
- name: '项目选择',
- path: '/projects',
- component: './Projects',
- },
- {
- name: '菜单栏',
- path: '/menu/:projectId',
- component: './Menu',
- },
- {
- name: '水量监测',
- path: '/home/water-amt-mng/:projectId',
- component: './Home/WaterAmtMng',
- },
- {
- name: '水质监测',
- path: '/home/water-quality-mng/:projectId',
- component: './Home/QualityMng',
- },
- {
- name: '能耗监测',
- path: '/home/energy/:projectId',
- component: './Home/EnergyCostComparison',
- },
- {
- name: '能耗详情',
- path: '/home/energy/detail/:projectId',
- component: './Home/EnergyCostDetail',
- },
- {
- name: '药耗监测',
- path: '/home/chem-cost/:projectId',
- component: './Home/ChemCostComparison',
- },
- {
- name: '待办事项',
- path: '/home/backlog/:projectId',
- component: './Home/backlog',
- },
- {
- name: '工况管理',
- path: '/smart/work/:projectId',
- component: './Smart',
- },
- {
- name: '工况评估',
- path: '/smart/condition-detection/:projectId',
- component: './Smart/ConditionDetection',
- },
- {
- name: '优化任务',
- path: '/smart/optimization-tasks/:projectId',
- component: './Smart/OptimizationTasks',
- },
- {
- name: '模拟仿真',
- path: '/smart/simulate/:projectId',
- component: './Smart/Simulate',
- },
- {
- name: '智能管控',
- path: '/controller/:projectId',
- component: './Controller',
- },
- {
- name: '感知监控',
- path: '/controller/hardware/:projectId',
- component: './Controller/Hardware',
- },
- {
- name: '设备定位',
- path: '/controller/device/:projectId',
- component: './Controller/Device',
- },
- // {
- // name: '空调监控',
- // path: '/hardware-controller/air-conditioner/:projectId',
- // component: './Controller/AirConditioner',
- // },
- // {
- // name: '灯光监控',
- // path: '/hardware-controller/light/:projectId',
- // component: './Controller/Light',
- // },
- {
- name: '系统自检',
- path: '/self-inspection/:projectId',
- component: './EqSelfInspection',
- },
- {
- name: '自检列表',
- path: '/self-inspection/list/:projectId',
- component: './EqSelfInspection/List',
- },
- {
- name: '自检报告',
- path: '/self-inspection/detail/:projectId/:routeId',
- component: './EqSelfInspection/ReportDetail',
- },
- {
- name: '自检统计',
- path: '/self-inspection/statistics/:projectId',
- component: './EqSelfInspection/Statistics',
- },
- {
- name: '任务管理 - 工单管理',
- path: '/task-manage/:projectID',
- component: './TaskManage',
- },
- {
- name: '任务列表',
- path: '/task-manage/list',
- component: './TaskManage/Detail/TaskList/TaskList',
- },
- {
- name: '任务详情',
- path: '/task-manage/list/detail',
- component: './TaskManage/Detail/TaskDetail/TaskDetail',
- },
- {
- name: '工单列表',
- path: '/task-manage/work-order/list',
- component: './TaskManage/Detail/WorkOrderList/WorkOrderList',
- },
- {
- name: '任务关联工单详情',
- path: '/task-manage/list/order-detail',
- component: './TaskManage/Detail/TaskOrder/TaskOrder',
- },
- {
- name: '任务弹窗',
- path: '/task-manage/pop/:projectID',
- component: './TaskManage/Popup',
- },
- {
- name: '工单详情弹窗',
- path: '/task-manage/pop/work-order/:projectID',
- component: './TaskManage/Popup/WorkOrderModal',
- },
- {
- name: '消息中心',
- path: '/message/:projectId',
- component: './MessageCenter',
- },
- {
- name: '设备管理',
- path: '/device/:projectId',
- component: './DeviceManager',
- },
- {
- name: '出入库管理详情',
- path: '/device/detail/:projectId/:type',
- component: './DeviceManager/detail',
- },
- {
- name: '备品管理总览',
- path: '/device/spare-part/:projectId',
- component: './DeviceManager/sparePart',
- },
- {
- name: '安全管理',
- path: '/safety/:projectId', ///safety management
- component: './SafetyManagement',
- },
- {
- name: '安全管理-口令',
- path: '/safety/command/:projectId', ///safety management
- component: './SafetyManagement/Command',
- },
- // 视频图片预览
- {
- path: '/alarm/preview',
- name: '',
- component: './Alarm/Preview',
- },
- {
- name: '门禁日志',
- path: '/safety/detail/:projectId', ///safety management
- component: './SafetyManagement/doorDetail',
- },
- // 智慧运营
- {
- name: '',
- path: '/smart-ops/:projectId', ///safety management
- component: './SmartOps/index',
- },
- // 工况分析详情
- {
- name: '',
- path: '/smart-ops/work-analysis-detail/:projectId', ///safety management
- component: './SmartOps/WorkAnalysisDetail',
- },
- // 历史记录
- {
- name: '',
- path: '/smart-ops/history-record/:projectId', ///safety management
- component: './SmartOps/HistoryRecord',
- },
- // 操作记录
- {
- name: '',
- path: '/smart-ops/operation-record/:projectId',
- component: './SmartOps/OperationRecord',
- },
- // 图标弹窗页面
- {
- name: '',
- path: '/smart-ops/chart-page/:projectId',
- component: './SmartOps/ChartPage',
- },
- // 预测分析图表页面
- {
- name: '',
- path: '/smart-ops/prediction/:projectId',
- component: './SmartOps/predictionAnalysis/PredictionDetail',
- },
- // 系统工作日报
- {
- name: '',
- path: '/system-daily/:projectId',
- component: './SystemDaily/index',
- },
- //个人中心
- {
- name: '个人中心',
- path: '/center/:projectId',
- component: './Center/index',
- },
- {
- name: '我的任务',
- path: '/center/my-task/:projectId',
- component: './Center/MyTask',
- },
- {
- name: '我的任务列表',
- path: '/center/my-task/task-list',
- component: './Center/MyTask/List/TaskList',
- },
- {
- name: '我的工单列表',
- path: '/center/my-task/work-order-list',
- component: './Center/MyTask/List/WorkOrderList',
- },
- {
- name: '我的任务详情',
- path: '/center/my-task/task-detail',
- component: './Center/MyTask/Detail/TaskDetail',
- },
- {
- name: '我的工单详情',
- path: '/center/my-task/work-order-detail',
- component: './Center/MyTask/Detail/WorkOrderDetail',
- },
- //智慧运营报告
- {
- name: '',
- path: '/smart-report/:projectId',
- component: './SmartReport/index',
- },
- //设备采购文件列表
- {
- path: '/device/equipment-procurement-list/:projectId/:billId/:deviceCode/:fileType/:ops',
- name: '',
- component: './DeviceManager/EquipmentProcurementList',
- },
- //设备施工文件列表
- {
- path: '/device/equipment-construction-list/:projectId/:code/:fileType/:ops',
- name: '',
- component: './DeviceManager/EquipmentConstructionList',
- },
- //设备保养详情
- {
- path: '/device/maintain-detail',
- name: '',
- component: './DeviceManager/deviceMaintainDetail',
- },
- //设备维修详情
- {
- path: '/device/repair-detail',
- name: '',
- component: './DeviceManager/deviceRepairDetail',
- },
- ],
- npmClient: 'yarn',
- });
|