英文版本配置,部分报错问题修复

This commit is contained in:
2025-08-14 14:41:36 +08:00
parent 79d755fbad
commit de8e81a5e2
19 changed files with 188 additions and 187 deletions

View File

@ -36,14 +36,14 @@
<view class="other-value">
<view class="top-value">
<view class="title">
{{ this.$t('homePage.device.maxVol') }}
{{ $t('homePage.device.maxVol') }}
</view>
<view class="value">
{{panelData.csingleMaxVolData | isNull}}V
</view>
</view>
<view class="bottom-value">
{{ this.$t('homePage.device.cellPostion') }}{{panelData.csingleMaxVolPosition | isNull}}
{{ $t('homePage.device.cellPostion') }}{{panelData.csingleMaxVolPosition | isNull}}
</view>
</view>
</view>
@ -52,14 +52,14 @@
<view class="other-value">
<view class="top-value">
<view class="title">
{{ this.$t('homePage.device.minVol') }}
{{ $t('homePage.device.minVol') }}
</view>
<view class="value">
{{panelData.csingleMinVolData | isNull}}V
</view>
</view>
<view class="bottom-value">
{{ this.$t('homePage.device.cellPostion') }}{{panelData.csingleMinVolPosition | isNull}}
{{ $t('homePage.device.cellPostion') }}{{panelData.csingleMinVolPosition | isNull}}
</view>
</view>
</view>
@ -68,14 +68,14 @@
<view class="other-value">
<view class="top-value">
<view class="title">
{{ this.$t('homePage.device.maxTem') }}
{{ $t('homePage.device.maxTem') }}
</view>
<view class="value">
{{panelData.csingleMaxTemData | isNull}}
</view>
</view>
<view class="bottom-value">
{{ this.$t('homePage.device.cellPostion') }}{{panelData.csingleMaxTemPosition | isNull}}
{{ $t('homePage.device.cellPostion') }}{{panelData.csingleMaxTemPosition | isNull}}
</view>
</view>
</view>
@ -84,14 +84,14 @@
<view class="other-value">
<view class="top-value">
<view class="title">
{{ this.$t('homePage.device.minTem') }}
{{ $t('homePage.device.minTem') }}
</view>
<view class="value">
{{panelData.csingleMinTemData | isNull}}
</view>
</view>
<view class="bottom-value">
{{ this.$t('homePage.device.cellPostion') }}{{panelData.csingleMinTemPosition | isNull}}
{{ $t('homePage.device.cellPostion') }}{{panelData.csingleMinTemPosition | isNull}}
</view>
</view>
</view>
@ -481,6 +481,7 @@
const categories2 = []
const data = []
const data2 = []
let _that = this
if (val) {
val.voltageList.forEach(i => {
@ -509,10 +510,10 @@
var relNameT = ''
var relValT = ''
relNameV += params[0].name + 'V'
relValV += params[0].value + this.$t('homePage.device.num')
relValV += params[0].value + _that.$t('homePage.device.num')
relNameT += params[1].name + '℃'
relValT += params[1].value + this.$t('homePage.device.num')
return `${params[0].marker}${this.$t('homePage.device.tem')}(${relNameV})` + '\n' + relValV + '\n' + `${ params[1].marker}${this.$t('homePage.device.vol')}(${relNameT})` + '\n' + relValT
relValT += params[1].value + _that.$t('homePage.device.num')
return `${params[0].marker}${_that.$t('homePage.device.tem')}(${relNameV})` + '\n' + relValV + '\n' + `${ params[1].marker}${_that.$t('homePage.device.vol')}(${relNameT})` + '\n' + relValT
},
position: function(point, params, dom, rect, size) {
// 鼠标坐标和提示框位置的参考坐标系是以外层div的左上角那一点为原点x轴向右y轴向下