parent
cc4b30da12
commit
020f925fc0
@ -0,0 +1,28 @@ |
||||
var express = require('express'); |
||||
var router = express.Router(); |
||||
var mock = require('../../public/javascripts/mock') |
||||
var Mock = require("mockjs") |
||||
var multipart = require('connect-multiparty'); |
||||
var multipartMiddleware = multipart(); |
||||
var moment = require("moment") |
||||
var util=require("../../public/javascripts/util") |
||||
var route=require('../../public/javascripts/route') |
||||
|
||||
//获取HAZOP节点划分
|
||||
router.get('/hdivide', function (req, res, next) { |
||||
var data=mock.page(req,'获取HAOZP节点划分成功',{ |
||||
//节点
|
||||
node:()=>Mock.Random.word(), |
||||
//节点编号
|
||||
nodeId:/Node\d{3}/, |
||||
//节点描述
|
||||
nodeDesc:()=>Mock.Random.sentence(3, 5), |
||||
//节点PID号
|
||||
nodePid:/PID\d{3}/ |
||||
}) |
||||
res.json(data) |
||||
}) |
||||
|
||||
route.addContextMenu(router,'hdivide','HAZOP节点划分') |
||||
|
||||
module.exports=router |
Loading…
Reference in new issue