Compare commits

...

3 Commits

Author SHA1 Message Date
ROY 9f728b3220 [update] fix EIS eis DC_BIAS 2022-06-10 15:29:02 +08:00
ROY 65294ca360 [update] eis parameter bug 2022-06-08 18:05:48 +08:00
ROY 6e697674f9 [update] cv parameter bug 2022-06-08 17:44:42 +08:00
2 changed files with 7 additions and 7 deletions
@@ -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)])
}
}
},