wuqun
2 years ago
10 changed files with 174 additions and 60 deletions
@ -1,4 +1,4 @@ |
|||||
ALTER TABLE "public"."patrol_record_issue_handle" |
ALTER TABLE "public"."patrol_record_issue_handle" |
||||
ADD COLUMN "cost" decimal(11,2); |
ADD COLUMN "cost" decimal(11,2); |
||||
|
|
||||
COMMENT ON COLUMN "public"."patrol_record_issue_handle"."cost" IS '成本'; |
COMMENT ON COLUMN "public"."patrol_record_issue_handle"."cost" IS '成本(元)'; |
@ -1,3 +1,9 @@ |
|||||
{ |
{ |
||||
"usingComponents": {} |
"navigationBarBackgroundColor": "#1979ff", |
||||
|
"navigationBarTextStyle": "white", |
||||
|
"navigationBarTitleText": "点位状态", |
||||
|
"enablePullDownRefresh": true, |
||||
|
"usingComponents": { |
||||
|
"van-empty": "@vant/weapp/empty/index" |
||||
|
} |
||||
} |
} |
@ -1,2 +1,25 @@ |
|||||
<!--package/pointsStatus/pointsStatus.wxml--> |
<!-- package/pointsStatus/pointsStatus.wxml --> |
||||
<text>package/pointsStatus/pointsStatus.wxml</text> |
<view wx:if="{{image}}" class="image-box"> |
||||
|
<image src="{{imgUrl + image}}" class="image"></image> |
||||
|
<view wx:for="{{setedPoints}}"> |
||||
|
<image |
||||
|
src="/images/circle.png" |
||||
|
id="{{'point' + item.id}}" |
||||
|
data-id="{{item.id}}" |
||||
|
class="point" |
||||
|
style="left:{{(item.position.relativeX * 100) + '%'}}; top:{{(item.position.relativeY * 100) + '%'}}" |
||||
|
bind:tap="calcTooltip" |
||||
|
></image> |
||||
|
<view |
||||
|
wx:if="{{item.show}}" |
||||
|
class="tooltip" |
||||
|
style="left:calc({{(item.position.relativeX * 100) + '%'}} - {{item.sub}}px); top:calc({{(item.position.relativeY * 100) + '%'}} + 10px);" |
||||
|
> |
||||
|
<view>设备编号:{{item.pointInfo.equipmentNo || '--'}}</view> |
||||
|
<view>设备型号:{{item.pointInfo.equipmentModel || '--'}}</view> |
||||
|
<view>设备状态:正常</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<van-empty wx:else description="暂无布设图" /> |
||||
|
<view id="dddd" class="fixed-selector">结构物介绍</view> |
@ -1 +1,23 @@ |
|||||
/* package/pointsStatus/pointsStatus.wxss */ |
/* package/pointsStatus/pointsStatus.wxss */ |
||||
|
.image-box { |
||||
|
width: 100%; |
||||
|
position: relative; |
||||
|
} |
||||
|
|
||||
|
.image-box .image { |
||||
|
width: 100%; |
||||
|
} |
||||
|
|
||||
|
.image-box .point { |
||||
|
position: absolute; |
||||
|
width: 10px; |
||||
|
height: 10px; |
||||
|
} |
||||
|
|
||||
|
.image-box .tooltip { |
||||
|
position: absolute; |
||||
|
font-size: 12px; |
||||
|
background-color: white; |
||||
|
border: 1px solid gainsboro; |
||||
|
width: 98px; |
||||
|
} |
Loading…
Reference in new issue