|
@@ -1,10 +1,13 @@
|
|
|
<template>
|
|
|
+ <DesignOption />
|
|
|
+ <Rules v-if="showRules" @close="closeRules" />
|
|
|
+
|
|
|
<AppHeader v-show="!fscChecked" :project="project" @getUserId="getUserId" :show-adjust="showAdjust" @update="onPointsUpdate" />
|
|
|
<article>
|
|
|
<main>
|
|
|
<div class="split">
|
|
|
<iframe ref="sourceFrame" v-if="sourceURL" :src="sourceURL" frameborder="0" @load="onLoadSource"></iframe>
|
|
|
- <div class="tools" v-if="source" v-show="showWidget && !showAdjust && !fscChecked && (dbsChecked || (!target && !bimChecked))">
|
|
|
+ <div class="tools" v-if="source && !showRules" v-show="showWidget && !showAdjust && !fscChecked && (dbsChecked || (!target && !bimChecked))">
|
|
|
<div class="item-date">
|
|
|
<calendar
|
|
|
name="source"
|
|
@@ -69,13 +72,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="model" v-show="showWidget && !showAdjust">
|
|
|
+ <div class="model" v-show="showWidget && !showAdjust && !showRules">
|
|
|
<div v-if="isLogin" class="file" :class="{ active: fileChecked, disable: fileDisable }" v-show="!fscChecked && !showBim && !dbsChecked && !bimChecked">
|
|
|
<div @click="onFileChecked">
|
|
|
<i class="iconfont icon-note1"></i>
|
|
|
<span>{{ $t('home.tag') }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="rule" :class="{ active: fileChecked, disable: fileDisable }" v-show="!fscChecked && !showBim && !dbsChecked && !bimChecked">
|
|
|
+ <div @click="onRuleChecked">
|
|
|
+ <i class="iconfont icon-note1"></i>
|
|
|
+ <span>标尺</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="bim" :class="{ active: bimChecked, disable: bimDisable }" v-show="!fscChecked && !showBim">
|
|
|
<div @click="onBimChecked">
|
|
|
<i class="iconfont icon-BIM"></i>
|
|
@@ -112,6 +121,8 @@ 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 DesignOption from './DesignOption'
|
|
|
+import Rules from './Rules'
|
|
|
const { t } = i18n.global
|
|
|
const isDev = process.env.VUE_APP_TEST == 1
|
|
|
|
|
@@ -128,6 +139,11 @@ const userId = ref(localStorage.getItem('userId') || null)
|
|
|
const getUserId = id => {
|
|
|
userId.value = id
|
|
|
}
|
|
|
+const showRules = ref(false)
|
|
|
+const closeRules = () => {
|
|
|
+ showRules.value = false
|
|
|
+ window.kankan.TagManager.cancelMeasure()
|
|
|
+}
|
|
|
|
|
|
// 是否BIM模式
|
|
|
const showBim = ref(browser.urlHasValue('bim'))
|
|
@@ -539,6 +555,15 @@ const onP2Click = type => {
|
|
|
|
|
|
flyToP1P2(points.value.p2)
|
|
|
}
|
|
|
+const onRuleChecked = () => {
|
|
|
+
|
|
|
+
|
|
|
+ showRules.value = true
|
|
|
+ window.kankan.TagManager.startMeasure()
|
|
|
+
|
|
|
+ // store.commit('SetPlayerOptions', { showRulesWidgets: true })
|
|
|
+ // emits('close')
|
|
|
+}
|
|
|
|
|
|
onMounted(() => {
|
|
|
const num = browser.valueFromUrl('m') || ''
|
|
@@ -590,7 +615,6 @@ onMounted(() => {
|
|
|
.catch(() => {
|
|
|
showTips.value = t('code.failed')
|
|
|
})
|
|
|
- console.error(browser.getURLParam('m'))
|
|
|
http.post(`smart-site/marking/list`, {
|
|
|
projectId: projectId,
|
|
|
pageNum: 1,
|