增加设备节点当前值监控&当前值写入

This commit is contained in:
wu
2022-08-23 10:07:32 +08:00
parent 98b97af791
commit 5403b4699b
4 changed files with 572 additions and 363 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -117,7 +117,6 @@ export default {
this.rules = rules
this.deviceConfigureModelValue = assign(deviceConfigureModelValue, { '@ParentDeviceCode': '' })
//this.deviceConfigureModelValue = this.choosable === 'true' ? assign(deviceConfigureModelValue, { parent_device_code: '' }) : deviceConfigureModelValue
console.log(this.deviceConfigureModelValue)
this.deviceConfigureFormItem = deviceConfigureFormItemData[e]
},
setDeviceDefaultFormItemValue (val) {

View File

@@ -37,7 +37,7 @@
</el-tag>
<el-alert v-if="this.selectedServerData.updated === 't'" title="设备配置已更改,请在服务配置界面重启对应服务生效" type="warning" style="width:400px;display: inline-block;vertical-align: middle; margin-left: 5px;" :closable="false" />
</div>
<device :server='server' @changeStatus='changeSelectedServerStatus' @changeServerConfig='changeSelectedServerConfig' />
<device ref="deviceTemplate" :server='server' @changeStatus='changeSelectedServerStatus' @changeServerConfig='changeSelectedServerConfig' />
</el-drawer>
</d2-container>
@@ -381,6 +381,9 @@ export default {
},
closeDrawer () {
this.server = { id: 0, url: '', port: '' }
if(this.$refs.deviceTemplate.timing){
this.$refs.deviceTemplate.clearTime()
}
},
changeSelectedServerStatus (status) {
this.selectedServerData.status = status || 'offline'