|
|
@ -55,12 +55,12 @@ |
|
|
|
|
|
|
|
<div class="controlBox"> |
|
|
|
<el-button type="primary" @click.native="____onAddDeviceItem()">添加信息</el-button> |
|
|
|
<el-button type="primary" @click="____publishInfo" :disabled="selectedBdMsg.length == 0">发布信息</el-button> |
|
|
|
<el-button type="primary" @click="____publishInfo" :disabled="selectedBdMsg.length <= 0">发布信息</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="partCon"> |
|
|
|
<!-- {{ selectedBdMsg }} --> |
|
|
|
<vuescroll :ops="scrollOptions" class="templateBox"> |
|
|
|
<vuescroll :ops="scrollOptions" class="templateBox" v-if="selectedBdMsg.length>0"> |
|
|
|
<div v-for="(itm, indx) in selectedBdMsg" :key="indx" class="tplItem"> |
|
|
|
<!-- 模板内容 --> |
|
|
|
<BoardPreview class="boardPreview" :boardWH="selectedSize" :tpl="itm"></BoardPreview> |
|
|
@ -75,6 +75,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</vuescroll> |
|
|
|
<p style="text-align: center; margin: 100px; 0" v-else>请从设备回读或从模板添加信息...</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- ++++++++++右边部分:信息模板++++++++++ --> |
|
|
@ -751,7 +752,7 @@ export default { |
|
|
|
this.$message.warning('该设备缺少iotDeviceId参数!'); |
|
|
|
} |
|
|
|
this.selectedDevice = _.find(this.boardSizeDic[this.selectedSize].list , {iotDeviceId : this.checkedDeviceIds[0]}); |
|
|
|
this.____forkDeviceInfo(this.selectedDevice); |
|
|
|
// this.____forkDeviceInfo(this.selectedDevice); |
|
|
|
}, |
|
|
|
// ____onCheckDeviceInfo(item) { |
|
|
|
// this.selectedDevice = _.find(this.boardSizeDic[this.selectedSize].list, { iotDeviceId: value[0] }); |
|
|
|