设备节点直接更新修改为添加、删除、修改后需要点击应用再更新至HslServer
This commit is contained in:
@@ -120,11 +120,6 @@ export default {
|
||||
value: 'float',
|
||||
label: 'float (浮点数)'
|
||||
},
|
||||
{
|
||||
value: 'short',
|
||||
label: 'short'
|
||||
},
|
||||
|
||||
{
|
||||
value: 'bool',
|
||||
label: 'bool (逻辑值)'
|
||||
@@ -316,7 +311,6 @@ export default {
|
||||
},
|
||||
handleCellDataChange ({ rowIndex, row }) {
|
||||
this.devicePointData[rowIndex] = row
|
||||
this.setDeviceConfigure()
|
||||
},
|
||||
bandingNodeTemplate ({ index }) {
|
||||
this.$refs.d2Crud.showDialog({
|
||||
@@ -480,20 +474,18 @@ export default {
|
||||
message: '数据类型为string,长度不能为空',
|
||||
type: 'error'
|
||||
})
|
||||
this.formOptions.saveLoading = false
|
||||
return false
|
||||
}
|
||||
assign(row, {id:this.devicePointData.length + 1, showBindButton:true, showCopyButton:true, showRemoveButton:true, showSendButton:true, })
|
||||
this.devicePointData.push(row)
|
||||
await this.setDeviceConfigure()
|
||||
await this.getDevice()
|
||||
done()
|
||||
}
|
||||
this.formOptions.saveLoading = false
|
||||
},
|
||||
|
||||
async delDevicePoint ({ index, row }, done) {
|
||||
this.devicePointData.splice(index, 1)
|
||||
this.$refs.deviceConfigure.deviceConfigureModelValue.RequestNode = this.devicePointData
|
||||
await this.setDeviceConfigure()
|
||||
this.$delete(this.devicePointData, index)
|
||||
done()
|
||||
},
|
||||
async getDevicePoint () {
|
||||
@@ -505,8 +497,7 @@ export default {
|
||||
}
|
||||
},
|
||||
async devicePointBandingNode ({ index, row }, done) {
|
||||
this.devicePointData[index]['@Binding'] = row.nodeCode
|
||||
this.setDeviceConfigure()
|
||||
this.$set(this.devicePointData[index], '@Binding', row.nodeCode)
|
||||
done()
|
||||
},
|
||||
async setDeviceConfigure () {
|
||||
|
||||
Reference in New Issue
Block a user