|
@@ -29,7 +29,7 @@
|
|
|
<view class="ceiling" :style="{ top: tovw(CustomBar + tabsTop) }">
|
|
|
<tabs :tabs="tabs" @changeTab="changeTab" />
|
|
|
</view>
|
|
|
- <control ref="设备控制" :detail="detail" />
|
|
|
+ <control ref="设备控制" :detail="detail" @onUpdate="getDetail" />
|
|
|
<daily-record ref="设备日志" :w_deviceid="w_deviceid" />
|
|
|
<preview ref="详情信息" :detail="detail" />
|
|
|
<alerts ref="告警记录" :w_deviceid="w_deviceid" />
|
|
@@ -82,6 +82,7 @@ export default {
|
|
|
this.$Http.basic({
|
|
|
"id": 20230615103902,
|
|
|
"content": {
|
|
|
+ nocache: true,
|
|
|
"w_deviceid": this.w_deviceid
|
|
|
}
|
|
|
}).then(res => {
|
|
@@ -110,7 +111,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.detail = res.data;
|
|
|
-
|
|
|
+
|
|
|
if (init) {
|
|
|
this.$refs.hd.getList(this.w_deviceid, res.data.prodnum).then(num => this.tabsTop = num)
|
|
|
setTimeout(() => { this.changeTab({ name: this.showTab }, true) }, 100)
|
|
@@ -177,8 +178,6 @@ export default {
|
|
|
font-size: 12px;
|
|
|
color: #666666;
|
|
|
margin-bottom: 5px;
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
</style>
|