|
|
@ -19,138 +19,20 @@
|
|
|
|
<div class="col col-md-12 my-2 px-3">环境</div>
|
|
|
|
<div class="col col-md-12 my-2 px-3">环境</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<!--光强检测器-->
|
|
|
|
<!--光强检测器-->
|
|
|
|
<div class="col col-md-2 col-sm-3 col-4 " v-for="device in getDevices('光强检测器')">
|
|
|
|
<div v-for="device in getDevices('光强检测器')" class="col" style="min-width:320px;">
|
|
|
|
<div class="card">
|
|
|
|
<iot-light v-bind:device="device"></iot-light>
|
|
|
|
<div class="card-header">
|
|
|
|
|
|
|
|
{{device.displayName}}
|
|
|
|
|
|
|
|
<span class="float-right text-success" v-if="device.isOnline"><i class="ion ion-ios-wifi"></i></span>
|
|
|
|
|
|
|
|
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
<div class="row media" style="height:100px;">
|
|
|
|
|
|
|
|
<div class="col col-md-4 col-sm-4 align-self-center">
|
|
|
|
|
|
|
|
<img class="mh-100" src="/IoTCenter/images/light.png" style="width:48px;" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col col-md-8 col-sm-8 align-self-center">
|
|
|
|
|
|
|
|
<div class="row" style="line-height:28px;">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
光照度:
|
|
|
|
|
|
|
|
<span class="text-success" style="font-size:28px;" v-if="getDeviceDataAttr(device.number,'光照度','description')==='适中'">
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'光照度','description')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span v-else class="text-danger mx-2" style="font-size:28px;">
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'光照度','description')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'光照度','value')}}{{ getDeviceDataAttr(device.number,'光照度','unit')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--温湿度传感器-->
|
|
|
|
<!--温湿度传感器-->
|
|
|
|
<div class="col col-md-2 col-sm-3 col-4 " v-for="device in getDevices('温湿度传感器')">
|
|
|
|
<div v-for="device in getDevices('温湿度传感器')" class="col" style="min-width:320px;">
|
|
|
|
<div class="card">
|
|
|
|
<iot-humiture v-bind:device="device"></iot-humiture>
|
|
|
|
<div class="card-header">
|
|
|
|
|
|
|
|
{{device.displayName}}
|
|
|
|
|
|
|
|
<span class="float-right text-success" v-if="device.isOnline"><i class="ion ion-ios-wifi"></i></span>
|
|
|
|
|
|
|
|
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
<div class="row media" style="height:100px;">
|
|
|
|
|
|
|
|
<div class="col col-md-4 col-sm-4 align-self-center">
|
|
|
|
|
|
|
|
<img class="mh-100" src="/IoTCenter/images/humiture.png" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col col-md-8 col-sm-8 align-self-center">
|
|
|
|
|
|
|
|
<div class="row" style="height:50px;line-height:28px;">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
温度:
|
|
|
|
|
|
|
|
<span class="text-success mx-2" style="font-size:28px;" v-if="getDeviceDataAttr(device.number,'温度','description')==='适中'">
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'温度','description')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span v-else class="text-danger" style="font-size:28px;">
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'温度','description')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'温度','value')}}{{ getDeviceDataAttr(device.number,'温度','unit')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row" style="height:50px;line-height:28px;">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
湿度:
|
|
|
|
|
|
|
|
<span class="text-success" style="font-size:28px;" v-if="getDeviceDataAttr(device.number,'湿度','description')==='适中'">
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'湿度','description')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span v-else class="text-danger mx-2" style="font-size:28px;">
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'湿度','description')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'湿度','value')}}{{ getDeviceDataAttr(device.number,'湿度','unit')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--烟雾报警器-->
|
|
|
|
<!--烟雾报警器-->
|
|
|
|
<div class="col col-md-2 col-sm-3 col-4 " v-for="device in getDevices('烟雾报警器')">
|
|
|
|
<div v-for="device in getDevices('烟雾报警器')" class="col" style="min-width:320px;">
|
|
|
|
<div class="card">
|
|
|
|
<iot-smoke v-bind:device="device"></iot-smoke>
|
|
|
|
<div class="card-header">
|
|
|
|
|
|
|
|
{{device.displayName}}
|
|
|
|
|
|
|
|
<span class="float-right text-success" v-if="device.isOnline"><i class="ion ion-ios-wifi"></i></span>
|
|
|
|
|
|
|
|
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
<div class="row media" style="height:100px;">
|
|
|
|
|
|
|
|
<div class="col col-md-4 col-sm-4 align-self-center">
|
|
|
|
|
|
|
|
<img class="mh-100" src="/IoTCenter/images/smoke.png" style="width:48px;" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col col-md-8 col-sm-8 align-self-center">
|
|
|
|
|
|
|
|
<div class="row" style="line-height:28px;">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
状态:
|
|
|
|
|
|
|
|
<span class="text-success" style="font-size:28px;" v-if="getDeviceDataAttr(device.number,'状态','value')==='正常'">
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'状态','value')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span v-else class="text-danger mx-2" style="font-size:28px;">
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'状态','value')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--人体感应器-->
|
|
|
|
<!--人体感应器-->
|
|
|
|
<div class="col col-md-2 col-sm-3 col-4 " v-for="device in getDevices('人体感应器')">
|
|
|
|
<div v-for="device in getDevices('人体感应器')" class="col" style="min-width:320px;">
|
|
|
|
<div class="card">
|
|
|
|
<iot-person v-bind:device="device"></iot-person>
|
|
|
|
<div class="card-header">
|
|
|
|
|
|
|
|
{{device.displayName}}
|
|
|
|
|
|
|
|
<span class="float-right text-success" v-if="device.isOnline"><i class="ion ion-ios-wifi"></i></span>
|
|
|
|
|
|
|
|
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
<div class="row media" style="height:100px;">
|
|
|
|
|
|
|
|
<div class="col col-md-4 col-sm-4 align-self-center">
|
|
|
|
|
|
|
|
<img class="mh-100" src="/IoTCenter/images/person.png" style="width:48px;" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col col-md-8 col-sm-8 align-self-center">
|
|
|
|
|
|
|
|
<div class="row" style="line-height:28px;">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
状态:
|
|
|
|
|
|
|
|
<span class="text-success" style="font-size:28px;" v-if="getDeviceDataAttr(device.number,'状态','value')==='正常'">
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'状态','value')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span v-else class="text-danger mx-2" style="font-size:28px;">
|
|
|
|
|
|
|
|
{{getDeviceDataAttr(device.number,'状态','value')}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--电器-->
|
|
|
|
<!--电器-->
|
|
|
|