diff --git a/routes/project/prepare.js b/routes/project/prepare.js index c1da6ad..951d76b 100644 --- a/routes/project/prepare.js +++ b/routes/project/prepare.js @@ -25,4 +25,19 @@ router.get('/hdivide', function (req, res, next) { route.addContextMenu(router,'hdivide','HAZOP节点划分') +//获取节点复用 +router.get('/hreuse', function (req, res, next) { + var data=mock.page(req,'获取HAZOP节点复用成功',{ + //节点 + node:()=>Mock.Random.word(), + //偏差 + deviation:()=>Mock.Random.sentence(1, 3), + //偏差描述 + deviationDesc:()=>Mock.Random.sentence(3, 5) + }) + res.json(data) +}) + +route.addContextMenu(router,'hreuse','HAZOP节点复用') + module.exports=router \ No newline at end of file diff --git a/routes/project/project.js b/routes/project/project.js index 07209dc..74f28d5 100644 --- a/routes/project/project.js +++ b/routes/project/project.js @@ -15,7 +15,8 @@ router.get('/menu', function (req, res, next) { let config = [{name: '项目基本信息', isOpen:true,childMenu: [ {name: '一般信息',path:'/project/info/baseinfo',selected:true}, {name: '团队成员',path:'/project/info/team_members'}, {name: '会议信息',path:'/project/info/meeting'}]} - ,{name: '项目准备', childMenu: [{name: 'HAZOP节点划分',path:'/project/prepare/hdivide'}, {name: 'HAZOP节点复用'}, {name: 'SIF节点划分'}, {name: '矩阵选择'}]} + ,{name: '项目准备', childMenu: [{name: 'HAZOP节点划分',path:'/project/prepare/hdivide'}, + {name: 'HAZOP节点复用',path: '/project/prepare/hreuse'}, {name: 'SIF节点划分'}, {name: '矩阵选择'}]} ,{name: 'HAZOP分析', childMenu: [{name: 'HAZOP分析'}, {name: 'HAZOP所有'}]} ,{name:'LOPA定级', childMenu: [{name:'LOPA'},{name:'LOPA表单'},{name:'LOPA所有节点'}]} ,{name:'SIL验算', childMenu: [{name:'SIL验算'},{name:'SIL验算[Nodes]'},{name:'SIL验算-总'}]}]