|
@@ -91,7 +91,7 @@ const mode = ref(0)
|
|
const source = ref(null)
|
|
const source = ref(null)
|
|
const target = ref(null)
|
|
const target = ref(null)
|
|
const project = ref(null)
|
|
const project = ref(null)
|
|
-const points = ref({ p1: false, p2: false })
|
|
|
|
|
|
+const points = ref({ p1: null, p2: null })
|
|
|
|
|
|
const showTips = ref(null)
|
|
const showTips = ref(null)
|
|
|
|
|
|
@@ -389,8 +389,8 @@ const onFscChecked = () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-const onPointsUpdate = type => {
|
|
|
|
- points.value[type] = true
|
|
|
|
|
|
+const onPointsUpdate = (type,data) => {
|
|
|
|
+ points.value[type] = data
|
|
}
|
|
}
|
|
|
|
|
|
const onP1Click = (type) =>{
|
|
const onP1Click = (type) =>{
|
|
@@ -398,6 +398,7 @@ const onP1Click = (type) =>{
|
|
showTips.value = '您还未选择关联位置'
|
|
showTips.value = '您还未选择关联位置'
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ console.log(points.value.p1)
|
|
// todo 定位
|
|
// todo 定位
|
|
alert(type)
|
|
alert(type)
|
|
}
|
|
}
|
|
@@ -421,8 +422,8 @@ onMounted(() => {
|
|
if (response.data.panos) {
|
|
if (response.data.panos) {
|
|
try {
|
|
try {
|
|
response.data.panos = JSON.parse(response.data.panos)
|
|
response.data.panos = JSON.parse(response.data.panos)
|
|
- points.value.p1 = true
|
|
|
|
- points.value.p2 = true
|
|
|
|
|
|
+ points.value.p1 = response.data.panos.p1
|
|
|
|
+ points.value.p2 = response.data.panos.p2
|
|
setPanoWithBim(response.data.panos)
|
|
setPanoWithBim(response.data.panos)
|
|
|
|
|
|
} catch (error) {
|
|
} catch (error) {
|