From 2da70ecf76856c4b04ade76c20fbf2f877b6d9c0 Mon Sep 17 00:00:00 2001 From: jihongshun <1151753686@qq.com> Date: 星期一, 04 八月 2025 13:57:10 +0800 Subject: [PATCH] 模板动态参数 --- src/views/system/shootPoint/components/shootPointDialog.vue | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views/system/shootPoint/components/shootPointDialog.vue b/src/views/system/shootPoint/components/shootPointDialog.vue index cf11a51..f19feac 100644 --- a/src/views/system/shootPoint/components/shootPointDialog.vue +++ b/src/views/system/shootPoint/components/shootPointDialog.vue @@ -39,7 +39,7 @@ </el-card> </el-col> <el-col :span="20"> - <InitMap v-if="showMap" @mergePoint="mergePoint" :towerUrl="towerUrl"></InitMap> + <InitMap v-if="showMap" @mergePoint="mergePoint" :towerUrl="towerUrl" :deviceData="deviceData"></InitMap> </el-col> </el-row> <span slot="footer" class="dialog-footer"> @@ -47,18 +47,17 @@ <el-button type="primary" @click="submit()" >纭� 瀹�</el-button> </span> </el-dialog> - <ChooseModelDialog v-if="showModel" @cancel ='cancel' @getRowData="getRowData" ></ChooseModelDialog> + <ChooseModelDialog v-if="showModel" @cancel ='cancel' @getRowData="getRowData"></ChooseModelDialog> </div> </template> <script> -import { compileToFunctions } from "vue-template-compiler"; import CesiumMap from "../../../../utils/components/cesium-map.vue"; import InitMap from "../../../../utils/components/init-map.vue"; import ChooseModelDialog from './chooseModelDialog.vue'; import { addPoint , getPointInfo} from "@/api/system/template" let globalon = 0 let globalat = 0 -let towerHeight = 47.47 +let towerHeight = 45 //濉旂殑鏈濆悜绠楁硶鎵�鐢ㄥ埌鐨� 鏃嬭浆搴︽暟 let rotationAngle = Cesium.Math.toRadians(0) export default{ @@ -92,7 +91,8 @@ chooseModelId:null, modelName:null, templateType:null, - form:{} + form:{}, + deviceData:null } }, mounted(){ @@ -444,15 +444,14 @@ console.log(row) this.modelName = row.modelName this.templateType = row.modelType + this.deviceData = row if(this.templateId){ this.form.templateName = row.templateName || '' } this.chooseModelId = row.id - towerHeight = row.towerHeight || 47.47 + towerHeight = row.modelHeight || 45 this.showMap =false this.$nextTick(()=>{ - // this.towerUrl = row.modelRoute - if(this.templateId){ this.towerUrl = row.ardTowerModel.modelRoute }else { -- Gitblit v1.9.3