Compare commits

..

2 Commits

Author SHA1 Message Date
wxs
a31693bad3 样式调整 2026-03-06 11:30:58 +08:00
wxs
19848df78e 语言切换时自动请求数据字典 2026-03-06 11:26:04 +08:00
2 changed files with 5 additions and 2 deletions

View File

@ -173,12 +173,14 @@ export default {
...mapActions('app', ['reload']), ...mapActions('app', ['reload']),
...mapMutations('app', ['SET_SCENE_ID', 'SET_SCENE_INFO', 'SET_MENUS_CHOSE']), ...mapMutations('app', ['SET_SCENE_ID', 'SET_SCENE_INFO', 'SET_MENUS_CHOSE']),
...mapMutations('user', ['SET_ROLES', 'SET_USER_ID', 'SET_USERNAME']), ...mapMutations('user', ['SET_ROLES', 'SET_USER_ID', 'SET_USERNAME']),
...mapActions('dict', ['getDict']),
handleSelect(key) { handleSelect(key) {
this.SET_MENUS_CHOSE(key) this.SET_MENUS_CHOSE(key)
}, },
changeLocale(lang) { changeLocale(lang) {
this.$i18n.locale = lang this.$i18n.locale = lang
localStorage.setItem('locale', lang) localStorage.setItem('locale', lang)
this.getDict()
// 处理gis上已添加的entity // 处理gis上已添加的entity
viewer.entities.values.forEach(el => { viewer.entities.values.forEach(el => {
if (el.id.includes('area')) { if (el.id.includes('area')) {

View File

@ -1327,7 +1327,7 @@
position: absolute; position: absolute;
left: 50%; left: 50%;
top: calc(100vh - 60px); top: calc(100vh - 60px);
width: 360px; width: 400px;
transform: translateX(-50%); transform: translateX(-50%);
background-color: $--color-black-1-alpha; background-color: $--color-black-1-alpha;
padding: 6px 10px; padding: 6px 10px;
@ -1347,9 +1347,10 @@
align-items: center; align-items: center;
.is-label { .is-label {
text-align: center;
flex: none; flex: none;
color: $--color-text-1; color: $--color-text-1;
width: 60px; width: 90px;
} }
} }
} }