|
@@ -20,11 +20,11 @@
|
|
|
@next="onNextDate"
|
|
|
></calendar>
|
|
|
</div>
|
|
|
- <div class="item-mode" v-if="source.type == 2">
|
|
|
+ <div class="item-mode" v-if="source.type == 2 || source.type == 3">
|
|
|
<div class="iconfont icon-show_roaming" :class="{ active: mode == 0 }" @click="onModeChange(0)"></div>
|
|
|
<div class="iconfont icon-show_plane" :class="{ active: mode == 1 }" @click="onModeChange(1)"></div>
|
|
|
</div>
|
|
|
- <div class="item-density" v-if="source.type == 2 && mode == 1" :class="{ active: showDensity }" @click="showDensity = !showDensity">
|
|
|
+ <div class="item-density" v-if="(source.type == 2 && mode == 1) || (source.type == 3 && mode == 1)" :class="{ active: showDensity }" @click="showDensity = !showDensity">
|
|
|
<span>{{ densityType.text }}</span>
|
|
|
<i class="iconfont icon-arrows_down"></i>
|
|
|
<ul>
|
|
@@ -120,9 +120,9 @@ import Calendar from '@/components/calendar'
|
|
|
import Files from '@/components/files'
|
|
|
import TagManager from '@/components/files/TagManager'
|
|
|
import sync, { beforeChangeURL, loadSourceScene, loadTargetScene, setPanoWithBim, flyToP1P2 } from '@/utils/sync'
|
|
|
-import i18n from '@/i18n'
|
|
|
+import i18n, { getLocale, useI18n, useScope, setI18nLanguage, loadLocaleMessages } from '@/i18n'
|
|
|
import Rules from './Rules'
|
|
|
-const { t } = i18n.global
|
|
|
+const { t } = useI18n({ useScope: 'global' })
|
|
|
const isDev = process.env.VUE_APP_TEST == 1
|
|
|
const rules = []
|
|
|
const tags = ref([])
|
|
@@ -217,7 +217,7 @@ const sourceURL = computed(() => {
|
|
|
beforeChangeURL('source')
|
|
|
|
|
|
if (bimChecked.value && !dbsChecked.value) {
|
|
|
- return `smart-bim.html?m=${project.value.bimData.bimOssFilePath}`
|
|
|
+ return `smart-bim.html?m=${project.value.bimData.bimOssFilePath}&lang=${getLocale()}`
|
|
|
}
|
|
|
|
|
|
if (!source.value) {
|
|
@@ -226,23 +226,23 @@ const sourceURL = computed(() => {
|
|
|
getTagList(source.value.num)
|
|
|
if (source.value.type < 2) {
|
|
|
// 看看、看见场景
|
|
|
- return `smart-kankan.html?m=${source.value.num}${isDev ? '&dev' : ''}`
|
|
|
+ return `smart-kankan.html?m=${source.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}`
|
|
|
} else {
|
|
|
// 深时场景
|
|
|
- return `smart-laser.html?m=${source.value.num}${isDev ? '&dev' : ''}`
|
|
|
+ return `smart-laser.html?m=${source.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}`
|
|
|
}
|
|
|
})
|
|
|
const targetURL = computed(() => {
|
|
|
if (bimChecked.value) {
|
|
|
- return `smart-bim.html?m=${project.value.bimData.bimOssFilePath}`
|
|
|
+ return `smart-bim.html?m=${project.value.bimData.bimOssFilePath}&lang=${getLocale()}`
|
|
|
}
|
|
|
// getTagList(target.value.num)
|
|
|
if (target.value.type < 2) {
|
|
|
// 看看、看见场景
|
|
|
- return `smart-kankan.html?m=${target.value.num}${isDev ? '&dev' : ''}`
|
|
|
+ return `smart-kankan.html?m=${target.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}`
|
|
|
} else {
|
|
|
// 深时场景
|
|
|
- return `smart-laser.html?m=${target.value.num}${isDev ? '&dev' : ''}`
|
|
|
+ return `smart-laser.html?m=${target.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}`
|
|
|
}
|
|
|
})
|
|
|
const sourceDate = computed(() => {
|