Compare commits

...

4 Commits

Author SHA1 Message Date
peterlu14 a77a31b7aa [update] remove get cache from configuration & time_duration 2022-06-20 18:29:23 +08:00
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
4 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ export default {
if (this.$refs.devices_ref != null) {
await this.$refs.devices_ref.loadingDone()
}
await this.taskContentChartInitCustomizedFromCache()
// await this.taskContentChartInitCustomizedFromCache()
this.getParmDone = true
},
async '+/get_device_info/+' (data, topic) {
@@ -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)
}
@@ -381,6 +381,7 @@
</va-tree-category>
<va-tree-category
v-if="workingModeSelect != null && ![0,1,8,12,14,15].includes(workingModeSelect.id)"
style="font-size: 20px;"
:label="'Time Duration ( ' + timeDurationNumber + 's )'">
<va-tree-node>
@@ -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)])
}
}
},