From cafc98632e2df166a25976d9c1cd77a94efaa3a9 Mon Sep 17 00:00:00 2001 From: jihongshun <1151753686@qq.com> Date: 星期三, 17 九月 2025 11:07:10 +0800 Subject: [PATCH] 项目创建默认参数 变倍 --- src/views/system/project/components/addPorjectDialog.vue | 40 +++++++++++++++++++++++----------------- 1 files changed, 23 insertions(+), 17 deletions(-) diff --git a/src/views/system/project/components/addPorjectDialog.vue b/src/views/system/project/components/addPorjectDialog.vue index 29b8c4f..adf9956 100644 --- a/src/views/system/project/components/addPorjectDialog.vue +++ b/src/views/system/project/components/addPorjectDialog.vue @@ -123,7 +123,7 @@ </el-select> </el-form-item> <el-form-item label="瀹屾垚鍔ㄤ綔" prop="finishAction"> - <el-select v-model="ruleForm.finishAction" placeholder="璧烽鐖崌"> + <el-select v-model="ruleForm.finishAction" placeholder="瀹屾垚鍔ㄤ綔"> <el-option v-for="dict in dji_finish_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> </el-select> @@ -238,8 +238,13 @@ deviceId:null, drawer:false, ruleForm:{ - autoFlightSpeed:14, - globalTransitionalSpeed:15 + flyToWaylineMode:'safely', + autoFlightSpeed:10, + globalTransitionalSpeed:10, + globalWaypointTurnMode:'toPointAndStopWithDiscontinuityCurvature', + mappingHeadingMode:'followWayline', + gimbalPitchMode:'usePointSetting', + finishAction:'goHome', }, } @@ -716,6 +721,7 @@ height: airPoint.height, isStartAndEndPoint: false, actions:airPoint.children[0].actions || [], + waypointName: airPoint.label, coordinatePointReq: { height: airPoint.children[0].height, latitude:airPoint.children[0].latitude, @@ -738,20 +744,20 @@ this.ruleForm.routePointList = routePointList console.log(this.ruleForm) console.log('鐢熸垚鑸嚎') - buildKmz(this.ruleForm).then(res=>{ - if(res.code == 200) { - this.$message({ - message: '鐢熸垚鑸嚎鎴愬姛', - type: 'success' - }) - const link = document.createElement('a'); - link.href = res.msg; // 璁剧疆涓嬭浇閾炬帴 - // link.download = 'filename.ext'; // 鍙�夛細鎸囧畾鏂囦欢鍚� - document.body.appendChild(link); // 灏嗛摼鎺ユ坊鍔犲埌 DOM - link.click(); // 妯℃嫙鐐瑰嚮涓嬭浇 - document.body.removeChild(link); // 涓嬭浇鍚庣Щ闄ら摼鎺� - } - }) + // buildKmz(this.ruleForm).then(res=>{ + // if(res.code == 200) { + // this.$message({ + // message: '鐢熸垚鑸嚎鎴愬姛', + // type: 'success' + // }) + // const link = document.createElement('a'); + // link.href = res.msg; // 璁剧疆涓嬭浇閾炬帴 + // // link.download = 'filename.ext'; // 鍙�夛細鎸囧畾鏂囦欢鍚� + // document.body.appendChild(link); // 灏嗛摼鎺ユ坊鍔犲埌 DOM + // link.click(); // 妯℃嫙鐐瑰嚮涓嬭浇 + // document.body.removeChild(link); // 涓嬭浇鍚庣Щ闄ら摼鎺� + // } + // }) }, lineSet(){ this.drawer =true -- Gitblit v1.9.3