Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a77a31b7aa | |||
| 9f728b3220 | |||
| 65294ca360 | |||
| 6e697674f9 |
@@ -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)])
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user