From 32d4167c093317c16cd67af5277e11a2f08809db Mon Sep 17 00:00:00 2001 From: jihongshun <1151753686@qq.com> Date: 星期六, 13 九月 2025 17:12:56 +0800 Subject: [PATCH] 航线模拟功能完成 待优化 --- src/views/system/shootPoint/components/chooseModelDialog.vue | 32 -------------------------------- 1 files changed, 0 insertions(+), 32 deletions(-) diff --git a/src/views/system/shootPoint/components/chooseModelDialog.vue b/src/views/system/shootPoint/components/chooseModelDialog.vue index eff4d2b..4c9132e 100644 --- a/src/views/system/shootPoint/components/chooseModelDialog.vue +++ b/src/views/system/shootPoint/components/chooseModelDialog.vue @@ -71,38 +71,6 @@ this.$emit('cancel') this.$emit('getRowData',row) }, - clickRow(row){ - console.log(row) - this.showMap =true - setTimeout(()=>{ - const position = Cesium.Cartesian3.fromDegrees(0, 0, 0); - // 璁剧疆妯″瀷鏂瑰悜锛堝彲閫夛級 - // const heading = Cesium.Math.toRadians(135); // 鏈濅笢鍗楁柟鍚� - let model = viewer.entities.getById("modelList"); - const heading = Cesium.Math.toRadians(120); // 鏈濅笢鍗楁柟鍚� - const pitch = 0; - const roll = 0; - const orientation = Cesium.Transforms.headingPitchRollQuaternion( - position, - new Cesium.HeadingPitchRoll(heading, pitch, roll) - ); - if(!model) { - // 鍔犺浇 glTF 妯″瀷 - const entity = viewer.entities.add({ - id: "modelList", - name: "modelList", - position: position, - orientation: orientation, - model: { - uri: row.modelRoute, // 鏇挎崲鎴愪綘鐨勬ā鍨嬭矾寰� - }, - }); - viewer.flyTo(entity) - }else { - model.orientation = orientation - } - },1000) - }, } }; </script> \ No newline at end of file -- Gitblit v1.9.3