矩阵编辑接口

master
pan 4 years ago
parent 54f1bd8d82
commit 7de68ef749
  1. 6
      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
Loading…
Cancel
Save