|
@@ -66,6 +66,10 @@ onBeforeUnmount(() => {
|
|
|
})
|
|
|
|
|
|
const sxdxCurrent = ref('2023.1')
|
|
|
+
|
|
|
+const sxdxCurrentShowDuanmian = ref(false)
|
|
|
+
|
|
|
+
|
|
|
const currentYear = useDateFormat(useNow(), 'YYYY').value
|
|
|
|
|
|
function initSxdxData() {
|
|
@@ -121,7 +125,6 @@ function handleChooseSxdx(i, type) {
|
|
|
})
|
|
|
|
|
|
addLayerByName(sxdxCurrent.value,true)
|
|
|
- addLayerByName("pm_"+sxdxCurrent.value,true)
|
|
|
|
|
|
|
|
|
}
|
|
@@ -148,8 +151,11 @@ const currentType = ref('lashen')
|
|
|
|
|
|
// 打开断面
|
|
|
function handleChangeType() {
|
|
|
+ sxdxCurrentShowDuanmian.value=!sxdxCurrentShowDuanmian.value
|
|
|
+ addLayerByName("pm_"+sxdxCurrent.value,!sxdxCurrentShowDuanmian.value)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- addLayerByName("pm_"+sxdxCurrent.value,false)
|
|
|
// currentType.value = currentType.value==='lashen'? 'pingmian': 'lashen'
|
|
|
}
|
|
|
|