|
|
|
@ -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 |