<view style="padding-top:20rpx;"><view class="datainfo"><view class="datainfo_item"><view>{{''+item.device_name+''}}</view><view style="{{'color:'+(item.status==1?'#00B075':'#f64a4a')+';'}}">{{''+(item.status==1?"已开启":"已禁用")+''}}</view></view><view class="datainfo_item">{{'设备ID：'+item.device_id+''}}</view><view class="datainfo_item">{{'设备备注：'+(item.device_notes==''?"--":item.device_notes)+''}}</view><view class="datainfo_item">{{'设备状态：'+(item.device_status==1?"在线":"离线")+''}}</view><view class="datainfo_item"><view class="datainfo_item_1">{{'地址：'+item.city+''}}</view><view><u-icon vue-id="6ff18e00-1" name="map" size="40" color="#00B075" data-event-opts="{{[['^click',[['selectaddress',['$0','$1'],['item.city','item.device_name']]]]]}}" bind:click="__e" bind:__l="__l"></u-icon></view></view></view><view class="datadetails"><view class="datadetails_box1"><view>设备变量名称</view><view>当前值</view></view><block wx:for="{{data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="datadetails_box"><view class="datadetails_box_name">{{''+item.name+''}}</view><block wx:if="{{compile&&item.device_status==1}}"><view class="datadetails_box_conf"><block wx:if="{{item.types==1}}"><u-switch style="margin-top:30rpx;" vue-id="{{'6ff18e00-2-'+index}}" size="35" active-color="#00B075" inactive-color="#f00" value="{{item.values}}" data-event-opts="{{[['^change',[['switchchange2',['$event','$0',index],[[['data','',index]]]]]],['^input',[['__set_model',['$0','values','$event',[]],[[['data','',index]]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></u-switch></block><block wx:if="{{item.types==0||item.types==4}}"><view style="display:flex;"><view>{{''+item.values+item.unit+''}}</view><view><u-icon vue-id="{{'6ff18e00-3-'+index}}" name="edit-pen" size="36" color="#00B075" data-event-opts="{{[['^click',[['inputfill',['$0',index],[[['data','',index]]]]]]]}}" bind:click="__e" bind:__l="__l"></u-icon></view></view></block></view></block><block wx:else><view class="datadetails_box_conf"><block wx:if="{{item.types==1}}"><view>{{''+(item.values==true?"开":"关")+item.unit+''}}</view></block><block wx:if="{{item.types==0||item.types==4}}"><view>{{''+(item.values?item.values:"--")+item.unit+''}}</view></block></view></block></view></block><u-modal vue-id="6ff18e00-4" show-cancel-button="{{true}}" title="{{baseinfo.title}}" value="{{show}}" data-event-opts="{{[['^confirm',[['modalconfirm']]],['^cancel',[['modalcancel']]],['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:confirm="__e" bind:cancel="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="slot-content"><u-input bind:input="__e" vue-id="{{('6ff18e00-5')+','+('6ff18e00-4')}}" type="number" value="{{baseinfo.content}}" data-event-opts="{{[['^input',[['__set_model',['$0','content','$event',[]],['baseinfo']]]]]}}" bind:__l="__l"></u-input>{{baseinfo.unit+''}}</view></u-modal><u-mask vue-id="6ff18e00-6" show="{{maskshow}}" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{maskshow}}"><view class="loading"><image class="img" src="../../static/images/cb/6286299.gif" mode></image></view></block></u-mask></view></view>