diff --git a/routes/project/prepare.js b/routes/project/prepare.js index 3976300..6d58312 100644 --- a/routes/project/prepare.js +++ b/routes/project/prepare.js @@ -147,6 +147,7 @@ router.get('/matrix/:id', function (req, res, next) { return possibility }, 'level|3-5':[{ + id:/\d{3}/, //Code code:/\d{1}/, //颜色 @@ -197,4 +198,9 @@ router.post('/matrix', function (req, res, next) { res.json(data) }) +router.put('/matrix/:id', multipartMiddleware,function (req, res, next) { + var data=mock.ok(`矩阵坐标(${+req.body.y+1},${+req.body.x+1})更新风险等级成功`) + res.json(data) +}) + module.exports=router \ No newline at end of file