Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f728b3220 | |||
| 65294ca360 | |||
| 6e697674f9 |
@@ -417,7 +417,7 @@ export default {
|
||||
this.$refs.PointSpacing.itemChange(this.PointSpacing)
|
||||
}
|
||||
|
||||
this.DCVolt = (taskInfo.getDeviceInfo(this.deviceID).parameterSet.DC_BIAS - 15000) / 10
|
||||
this.DCVolt = String(Math.round((taskInfo.getDeviceInfo(this.deviceID).parameterSet.DC_BIAS - 25000) / 12.5))
|
||||
if (this.$refs.DCVolt != null) {
|
||||
this.$refs.DCVolt.itemChange(this.DCVolt)
|
||||
}
|
||||
@@ -464,7 +464,7 @@ export default {
|
||||
this.$refs.stopVoltMinNumber.updateVoltNumber(this.stopVoltMinNumber)
|
||||
}
|
||||
|
||||
this.voltInitialNumber = (taskInfo.getDeviceInfo(this.deviceID).parameterSet.VOLT_INITIAL - 25000) / 5
|
||||
this.voltInitialNumber = (taskInfo.getDeviceInfo(this.deviceID).parameterSet.VOLT_INITIAL - 25000) / 12.5
|
||||
if (this.$refs.voltInitialNumber != null) {
|
||||
this.$refs.voltInitialNumber.updateVoltNumber(this.voltInitialNumber)
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
inputeKey: 0,
|
||||
itemInput: String(Math.round(((taskInfo.getDeviceInfo(this.deviceID).parameterSet[this.parameterName]) - 15000) / 10)),
|
||||
itemInput: String(Math.round((taskInfo.getDeviceInfo(this.deviceID).parameterSet.DC_BIAS - 25000) / 12.5)),
|
||||
}
|
||||
},
|
||||
mqtt: {
|
||||
@@ -52,12 +52,12 @@ export default {
|
||||
this.itemInput = val
|
||||
if (this.itemInput > 2000) {
|
||||
this.itemInput = 2000
|
||||
} else if (this.itemInput < -1500) {
|
||||
this.itemInput = -1500
|
||||
} else if (this.itemInput < -1800) {
|
||||
this.itemInput = -1800
|
||||
} else {
|
||||
this.inputeKey++
|
||||
if (parseInt(this.itemInput) !== Math.round(((taskInfo.getDeviceInfo(this.deviceID).parameterSet[this.parameterName]) - 15000) / 10)) {
|
||||
this.$emit('parameterChange', [this.parameterName, this.itemInput * 10 + 15000])
|
||||
if (this.itemInput !== String(Math.round((taskInfo.getDeviceInfo(this.deviceID).parameterSet.DC_BIAS - 25000) / 12.5))) {
|
||||
this.$emit('parameterChange', [this.parameterName, Math.round(this.itemInput * 12.5 + 25000)])
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user