From f3aa8e09cafb8835dbddae0408f1ad631339dded Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Thu, 5 Nov 2020 08:34:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0HAZOP=E5=88=86=E6=9E=90?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/project/hazop.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/routes/project/hazop.js b/routes/project/hazop.js index 759623d..ded80c6 100644 --- a/routes/project/hazop.js +++ b/routes/project/hazop.js @@ -15,7 +15,6 @@ router.get('/analyse/:id', function (req, res, next) { t:/\d{3}/ }] }) - sst.si.push({t:`${Mock.Random.word()}${Mock.Random.word()}`}) 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) } ) }