增加HAZOP节点复用接口

master
pan 4 years ago
parent 020f925fc0
commit 2008afee83
  1. 15
      routes/project/prepare.js
  2. 3
      routes/project/project.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

@ -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验算-总'}]}]

Loading…
Cancel
Save