wuqun 2 years ago
parent
commit
479bf6867e
  1. 2
      api/app/lib/controllers/patrolManage/patrolRecord.js
  2. 2
      weapp/package/pointsStatus/pointsStatus.wxml
  3. 4
      weapp/package/pointsStatus/pointsStatus.wxss

2
api/app/lib/controllers/patrolManage/patrolRecord.js

@ -229,7 +229,7 @@ async function addPatrolRecord (ctx, next) {
where: { patrolPlanId: patrolPlanId } where: { patrolPlanId: patrolPlanId }
}); });
const patrolCount = curPlanRecord.count; const patrolCount = curPlanRecord.count + 1;
await models.PatrolPlan.update({ patrolCount }, { await models.PatrolPlan.update({ patrolCount }, {
where: { id: patrolPlanId }, where: { id: patrolPlanId },
transaction transaction

2
weapp/package/pointsStatus/pointsStatus.wxml

@ -8,7 +8,7 @@
data-id="{{item.pointId}}" data-id="{{item.pointId}}"
data-show="{{item.show}}" data-show="{{item.show}}"
class="point" 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" bind:tap="calcTooltip"
></image> ></image>
<view <view

4
weapp/package/pointsStatus/pointsStatus.wxss

@ -10,8 +10,8 @@
.image-box .point { .image-box .point {
position: absolute; position: absolute;
width: 10px; width: 12px;
height: 10px; height: 12px;
} }
.image-box .tooltip { .image-box .tooltip {

Loading…
Cancel
Save