diff --git a/api/app/lib/controllers/patrolManage/patrolRecord.js b/api/app/lib/controllers/patrolManage/patrolRecord.js index f790006..4bb4ff2 100644 --- a/api/app/lib/controllers/patrolManage/patrolRecord.js +++ b/api/app/lib/controllers/patrolManage/patrolRecord.js @@ -229,7 +229,7 @@ async function addPatrolRecord (ctx, next) { where: { patrolPlanId: patrolPlanId } }); - const patrolCount = curPlanRecord.count; + const patrolCount = curPlanRecord.count + 1; await models.PatrolPlan.update({ patrolCount }, { where: { id: patrolPlanId }, transaction diff --git a/weapp/package/pointsStatus/pointsStatus.wxml b/weapp/package/pointsStatus/pointsStatus.wxml index 639c321..0301075 100644 --- a/weapp/package/pointsStatus/pointsStatus.wxml +++ b/weapp/package/pointsStatus/pointsStatus.wxml @@ -8,7 +8,7 @@ data-id="{{item.pointId}}" data-show="{{item.show}}" class="point" - style="left:{{(item.position.relativeX * 100) + '%'}}; top:{{(item.position.relativeY * 100) + '%'}}" + style="left:calc({{(item.position.relativeX * 100) + '%'}} - 3px); top:calc({{(item.position.relativeY * 100) + '%'}} - 3px)" bind:tap="calcTooltip" >