tanghaolin
2022-07-27 fd4d1d9296ba620de15b47bd1d58383d46ecb626
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<view style="position: relative;height:100vh;overflow:hidden;">
  <!-- 搜索框 -->
  <view class="map_search {{animationSearchBar}} {{isShowMapLayer?'layer_Show':'layer_hiden'}}"
    style="left: 0rpx;top: 40rpx;height: 110rpx;width: 95%;margin: 0rpx 20rpx 0rpx 20rpx;">
    <text bindtap="onScan" style="font-size: 48rpx;margin-left: 20rpx;" class="cuIcon-scan text-gray"></text>
    <input type='text' placeholder='请输入需要查询的内容' value="{{searchKeyWrd}}" bindinput='inputKeyWrd'
      bindconfirm='confirmSearch' />
    <text style="font-size: 48rpx;margin-right: 20rpx;" class='cuIcon-search text-gray'></text>
    <view class="map_list" style="left:3rem;top:110rpx;" wx:if="{{isShowsearchMarkList}}">
      <view bindtap="tapMapSearchItem" hover-class="hovers" data-id="{{searchMarkItem.id}}"
        data-longitude="{{searchMarkItem.longitude}}" data-latitude="{{searchMarkItem.latitude}}"
        wx:for-items="{{searchMarkList}}" wx:for-item="searchMarkItem" wx:for-index="searchList_index" wx:key="id">
        {{searchMarkItem.title}}
      </view>
    </view>
  </view>
  <!-- 地图 -->
  <map id="{{mapId}}" style="width: 100vw; height: 100vh;" latitude="{{mapInfo.mapCenterLatitude}}"
    longitude="{{mapInfo.mapCenterLongitude}}" show-location="{{mapInfo.showLocation}}"
    enable-zoom="{{mapInfo.enableZoom}}" scale="{{mapInfo.scale}}" enable-3D="{{mapInfo.map3D}}"
    enable-overlooking="{{mapInfo.overlooking}}" enable-scroll="{{mapInfo.enableScroll}}"
    enable-traffic="{{mapInfo.traffic}}" enable-satellite="{{mapInfo.satellite}}" enable-building="true"
    markers="{{mapInfo.markers}}" polygons="{{mapInfo.DMA}}" bindmarkertap="tapMapMark" bindcallouttap="tapMapMark"
    bindregionchange="mapViewChange" bindtap="mapClick" bindupdated="onUpdate">
  </map>
  <!-- 右侧功能区域 -->
  <div class="right_btn {{isShowMapLayer && isShowRightBtn?'layer_Show':'layer_hiden'}}"
    style="top:14vh;z-index:0;right:20rpx;">
    <div bindtap="xianShiTuCeng" data-target="DrawerModalR">
      <div class="tuceng">
        <image src="/images/map/tuceng.png" alt="图层"></image>
      </div><span>图层</span>
    </div>
  </div>
  <view animation="{{animationMapTip}}" wx:if="{{isShowMapBottomTip}}" class="commodity_attr_box">
    <view class='placeBox'>
      <view class='placeViewLt'>
        <view class='viewTitle'>{{markerTipInfo.title}}</view>
        <view class='viewDis'>{{markerTipInfo.content}}</view>
      </view>
      <view class='placeViewRt'>
        <view class="placeIcon iconfont icon-zhuanfa" data-url="../../bim/station/index" bindtap="onGuideDirty">
        </view>
        <!-- 导航图 可以用做地图导航 -->
        <!-- <cover-image data-url="../../bim/station/index" bindtap="openStationBimPage" src='/images/icons/daohang.png'></cover-image> -->
      </view>
    </view>
 
  </view>
  <view class="cu-modal bottom-modal {{modalName=='bottomModal'?'show':''}}" bindtap="hideModal">
    <view class="cu-dialog">
      <view class="cu-bar bg-white">
        <!-- <view class="action text-green">确定</view> -->
        <view class="action">{{markerTipInfo.title}}</view>
        <view class="action text-blue" bindtap="hideModal">取消</view>
      </view>
      <view wx:if="{{markerTipInfo.markerType!='gongdan'}}">
        <view wx:if="{{markerTipInfo.markerInfo.Records.length>0}}">
          <view data-id="{{Records.ID}}" data-name="{{Records.SignalList[0].Name}}" data-unit="{{Records.SignalList[0].UnitValue}}" bindtap="gotoSinglePointPage" class="record_tr"
            wx:for="{{markerTipInfo.markerInfo.Records}}" wx:key="index" wx:for-item="Records">
            <view class="name">{{Records.SignalList[0].Name?Records.SignalList[0].Name:''}}</view>
            <view class="value">{{Records.SignalList[0].DataValue}}</view>
            <view class="unit">{{Records.SignalList[0].UnitValue?Records.SignalList[0].UnitValue:''}}</view>
          </view>
        </view>
        <view wx:else="{{markerTipInfo.markerInfo.Records.length==0}}" class="zanWuShuju">
          暂无监控数据
        </view>
        <view wx:if="{{link_box}}" class="block_list_url">
          <view bindtap="tapOpenStationMonitorPageInList" data-stationid="{{markerTipInfo.markerInfo.ObjectID}}"
            data-stationname="{{markerTipInfo.markerInfo.ObjectName}}">
            <icon class="iconfont icon-jiankong"></icon> <span style="padding-left:10px;padding-right:10px;">监控</span>
          </view>
          <view bindtap="tapOpenProductInStationPageInList" data-stationid="{{markerTipInfo.markerInfo.ObjectID}}"
            data-stationname="{{markerTipInfo.markerInfo.ObjectName}}">
            <icon class="iconfont icon-zichan"></icon> <span style="padding-left:10px;padding-right:10px;">资产</span>
          </view>
          <view bindtap="tapOpenStationBimPageInList" data-stationid="{{markerTipInfo.markerInfo.ObjectID}}"
            data-stationname="{{markerTipInfo.markerInfo.ObjectName}}">
            <icon class="iconfont icon-BIM"></icon> <span style="padding-left:10px;padding-right:10px;">模型</span>
          </view>
          <view bindtap="tapOpenReportForm" data-stationid="{{markerTipInfo.markerInfo.ObjectID}}"
            data-stationname="{{markerTipInfo.markerInfo.ObjectName}}">
            <icon class="iconfont icon-liebiao2"></icon> <span style="padding-left:10px;padding-right:10px;">报表</span>
          </view>
        </view>
 
        <view wx:if="{{!isLoad}}" class="cu-load bg-grey load_mark {{!isLoad?'loading':'over'}}"></view>
      </view>
      <view wx:if="{{markerTipInfo.markerType=='gongdan'}}">
        <view class="record_tr">
          <view class="label">报修时间:</view>
          <view class="labelvalue">{{markerTipInfo.markerInfo.CreateTime}}</view>
        </view>
        <view class="record_tr">
          <view class="label">上报人员:</view>
          <view class="labelvalue">{{markerTipInfo.markerInfo.CreateUserName}}</view>
        </view>
        <view class="record_tr">
          <view class="label">问题说明:</view>
          <view class="labelvalue">{{markerTipInfo.markerInfo.Question}}</view>
        </view>
      </view>
 
 
    </view>
  </view>
 
  <!-- 回到当前点 -->
  <view class="user_location shadow bg-white {{isLoactionShow?'layer_Show':'layer_hiden'}}" bindtap="currentLoaction">
    <image src="../images/map/userLocation.png" style="width: 40rpx;height: 40rpx;"></image>
  </view>
 
  <!-- 地图缩放按钮 -->
  <view class="scaleControl {{isShowMapLayer && isScaleShow?'layer_Show':'layer_hiden'}}">
    <view class=" scaleBtn shadow bg-white">
      <view class="jia" bindtap="jia"><text>+</text></view>
      <view class="jian" bindtap="jian"><text>-</text></view>
    </view>
  </view>
 
  <!-- 右侧图层抽屉 -->
  <view class="cu-modal drawer-modal justify-end {{DrawerName=='DrawerModalR'?'show':''}}" bindtap="hideDrawerModal">
    <view class="cu-dialog basis-lg" catchtap style="max-width:60%;">
      <view class="action" style="height: 70rpx;display: flex;align-items: center;">
        <text class="text-gray" style="margin-left: 30rpx;font-weight: 600;">图层显示</text>
      </view>
      <!-- 图层显示 -->
      <view class="cu-list grid col-3 {{gridBorder?'':'no-border'}}">
        <!-- 工单 -->
        <view class="cu-item" bindtap="showMarkerLayer" style="padding:unset" data-type="RepairForm"
          data-show="{{marker_layer.RepairForm}}">
          <view class="cu-avatar xl radius" style="background: #ffffff;width: 100%;height: 140rpx;">
            <image wx:if="{{marker_layer.RepairForm}}" src="/images/map/gongdan_blue.png" style="width:60%;height:60%">
            </image>
            <image wx:if="{{!marker_layer.RepairForm}}" src="/images/map/gongdan_gray.png" style="width:60%;height:60%">
            </image>
            <view class="cu-tag badge" style="top:22rpx;margin-top:unset;">
              {{mapInfo.marker.RepairForm.length>0?mapInfo.marker.RepairForm.length:0}}</view>
          </view>
          <text style="margin-top:unset;">工单</text>
        </view>
        <!-- 压力计 -->
        <view class="cu-item" bindtap="showMarkerLayer" style="padding:unset" data-type="PressMeter"
          data-show="{{marker_layer.PressMeter}}">
          <view class="cu-avatar xl radius" style="background: #ffffff;width: 100%;height: 140rpx;">
            <image wx:if="{{marker_layer.PressMeter}}" src="/images/map/press_blue.png" style="width:60%;height:60%">
            </image>
            <image wx:if="{{!marker_layer.PressMeter}}" src="/images/map/press_gray.png" style="width:60%;height:60%">
            </image>
            <view class="cu-tag badge" style="top:22rpx;margin-top:unset;">
              {{mapInfo.marker.PressMeter.length>0?mapInfo.marker.PressMeter.length:0}}</view>
          </view>
          <text style="margin-top:unset;">压力计</text>
        </view>
        <!-- 流量计 -->
        <view class="cu-item" bindtap="showMarkerLayer" style="padding:unset" data-type="FlowMeter"
          data-show="{{marker_layer.FlowMeter}}">
          <view class="cu-avatar xl radius" style="background: #ffffff;width: 100%;height: 140rpx;">
            <image wx:if="{{marker_layer.FlowMeter}}" src="/images/map/flow_blue.png" style="width:60%;height:60%">
            </image>
            <image wx:if="{{!marker_layer.FlowMeter}}" src="/images/map/flow_gray.png" style="width:60%;height:60%">
            </image>
            <view class="cu-tag badge" style="top:22rpx;margin-top:unset;">
              {{mapInfo.marker.FlowMeter.length>0?mapInfo.marker.FlowMeter.length:0}}</view>
          </view>
          <text style="margin-top:unset;">流量计</text>
        </view>
        <!-- 水质仪 -->
        <view class="cu-item" bindtap="showMarkerLayer" style="padding:unset" data-type="QualityMeter"
          data-show="{{marker_layer.QualityMeter}}">
          <view class="cu-avatar xl radius" style="background: #ffffff;width: 100%;height: 140rpx;">
            <image wx:if="{{marker_layer.QualityMeter}}" src="/images/map/shuizhiyi_blue.png"
              style="width:60%;height:60%">
            </image>
            <image wx:if="{{!marker_layer.QualityMeter}}" src="/images/map/shuizhiyi_gray.png"
              style="width:60%;height:60%">
            </image>
            <view class="cu-tag badge" style="top:22rpx;margin-top:unset;">
              {{mapInfo.marker.QualityMeter.length>0?mapInfo.marker.QualityMeter.length:0}}</view>
          </view>
          <text style="margin-top:unset;">水质仪</text>
        </view>
        <!-- 泵站 -->
        <view class="cu-item" bindtap="showMarkerLayer" style="padding:unset" data-type="Station"
          data-show="{{marker_layer.Station}}">
          <view class="cu-avatar xl radius" style="background: #ffffff;width: 100%;height: 140rpx;">
            <image wx:if="{{marker_layer.Station}}" src="/images/map/pump_blue.png" style="width:60%;height:60%">
            </image>
            <image wx:if="{{!marker_layer.Station}}" src="/images/map/pump_gray.png" style="width:60%;height:60%">
            </image>
            <view class="cu-tag badge" style="top:22rpx;margin-top:unset;">
              {{mapInfo.marker.Station.length>0?mapInfo.marker.Station.length:0}}</view>
          </view>
          <text style="margin-top:unset;">泵站</text>
        </view>
        <!-- DMA分区 -->
        <view class="cu-item" bindtap="showMarkerLayer" style="padding:unset" data-type="DmaArea"
          data-show="{{marker_layer.DmaArea}}">
          <view class="cu-avatar xl radius" style="background: #ffffff;width: 100%;height: 140rpx;">
            <image wx:if="{{marker_layer.DmaArea}}" src="/images/map/DMAarea_blue.png" style="width:60%;height:60%"
              alt="DMA"></image>
            <image wx:if="{{!marker_layer.DmaArea}}" src="/images/map/DMAarea_gray.png" style="width:60%;height:60%"
              alt="DMA"></image>
            <view class="cu-tag badge" style="top:22rpx;margin-top:unset;">
              {{mapInfo.marker.DmaArea.length>0?mapInfo.marker.DmaArea.length:0}}</view>
          </view>
          <text style="margin-top:unset;">DMA</text>
        </view>
      </view>
      <!-- 地图类型 -->
      <view class="action" style="height: 70rpx;display: flex;align-items: center;">
        <text class="text-gray" style="margin-left: 30rpx;font-weight: 600;">地图类型</text>
      </view>
      <view class="cu-list grid col-3 {{gridBorder?'':'no-border'}}">
        <!-- 2D平面图 -->
        <view class="cu-item {{mapType == '2D'?'map_active':''}}" style="padding:unset" bindtap="changeMapType"
          data-type="2D">
          <view class="cu-avatar xl radius" style="background: #ffffff;width: 100%;height: 140rpx;">
            <image src="/images/map/2d.png" style="width:60%;height:60%">
            </image>
          </view>
          <text style="margin-top:unset;">2D平面图</text>
        </view>
        <!-- 3D俯视图 -->
        <view class="cu-item {{mapType == '3D'?'map_active':''}}" style="padding:unset" bindtap="changeMapType"
          data-type="3D">
          <view class="cu-avatar xl radius" style="background: #ffffff;width: 100%;height: 140rpx;">
            <image src="/images/map/3d.png" style="width:60%;height:60%">
            </image>
          </view>
          <text style="margin-top:unset;">3D俯视图</text>
        </view>
        <!-- 卫星图 -->
        <view class="cu-item {{mapType == 'satellite'?'map_active':''}}" style="padding:unset" bindtap="changeMapType"
          data-type="satellite">
          <view class="cu-avatar xl radius" style="background: #ffffff;width: 100%;height: 140rpx;">
            <image src="/images/map/weixing.png" style="width:60%;height:60%">
            </image>
          </view>
          <text style="margin-top:unset;">卫星图</text>
        </view>
      </view>
    </view>
  </view>
 
  <!-- 底部抽屉区域 -->
  <!-- <movable-area style="bottom: {{drawerMenuMoveData.bottom}}rpx;width:100%;">
    <movable-view direction="vertical" inertia="false" out-of-bounds="false" damping="100" friction="100"
      animation="true" y="{{drawerMenuMoveData.y}}" style="width:100%;height:90vh;" bindchange="movaleChange">
      <view class="cu-card case no-card shadow"
        style="width: 100%;height:90vh;background:#ffffff;border-top-left-radius: 20rpx;border-top-right-radius: 20rpx;">
        <view style="width: 100%;display: flex;justify-content: center;align-items: center;">
          <text class="cuIcon-{{drawerMenuMoveData.icon}} text-grey text-xxl"></text>
        </view>
 
        <view class="cu-list grid col-5 no-border bottomDrawer">
          <view class="cu-item" wx:for="{{meunList}}" wx:key="index">
            <view class="iconfont {{item.icon}} text-{{item.color}}" style="font-size:44rpx;">
            </view>
            <text>{{item.name}}</text>
          </view>
        </view>
      </view>
    </movable-view>
  </movable-area> -->
 
  <view class="drawerBox" style="bottom:{{drawerMenuMoveData.bottom}}rpx" bindtouchstart="drawerTouchStart"
    bindtouchend="drawerTouchEnd" bindtouchmove="drawerTouchMove">
    <view class="cu-card case no-card shadow drawerBody" style="height:{{drawerMenuMoveData.height}}rpx;">
      <view style="width: 100%;display: flex;justify-content: center;align-items: center;">
        <text class="cuIcon-{{drawerMenuMoveData.icon}} text-grey text-xxl"></text>
      </view>
 
      <view class="cu-list grid col-5 no-border bottomDrawer">
        <view class="cu-item" wx:for="{{meunList}}" wx:key="index">
          <view class="iconfont {{item.icon}} text-{{item.color}}" style="font-size:44rpx;">
          </view>
          <text>{{item.name}}</text>
        </view>
      </view>
    </view>
  </view>
</view>