[fix] replay showing parameter errror
This commit is contained in:
@@ -387,7 +387,7 @@ export default {
|
||||
const duplicateParam = ['V_initial', 't_pulse', 'CURR_REC_START', 'CURR_REC_END']
|
||||
for (let i = 0; i < 4; i++) {
|
||||
const key = 'segment_order_' + String(i)
|
||||
const order = paramTable[this.deviceName][key].rev_func(params[key])
|
||||
const order = paramTable[this.deviceName][key].outputReadabilityData(params[key])
|
||||
if (parseInt(order) !== 0) { // if === 0, 代表沒有使用這個block
|
||||
for (let key of duplicateParam) {
|
||||
key = key + '_' + String(i)
|
||||
@@ -410,7 +410,7 @@ export default {
|
||||
this.dump()
|
||||
},
|
||||
fillShowDict (key, value) {
|
||||
const expVal = paramTable[this.deviceName][key].rev_func(value)
|
||||
const expVal = paramTable[this.deviceName][key].defaultUnit ? paramTable[this.deviceName][key].outputReadabilityData(value, paramTable[this.deviceName][key].unit[paramTable[this.deviceName][key].defaultUnit]) : paramTable[this.deviceName][key].outputReadabilityData(value)
|
||||
const name = typeof (paramTable[this.deviceName][key].showName) === 'function'
|
||||
? paramTable[this.deviceName][key].showName(this.mode)
|
||||
: paramTable[this.deviceName][key].showName
|
||||
|
||||
Reference in New Issue
Block a user