|
@@ -14,7 +14,12 @@ import CityGis from '../../unit/map/CityGis.Bridge.js'
|
|
|
import {myBridge} from "@/unit/map/map";
|
|
|
import {useMapStore} from "@/pinia/useStore";
|
|
|
import {nextTick, ref, onMounted} from "vue";
|
|
|
-import {getBoatRealTimePosition, getGeologyAnalysisData, pipeCollision} from "@/service/my-apply";
|
|
|
+import {
|
|
|
+ getBoatRealTimePosition,
|
|
|
+ getGeologyAnalysisData,
|
|
|
+ getGeologyProfileByPoints,
|
|
|
+ pipeCollision
|
|
|
+} from "@/service/my-apply";
|
|
|
import {
|
|
|
AddSingleLayer,
|
|
|
changeMapTheme,
|
|
@@ -34,7 +39,7 @@ import {
|
|
|
CylinderEffect,
|
|
|
RectangleSlice,
|
|
|
PrismEffect,
|
|
|
- PrismDifferentHeightEffect
|
|
|
+ PrismDifferentHeightEffect, PrismDifferentHeightSideEffect
|
|
|
} from "@/unit/map/AddLayer";
|
|
|
import {closeShowLoading, showLoading} from "@/unit/element-loading/element-loader";
|
|
|
import {switchTheme} from "@/unit/Theme/ThemeColor";
|
|
@@ -247,16 +252,22 @@ export default {
|
|
|
}
|
|
|
if(props.currentSmallTool==="customCutting"){ //地质-自定义剖切分析
|
|
|
showLoading();
|
|
|
- getGeologyAnalysisData({ x: arg.data.center.x, y: arg.data.center.y }).then((response) => {
|
|
|
+ console.log("positions22222",arg.data.geometry.rings)
|
|
|
+ let positions = arg.data.geometry.rings[0].slice(0, -1)
|
|
|
+ console.log("positions1111",positions)
|
|
|
+ getGeologyProfileByPoints({
|
|
|
+ positions:JSON.stringify(positions)
|
|
|
+ }).then((response) => {
|
|
|
if (response?.payload.length > 0) {
|
|
|
let data = response.payload;
|
|
|
closeShowLoading()
|
|
|
- // PrismEffect({
|
|
|
+ // PrismDifferentHeightEffect({
|
|
|
// status:"show",
|
|
|
// items:data
|
|
|
// })
|
|
|
- PrismDifferentHeightEffect({
|
|
|
+ PrismDifferentHeightSideEffect({
|
|
|
status:"show",
|
|
|
+ extent:arg.data.geometry,
|
|
|
items:data
|
|
|
})
|
|
|
}
|