Former-commit-id: f0466ac5cd98f3a591d5b30758157b8b8f3706fa
Former-commit-id: c5f2e2ca62f703c69815945d309336e25a46c59b
TSXN
wanggang 5 years ago
parent 07995b8411
commit a15166e652

@ -6,7 +6,7 @@
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
</div>
<div class="card-body">
<div class="row" style="height:100%;width:300px;margin: 0 auto;">
<div class="row" style="height:100%;width:250px;margin: 0 auto;">
<div class="col-4 align-self-center">
<img class="mh-100" :src="device.product.image" style="width:48px;" />
</div>

@ -6,7 +6,7 @@
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
</div>
<div class="card-body">
<div class="row" style="height:100%;width:300px;margin: 0 auto;">
<div class="row" style="height:100%;width:250px;margin: 0 auto;">
<div class="col-4 align-self-center">
<img class="mh-100" :src="device.product.image" style="width:48px;" />
</div>

@ -4,7 +4,7 @@
{{device.displayName}}
</div>
<div class="card-body">
<div class="row" style="height:100%;width:300px;margin: 0 auto;">
<div class="row" style="height:100%;width:250px;margin: 0 auto;">
<div class="col-4 align-self-center">
<img class="mh-100" :src="device.product.image" style="width:48px;" />
</div>

@ -6,7 +6,7 @@
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
</div>
<div class="card-body">
<div class="row" style="height:100%;width:300px;margin: 0 auto;">
<div class="row" style="height:100%;width:250px;margin: 0 auto;">
<div class="col-3 align-self-center">
<img class="mh-100" :src="device.product.image" style="width:48px;" />
</div>
@ -14,7 +14,7 @@
<div class="row" style="height:25px;line-height:25px;">
<span>
温度:
<span class="text-success mx-2" style="font-size:20px;" v-if="getDeviceDataDescription(device,'温度')==='适中'">
<span class="text-success" style="font-size:20px;" v-if="getDeviceDataDescription(device,'温度')==='适中'">
{{getDeviceDataDescription(device,'温度')}}
</span>
<span v-else class="text-danger" style="font-size:20px;">
@ -29,7 +29,7 @@
<span class="text-success" style="font-size:20px;" v-if="getDeviceDataDescription(device,'湿度')==='适中'">
{{getDeviceDataDescription(device,'湿度')}}
</span>
<span v-else class="text-danger mx-2" style="font-size:20px;">
<span v-else class="text-danger" style="font-size:20px;">
{{getDeviceDataDescription(device,'湿度')}}
</span>
{{getDeviceData(device,'湿度')}}

@ -6,18 +6,18 @@
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
</div>
<div class="card-body">
<div class="row" style="height:100%;width:300px;margin: 0 auto;">
<div class="row" style="height:100%;width:250px;margin: 0 auto;">
<div class="col-3 align-self-center">
<img class="mh-100" :src="device.product.image" style="width:48px;" />
</div>
<div class="col-9 align-self-center">
<div class="row" style="line-height:28px;">
<span>
照度
<span class="text-success" style="font-size:28px;" v-if="getDeviceData(device,'状态')==='适中'">
<span class="text-success" style="font-size:20px;" v-if="getDeviceData(device,'状态')==='适中'">
{{getDeviceDataDescription(device,'光照度')}}
</span>
<span v-else class="text-danger mx-2" style="font-size:28px;">
<span v-else class="text-danger" style="font-size:20px;">
{{getDeviceDataDescription(device,'光照度')}}
</span>
{{getDeviceData(device,'光照度')}}

@ -6,7 +6,7 @@
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
</div>
<div class="card-body">
<div class="row" style="height:100%;width:300px;margin: 0 auto;">
<div class="row" style="height:100%;width:250px;margin: 0 auto;">
<div class="col-4 align-self-center">
<img class="mh-100" :src="device.product.image" style="width:48px;" />
</div>
@ -14,10 +14,10 @@
<div class="row" style="line-height:28px;">
<span>
状态:
<span class="text-success" style="font-size:28px;" v-if="getDeviceDataValue(device,'状态')==='正常'">
<span class="text-success" style="font-size:20px;" v-if="getDeviceDataValue(device,'状态')==='正常'">
{{getDeviceDataValue(device,'状态')}}
</span>
<span v-else class="text-danger mx-2" style="font-size:28px;">
<span v-else class="text-danger" style="font-size:20px;">
{{getDeviceDataValue(device,'状态')}}
</span>
</span>

@ -6,7 +6,7 @@
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
</div>
<div class="card-body">
<div class="row" style="height:100%;width:300px;margin: 0 auto;">
<div class="row" style="height:100%;width:250px;margin: 0 auto;">
<div class="col-4 align-self-center">
<img class="mh-100" :src="device.product.image" style="width:48px;" />
</div>
@ -14,10 +14,10 @@
<div class="row" style="line-height:28px;">
<span>
状态:
<span class="text-success" style="font-size:28px;" v-if="getDeviceDataValue(device,'状态')==='正常'">
<span class="text-success" style="font-size:20px;" v-if="getDeviceDataValue(device,'状态')==='正常'">
{{getDeviceDataValue(device,'状态')}}
</span>
<span v-else class="text-danger mx-2" style="font-size:28px;">
<span v-else class="text-danger" style="font-size:20px;">
{{getDeviceDataValue(device,'状态')}}
</span>
</span>

@ -6,18 +6,25 @@
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
</div>
<div class="card-body">
<div class="row" style="height:100%;width:300px;margin: 0 auto;">
<div class="col-4 align-self-center">
<div class="row" style="height:100%;width:250px;margin: 0 auto;">
<div class="col-3 align-self-center">
<img class="mh-100" :src="device.product.image" style="width:48px;" />
</div>
<div class="col-8 align-self-center">
<div class="col-2 align-self-center">
<div class="row" style="line-height:28px;">
<span class="badge badge-info" style="line-height:26px; margin-right: 10px;" v-if="isSmart">{{electricity}} kW‧h</span>
<span class="badge badge-info" style="line-height:26px; margin-right: 10px;" v-if="isSmart">{{power}} W</span>
<img class="pointer" v-if="getDeviceDataValue(device,'状态')==='开'" @click="execApi(device.number,'/Socket/Off')" src="images/on.svg" />
<img class="pointer" v-else="getDeviceDataValue(device,'状态')==='关'" @click="execApi(device.number,'/Socket/On')" src="images/off.svg" />
<img class="pointer" v-if="getDeviceDataValue(device,'状态')==='开'"
@click="execApi(device.number,'/Socket/Off')" src="images/on.svg" />
<img class="pointer" v-else="getDeviceDataValue(device,'状态')==='关'"
@click="execApi(device.number,'/Socket/On')" src="images/off.svg" />
</div>
</div>
<div class="col-7 align-self-center">
<div class="row" style="height: 25px; line-height: 25px;"><span
style="line-height:26px; margin-right: 10px;" v-if="isSmart">{{electricity}} kW‧h</span>
</div>
<div class="row" style="height: 25px; line-height: 20px;"> <span
style="line-height:26px; margin-right: 10px;" v-if="isSmart">{{power}} W</span></div>
</div>
</div>
</div>
</div>

@ -6,7 +6,7 @@
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
</div>
<div class="card-body">
<div class="row" style="height:100%;width:300px;margin: 0 auto;">
<div class="row" style="height:100%;width:250px;margin: 0 auto;">
<div class="col-4 align-self-center">
<img class="mh-100" :src="device.product.image" style="width:48px;" />
</div>

@ -6,7 +6,7 @@
<span class="float-right text-danger" v-else><i class="ion ion-ios-wifi"></i></span>
</div>
<div class="card-body">
<div class="row" style="height:100%;width:300px;margin: 0 auto;">
<div class="row" style="height:100%;width:250px;margin: 0 auto;">
<div class="col-4 align-self-center">
<img class="mh-100" :src="device.product.image" style="width:48px;" />
</div>

@ -30,3 +30,6 @@ img.pointer {
height: 32px;
width: 32px;
}
th{
white-space: nowrap;
}

@ -1,5 +1,5 @@
var config = {
version: '1.0.0.20092901',
version: '1.0.0.20093001',
debug: window.location.search.indexOf('debug') > -1,
baseUrl: window.location.protocol + '//' + window.location.host,
uploadUrl: window.location.protocol + '//' + window.location.host + '/IoTCenter/File/Upload',

Loading…
Cancel
Save