英/法/德/西/阿/波语言配置

This commit is contained in:
huangjp
2026-01-30 09:35:52 +08:00
parent a46c4d23bf
commit 4c3039ade7
25 changed files with 4181 additions and 1156 deletions

View File

@ -98,15 +98,37 @@ export default {
components: { messageModel },
data () {
return {
Langlist: [{
value: 'zh_CN',
label: '中文'
},
{
value: 'en_US',
label: 'English'
}
],
Langlist: [{
value: 'zh_CN',
label: '中文'
},
{
value: 'en_US',
label: 'English'
},
{
value: 'fr_FR',
label: 'French'
}
,
{
value: 'es_ES',
label: 'Spanish'
},
{
value: 'ar_EG',
label: 'Arabic'
},
{
value: 'de_DE',
label: 'German'
}
,
{
value: 'pl_PL',
label: 'Polish'
}
],
phoneNo: "",
username: "",
password: "",
@ -201,10 +223,25 @@ export default {
}
const res = await this.$u.api.GetLanguageConfig('zh')
const res2 = await this.$u.api.GetLanguageConfig('en')
const res3 = await this.$u.api.GetLanguageConfig('fr')
const res4 = await this.$u.api.GetLanguageConfig('es')
const res5 = await this.$u.api.GetLanguageConfig('ar')
const res6 = await this.$u.api.GetLanguageConfig('de')
const res7 = await this.$u.api.GetLanguageConfig('pl')
const result = JSON.parse(res.data[0].content)
const result2 = JSON.parse(res2.data[0].content)
const result3 = JSON.parse(res3.data[0].content)
const result4 = JSON.parse(res4.data[0].content)
const result5 = JSON.parse(res5.data[0].content)
const result6 = JSON.parse(res6.data[0].content)
const result7 = JSON.parse(res7.data[0].content)
this.$i18n.mergeLocaleMessage('en_US', result2) //添加英文
this.$i18n.mergeLocaleMessage('zh_CN', result) //添加中文
this.$i18n.mergeLocaleMessage('fr_FR', result3) //添加法语
this.$i18n.mergeLocaleMessage('es_ES', result4) //添加西班牙语
this.$i18n.mergeLocaleMessage('ar_EG', result5) //添加阿拉伯语
this.$i18n.mergeLocaleMessage('de_DE', result6) //添加德语
this.$i18n.mergeLocaleMessage('pl_PL', result7) //添加波兰语
}
}
},
@ -376,7 +413,6 @@ export default {
aesKey: publicData.keyData,
iv: publicData.ivData,
}
this.$u.api
.login(params)
.then((res) => {

View File

@ -105,7 +105,7 @@ export default {
flex-direction: column;
align-items: center;
width: 199rpx;
height: 110rpx;
// height: 110rpx;
justify-content: center;
padding: 10rpx;
background: #d7e9e548;
@ -143,9 +143,9 @@ export default {
.title {
padding-left: 10rpx;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; //文本超出省略号替
// white-space: nowrap;
// overflow: hidden;
// text-overflow: ellipsis; //文本超出省略号替
color: #2a2a2a;
}
}

View File

@ -105,7 +105,7 @@ export default {
flex-direction: column;
align-items: center;
width: 199rpx;
height: 110rpx;
// height: 110rpx;
justify-content: center;
padding: 10rpx;
background: rgba(254, 131, 15, 0.05);
@ -143,9 +143,9 @@ export default {
.title {
padding-left: 10rpx;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; //文本超出省略号替
// white-space: nowrap;
// overflow: hidden;
// text-overflow: ellipsis; //文本超出省略号替
color: #2a2a2a;
}
}

View File

@ -35,9 +35,10 @@
<view class="box">
<Section :title="$t('homePage.home.stationTopo')" />
<zero-loading v-if="loading"></zero-loading>
<!-- 加载中占位可选 -->
<view v-else class="loading-tip">
<zero-loading v-if="tuopoloading"></zero-loading>
<!-- <zero-loading v-if="tuopoloading"></zero-loading> -->
<cixi v-if="topologyType === 0" ref="tuopu" />
<kejiyuan v-else-if="topologyType === 2" ref="tuopu" />
<lingchao v-else-if="topologyType === 3" ref="tuopu" />
@ -52,9 +53,10 @@
<runda215 v-else-if="topologyType === 12" ref="tuopu" />
<third v-else-if="topologyType === 13" ref="tuopu" />
<mdPviese v-else-if="topologyType === 14" ref="tuopu" />
<pv2first v-else-if="topologyType === 1 && inverterFlag === 1 && pvTopologyType === 2" ref="tuopu" />
<pv2first v-else-if="topologyType === 1 && inverterFlag === 1 && pvTopologyType === 3" ref="tuopu" />
<standard v-else ref="tuopu" />
</view>
</view>
<view v-if="topologyType === 9" class="box">
<Section :title="$t('homePage.home.deviceMonitor')" />
<devicemonitoring ref="deviceFire" />
@ -205,7 +207,9 @@
tuopoloading:false,
topCenterPvArr:[
{name:'pv1AndStorage_261',value:1},
{name:'pv2AndStorage_261',value:2}
{name:'pv1AndStorage_sts_261',value:2},
{name:'pv2AndStorage_261',value:3},
{name:'pv2AndStorage_sts_261',value:4}
],
pvTopologyType:0,
society: [{

View File

@ -103,6 +103,26 @@
{
value: 'en_US',
label: 'English'
},
{
value: 'fr_FR',
label: 'French'
},
{
value: 'es_ES',
label: 'Spanish'
},
{
value: 'ar_EG',
label: 'Arabic'
},
{
value: 'de_DE',
label: 'German'
},
{
value: 'pl_PL',
label: 'Polish'
}
],
};