You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/WebSPA/wwwroot/pages/iot/device/curtain.html

29 lines
1.5 KiB

<template>
<div class="card switch" style="box-sizing:border-box;height:150px;margin-top:10px;">
<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" style="height:100%;width:300px;margin: 0 auto;">
<div class="col-3 align-self-center">
<img class="mh-100" src="/images/curtain.svg" style="width:48px;" />
</div>
<div class="col-9 align-self-center">
<div class="row" style="line-height:28px;">
<span class="badge badge-info" style="line-height:26px;background-color:#07c160;margin:5px;">{{getDeviceDataValue(device,'状态')}}</span>
<img style="height:32px;margin:5px;" v-on:click="execApi(device.number,'/Curtain/On')" src="/images/left.svg" />
<img style="height:32px;margin:5px;" v-on:click="execApi(device.number,'/Curtain/Stop')" src="/images/stop.svg" />
<img style="height:32px;margin:5px;" v-on:click="execApi(device.number,'/Curtain/Off')" src="/images/right.svg" />
</div>
</div>
</div>
</div>
</div>
</template>
<script>
({
props: ['device']
});
</script>