|
@@ -13,6 +13,7 @@
|
|
|
:count="scenes.length"
|
|
|
:controls="controls"
|
|
|
:value="sourceDate"
|
|
|
+ :sceneName="source.name"
|
|
|
:highlighted="sourceDays"
|
|
|
@selected="onSelected"
|
|
|
@pick="onPickDate"
|
|
@@ -49,6 +50,7 @@
|
|
|
<div class="item-date target">
|
|
|
<calendar
|
|
|
name="target"
|
|
|
+ :sceneName="target.name"
|
|
|
:count="scenes.length"
|
|
|
:controls="controls"
|
|
|
:value="targetDate"
|
|
@@ -72,7 +74,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="model" v-show="showWidget && !showAdjust && !showRules">
|
|
|
- <div class="rule" :class="{ active: ruleChecked, disable: fileDisable }" v-show="!fscChecked && !showBim && !dbsChecked && !bimChecked">
|
|
|
+ <!-- <div class="rule" :class="{ active: ruleChecked, disable: fileDisable }" v-show="!fscChecked && !showBim && !dbsChecked && !bimChecked">
|
|
|
<div @click="onRuleChecked">
|
|
|
<i class="iconfont icon-measurement"></i>
|
|
|
<span>{{ $t('common.measure') }}</span>
|
|
@@ -90,7 +92,7 @@
|
|
|
<i class="iconfont icon-BIM"></i>
|
|
|
<span>BIM</span>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="dbs" :class="{ active: dbsChecked, disable: dbsDisable }" v-show="!fscChecked && !showBim && !ruleChecked">
|
|
|
<div @click="onDbsChecked">
|
|
|
<i class="iconfont icon-split_screen"></i>
|
|
@@ -204,6 +206,7 @@ const scenes = computed(() => {
|
|
|
num: item.num,
|
|
|
type: item.type,
|
|
|
createTime: item.createTime,
|
|
|
+ name: item.name,
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -223,22 +226,23 @@ const sourceURL = computed(() => {
|
|
|
if (!source.value) {
|
|
|
return
|
|
|
}
|
|
|
- getTagList(source.value.num)
|
|
|
+ // getTagList(source.value.num)
|
|
|
if (source.value.type < 2) {
|
|
|
// 看看、看见场景
|
|
|
return `smart-kankan.html?m=${source.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}`
|
|
|
} else {
|
|
|
getLaserInfo(source.value.num)
|
|
|
// 深时场景
|
|
|
- return `smart-laser.html?m=${source.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}&serve_link=${process.env.VUE_APP_LASER_URL}&panoResourceBasePath=${
|
|
|
- process.env.VUE_APP_RESOURCE_URL
|
|
|
- }&resourceBasePath=${process.env.VUE_APP_LASER_RESOURCE_URL}`
|
|
|
+ return `smart-laser.html?m=${source.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}&serve_link=${'/'}&panoResourceBasePath=${process.env.VUE_APP_RESOURCE_URL}&resourceBasePath=${
|
|
|
+ process.env.VUE_APP_LASER_RESOURCE_URL
|
|
|
+ }`
|
|
|
}
|
|
|
})
|
|
|
const noPanorama = ref(true)
|
|
|
const getLaserInfo = num => {
|
|
|
axios
|
|
|
- .get(process.env.VUE_APP_LASER_URL + `laser/dataset/${num}/getDataSet`)
|
|
|
+ // .get(process.env.VUE_APP_LASER_URL + `laser/dataset/${num}/getDataSet`)
|
|
|
+ .get(`/laser/dataset/${num}/getDataSet`)
|
|
|
.then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
let list = res.data.data
|
|
@@ -260,17 +264,16 @@ const getLaserInfo = num => {
|
|
|
}
|
|
|
const targetURL = computed(() => {
|
|
|
if (bimChecked.value) {
|
|
|
- return `smart-bim.html?m=${project.value.bimData.bimOssFilePath}&lang=${getLocale()}&serve_link=${process.env.VUE_APP_LASER_URL}`
|
|
|
+ return `smart-bim.html?m=${project.value.bimData.bimOssFilePath}&lang=${getLocale()}&serve_link=${'/'}`
|
|
|
}
|
|
|
- // getTagList(target.value.num)
|
|
|
if (target.value.type < 2) {
|
|
|
// 看看、看见场景
|
|
|
- return `smart-kankan.html?m=${target.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}&serve_link=${process.env.VUE_APP_LASER_URL}`
|
|
|
+ return `smart-kankan.html?m=${target.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}&serve_link=${'/'}`
|
|
|
} else {
|
|
|
// 深时场景
|
|
|
- return `smart-laser.html?m=${target.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}&serve_link=${process.env.VUE_APP_LASER_URL}&panoResourceBasePath=${
|
|
|
- process.env.VUE_APP_RESOURCE_URL
|
|
|
- }&resourceBasePath=${process.env.VUE_APP_LASER_RESOURCE_URL}`
|
|
|
+ return `smart-laser.html?m=${target.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}&serve_link=${'/'}&panoResourceBasePath=${process.env.VUE_APP_RESOURCE_URL}&resourceBasePath=${
|
|
|
+ process.env.VUE_APP_LASER_RESOURCE_URL
|
|
|
+ }`
|
|
|
}
|
|
|
})
|
|
|
const sourceDate = computed(() => {
|
|
@@ -511,7 +514,7 @@ const onNextDate = name => {
|
|
|
index = 0
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ console.error(scenes.value)
|
|
|
scene.value = scenes.value[index]
|
|
|
}
|
|
|
|
|
@@ -676,7 +679,8 @@ const getTagList = num => {
|
|
|
})
|
|
|
}
|
|
|
const getInfo = () => {
|
|
|
- http.get(`smart-site/project/info?projectId=${projectId}&sceneOrder=asc`)
|
|
|
+ // http.get(`smart-site/project/info?projectId=${projectId}&sceneOrder=asc`)
|
|
|
+ http.get(`relics/artifact/getInfo/${projectId}`)
|
|
|
.then(response => {
|
|
|
if (response.success) {
|
|
|
if (response.data) {
|
|
@@ -730,7 +734,6 @@ const projectId = browser.valueFromUrl('projectId') || 1
|
|
|
|
|
|
onMounted(() => {
|
|
|
getInfo()
|
|
|
- // getTagList()
|
|
|
document.addEventListener('fullscreenchange', () => {
|
|
|
if (document.fullscreenElement) {
|
|
|
if (!fscChecked.value) {
|