|
|
|
@ -389,9 +389,9 @@
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch2/Off')">全关</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch2/L1On')" v-if="getData(device,'状态4')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch2/L1On')" v-if="getData(device,'L1状态')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch2/L1Off')" v-else>关</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch2/L2On')" v-if="getData(device,'状态5')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch2/L2On')" v-if="getData(device,'L2状态')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch2/L2Off')" v-else>关</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -427,11 +427,11 @@
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch3/Off')">全关</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch3/L1On')" v-if="getData(device,'状态4')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch3/L1On')" v-if="getData(device,'L1状态')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch3/L1Off')" v-else>关</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch3/L2On')" v-if="getData(device,'状态5')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch3/L2On')" v-if="getData(device,'L2状态')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch3/L2Off')" v-else>关</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch3/L3On')" v-if="getData(device,'状态6')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch3/L3On')" v-if="getData(device,'L3状态')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Switch3/L3Off')" v-else>关</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -459,8 +459,8 @@
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/ColorLight/On')">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/ColorLight/Off')">关</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/ColorLight/On')" v-if="getData(device,'状态')==='关'">开</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/ColorLight/Off')" v-else>关</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<form class="ajax" method="get" :action="vm.IoTServer+'/App/Exec'">
|
|
|
|
@ -498,9 +498,9 @@
|
|
|
|
|
<i class="f7-icons">info</i>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item-inner">
|
|
|
|
|
<div class="item-title item-label">色度</div>
|
|
|
|
|
<div class="item-title item-label">色调</div>
|
|
|
|
|
<div class="item-input-wrap">
|
|
|
|
|
<input class="ajax" type="range" min="0" step="1" max="255" name="Hue" :value="getValue(device,'色度')" />
|
|
|
|
|
<input class="ajax" type="range" min="0" step="1" max="255" name="Hue" :value="getValue(device,'色调')" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
@ -546,6 +546,49 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-if="getDevices('红外转发器').length">
|
|
|
|
|
<div class="block-title">红外转发器</div>
|
|
|
|
|
<div class="block block-strong">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-100 tablet-50 desktop-25" v-for="device in getDevices('红外转发器')">
|
|
|
|
|
<div class="list">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<a class="item-link item-content"
|
|
|
|
|
:href="'/device/'+device.Number+'/name/'+device.Name">
|
|
|
|
|
<div class="item-media"> <img :src="'images/'+device.Icon+'.png'" /></div>
|
|
|
|
|
<div class="item-inner">
|
|
|
|
|
<div class="item-title">{{device.DisplayName||device.Name}}</div>
|
|
|
|
|
<div class="item-after"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Ir/KeyCodeType1On')" v-if="getData(device,'空调')==='关'">启用空调</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Ir/KeyCodeType1Off')" v-else>禁用空调</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Ir/KeyCodeType2On')" v-if="getData(device,'电视')==='关'">启用电视</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Ir/KeyCodeType2Off')" v-else>禁用电视</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Ir/KeyCodeType5On')" v-if="getData(device,'电视')==='关'">启用自定义</a>
|
|
|
|
|
<a class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.GatewayNumber,device.Number,'/Ir/KeyCodeType5Off')" v-else>禁用自定义</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row" v-if="getData(device,'空调')==='开'">
|
|
|
|
|
<form class="ajax" method="get" :action="vm.IoTServer+'/App/Exec'">
|
|
|
|
|
<input type="hidden" name="ConnectionId" :value="vm.ConnectionId" />
|
|
|
|
|
<input type="hidden" name="Gateway" :value="device.GatewayNumber" />
|
|
|
|
|
<input type="hidden" name="Number" :value="device.Number" />
|
|
|
|
|
<input type="hidden" name="Type" value="1" />
|
|
|
|
|
<div class="row">
|
|
|
|
|
<input name="power" type="button" value="2" class="ajax" />
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</f7-page>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="page-device">
|
|
|
|
|