|
|
|
@ -649,18 +649,26 @@
|
|
|
|
|
</div>
|
|
|
|
|
<template v-for="data in _.orderBy(device.Data,['DisplayOrder','Name'])">
|
|
|
|
|
<template v-if="data.Key==='code[]'">
|
|
|
|
|
<a v-for="key in JSON.parse(data.Value)" class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.Id,'22call','code='+key.value)">{{key.text}}</a>
|
|
|
|
|
<div class="col" v-for="(value, key, index) in _.chain(JSON.parse(data.Value)).groupBy(o => o.text.split('-')[0]).value()">
|
|
|
|
|
<div>{{key}}</div>
|
|
|
|
|
<div class="card">
|
|
|
|
|
<a v-for="btn in value" class="button button-large button-raised button-fill" href="javascript: ;" v-on:click="call(device.Id,'send','code='+btn.value)">
|
|
|
|
|
{{btn.text.indexOf('-')>0?btn.text.split('-')[1]:btn.text}}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-if="getDevices('串口控制器').length">
|
|
|
|
|
<div class="block-title">串口控制器</div>
|
|
|
|
|
<div class="block block-strong">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col" v-for="device in getDevices('串口控制器')">
|
|
|
|
|
<div class="col-100 tablet-50 desktop-25" v-for="device in getDevices('串口控制器')">
|
|
|
|
|
<div class="list">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|