From 2008afee832dfa09c3254c7ab89ca711045b9a5f Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 24 Oct 2020 10:50:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0HAZOP=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=A4=8D=E7=94=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/project/prepare.js | 15 +++++++++++++++ routes/project/project.js | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) 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验算-总'}]}]