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