增加设备节点当前值监控&当前值写入
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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) {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user