|
|
@ -119,6 +119,7 @@ async function findPatrolRecord (ctx, next) { |
|
|
|
} |
|
|
|
} |
|
|
|
let userInfo = ctx.fs.api.userInfo; |
|
|
|
rslt = rslt.filter(f => f) |
|
|
|
if (userInfo.username != 'SuperAdmin') { |
|
|
|
if (userInfo.structure) { |
|
|
|
rslt = rslt.filter(s => userInfo.structure.find(x => x == s.points.project.id)) |
|
|
@ -204,7 +205,7 @@ async function addPatrolRecord (ctx, next) { |
|
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); |
|
|
|
ctx.status = 400; |
|
|
|
ctx.body = { |
|
|
|
"message": '新增巡检计划失败' |
|
|
|
"message": '新增巡检记录失败' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|