更新HAZOP分析接口

master
pan 4 years ago
parent 6d097af3cb
commit f3aa8e09ca
  1. 10
      routes/project/hazop.js

@ -15,7 +15,6 @@ router.get('/analyse/:id', function (req, res, next) {
t:/\d{3}/
}]
})
sst.si.push({t:`<span style="color:${Mock.Random.color()}">${Mock.Random.word()}</span><span style="color:${Mock.Random.color()}">${Mock.Random.word()}</span>`})
var data=Mock.mock({
...mock.ok(`HAZOP分析获取节点${req.params.id}数据成功`),
@ -40,14 +39,7 @@ router.get('/analyse/:id', function (req, res, next) {
r: `${col}${+row + 1}`,
s: 1,
t: 's',
v: (function (col) {
switch (col) {
case 'C':
return sst.si.length - 1
default:
return Mock.Random.integer(0, sst.si.length - 2)
}
})(col)
v: Mock.Random.integer(0, sst.si.length - 1)
}
)
}

Loading…
Cancel
Save