src/components/coordinate.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/degree.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/distance.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/toplane.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/coordinate.vue
@@ -39,7 +39,6 @@ style=" margin-right: 50px; margin-top: 180px;" class="fixed-button">计算坐标</el-button> <el-button @click="onClear" type="success" style=" margin-left: 80px; margin-top:180px" class="fixed-buttonB">清空数据</el-button> </el-form> </div> <div style="text-align: center;color: #f5f7fa;position: absolute;font-size: 12px;bottom:30px;left: 0;right: 0;"> <a target="_blank" id="icp">北京华星北斗智控技术有限公司版权所有京ICP备15062414号-11</a> @@ -50,11 +49,11 @@ <script> import axios from 'axios'; const url = 'http://39.106.210.13:8848/hxzkuwb/gnssToxy'; const url = 'http://39.106.210.13:8087/gnssToxy'; // const url = 'http://localhost:8888/hxzkuwb/gnssToxy'; // const url = 'http://127.0.0.1:8848/hxzkuwb/gnssToxy'; // const url = 'http://localhost:8848/Hxzkrd/compute/gnssToxy'; export default { data() { return { dialogVisible: false, @@ -68,6 +67,7 @@ }; }, methods: { goToDistance() { this.$router.push('/distance'); // 根据自定义的路由设置跳转到指定页面 }, src/components/degree.vue
@@ -1,18 +1,20 @@ <template> <div class="fullscreen-bg"> <div style="width: 20%;margin-top: 10px; position: absolute;"> <el-button class="title_linespan" type="text" @click="goToindex">官网</el-button > <el-button class="title_linespan" type="text" @click="goToDistance">计算距离</el-button > <el-button class="title_linespan" style="color: #f5f7fa; text-decoration: underline;" type="text" @click="goToDegree">度分转换</el-button > <el-button class="title_linespan" type="text" @click="goToCoordinate">坐标计算</el-button > <el-button class="title_linespan" type="text" @click="goToplane">坐标转换</el-button > </div> <el-button class="title_linespan" type="text" @click="goToindex">官网</el-button> <el-button class="title_linespan" type="text" @click="goToDistance">计算距离</el-button> <el-button class="title_linespan" style="color: #f5f7fa; text-decoration: underline;" type="text" @click="goToDegree">度分转换</el-button> <el-button class="title_linespan" type="text" @click="goToCoordinate">坐标计算</el-button> <el-button class="title_linespan" type="text" @click="goToplane">坐标转换</el-button> </div> <div class="bg-red"> <el-form :inline="true" :label-position="labelPosition" label-width="80px" :model="formLabelAlign"> <h3 style="margin-left: -330px; color: #f5f7fa;">度分转度</h3> <el-input type="textarea" :rows="3" v-model="formLabelAlign.df" placeholder="输入度分格式数据" style="width: 90%; margin-top: 5px;"></el-input> <el-input type="textarea" :rows="3" v-model="formLabelAlign.df" placeholder="输入度分格式数据" style="width: 90%; margin-top: 5px;"></el-input> <el-form-item style="margin-top: 20px; margin-right: 20px; color: #f5f7fa;"> <el-input v-model="formLabelAlign.resdu" style="margin-left: 10px; width: 325px;"></el-input> </el-form-item> @@ -22,7 +24,8 @@ <!---------------------------------------------------------------> <h3 style="margin-left: -330px; color: #f5f7fa;">度转度分</h3> <el-input type="textarea" :rows=3 v-model="formLabelAlign.du" placeholder="输入度格式数据数据" style="width: 90%; margin-top: 5px;"></el-input> <el-input type="textarea" :rows=3 v-model="formLabelAlign.du" placeholder="输入度格式数据数据" style="width: 90%; margin-top: 5px;"></el-input> <el-form-item style="margin-top: 20px; margin-right: 20px; color: #f5f7fa;"> <el-input v-model="formLabelAlign.resdf" style="margin-left: 10px; width: 325px;"></el-input> </el-form-item> @@ -30,20 +33,23 @@ <el-button @click="onDuSubmit" type="success">计算</el-button> </el-form-item> </el-form> </div> <div style="text-align: center;color: #f5f7fa;position: absolute;font-size: 12px;bottom:30px;left: 0;right: 0;"> <a target="_blank" id="icp">北京华星北斗智控技术有限公司版权所有京ICP备15062414号-11</a> </div> <a target="_blank" id="icp">北京华星北斗智控技术有限公司版权所有京ICP备15062414号-11</a> </div> </div> </template> <script> import axios from 'axios'; const dfurl = 'http://39.106.210.13:8848/hxzkuwb/ddmm2d'; const duurl = 'http://39.106.210.13:8848/hxzkuwb/dd2ddmm'; const dfurl = 'http://39.106.210.13:8087/ddmm2d'; const duurl = 'http://39.106.210.13:8087/dd2ddmm'; // const dfurl = 'http://localhost:8082/ddmm2d'; // const duurl = 'http://localhost:8082/dd2ddmm'; // const dfurl = 'http://127.0.0.1:8848/hxzkuwb/ddmm2d'; // const duurl = 'http://127.0.0.1:8848/hxzkuwb/dd2ddmm'; // const dfurl = 'http://localhost:8848/Hxzkrd/compute/ddmm2d'; @@ -63,7 +69,7 @@ }, methods: { goToDistance() { this.$router.push('/distance'); // 根据自定义的路由设置跳转到指定页面 // this.$router.go(0); }, @@ -87,24 +93,29 @@ console.log(this.formLabelAlign.df.split(".")); if (!this.formLabelAlign.df) { this.$message.error('请输入度分格式数据'); }else if (this.formLabelAlign.df.split(".").length!=2) { } else if (this.formLabelAlign.df.split(".").length != 2) { this.$message.error('输入有误,无法计算!请检查数据'); } else { const changeOrigin = true; const params = { df: this.formLabelAlign.df }; axios.get(dfurl, { params }) .then((response) => { console.log('成功获取到后端数据', response.data); // 处理返回的数据 // console.log(res); this.formLabelAlign.resdu = response.data const params = { df: this.formLabelAlign.df }; axios.get(dfurl, { params, // headers: { // 'X-Access-Token:': `eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0aW1lU3RhbXAiOjE3MzU0NTM1OTgzODksInVzZXJJZCI6IueOi-mjniJ9.HReZWbn3qHCAFw65InGjQ7ShiMbxQ0cbkM9RQNuhnfg` // 将token添加到请求头中 // } }) .catch((error) => { console.error('获取后端数据失败', error); // 错误处理 }); .then((response) => { console.log('成功获取到后端数据', response.data); // 处理返回的数据 // console.log(res); this.formLabelAlign.resdu = response.data }) .catch((error) => { console.error('获取后端数据失败', error); // 错误处理 }); } @@ -112,21 +123,26 @@ onDuSubmit() { if (!this.formLabelAlign.du) { this.$message.error('请输入度格式数据'); }else if (this.formLabelAlign.du.split(".").length!=2) { } else if (this.formLabelAlign.du.split(".").length != 2) { this.$message.error('输入有误,无法计算!请检查数据'); } else { const params = { du: this.formLabelAlign.du }; axios.get(duurl, { params }) .then((response) => { console.log('成功获取到后端数据', response.data); // 处理返回的数据 // console.log(res); this.formLabelAlign.resdf = response.data const params = { du: this.formLabelAlign.du }; axios.get(duurl, { params, // headers: { // 'X-Access-Token::': `eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0aW1lU3RhbXAiOjE3MzU0NTM1OTgzODksInVzZXJJZCI6IueOi-mjniJ9.HReZWbn3qHCAFw65InGjQ7ShiMbxQ0cbkM9RQNuhnfg` // 将token添加到请求头中 // } }) .catch((error) => { console.error('获取后端数据失败', error); // 错误处理 }); .then((response) => { console.log('成功获取到后端数据', response.data); // 处理返回的数据 // console.log(res); this.formLabelAlign.resdf = response.data }) .catch((error) => { console.error('获取后端数据失败', error); // 错误处理 }); } }, } @@ -138,11 +154,13 @@ margin-left: 10px; color: #007cf0 } /* 鼠标悬浮后的设置 */ .title_linespan:hover { color: #ffffff; text-decoration: underline; text-decoration: underline; } .fullscreen-bg { position: fixed; top: 0; @@ -178,7 +196,6 @@ :deep(.el-input__wrapper) { font-size: 14px; /* width: 100%; */ /* height:320px; } */ /* height:320px; } */ </style> src/components/distance.vue
@@ -66,12 +66,19 @@ <script> import axios from 'axios'; const dfurl = 'http://39.106.210.13:8848/hxzkuwb/ddmm2d'; const duurl = 'http://39.106.210.13:8848/hxzkuwb/dd2ddmm'; // const url = 'http://127.0.0.1:8848/hxzkuwb/jisuanjingwei.do'; const url = 'http://39.106.210.13:8848/hxzkuwb/jisuanjingwei.do'; const url1 = 'http://39.106.210.13:8848/hxzkuwb/jisuanbaowen.do'; const duggaurl = 'http://39.106.210.13:8848/hxzkuwb/jisuandubaowen.do'; const dfurl = 'http://39.106.210.13:8087/ddmm2d'; const duurl = 'http://39.106.210.13:8087/dd2ddmm'; // const url = 'http://127.0.0.1:8888/hxzkuwb/jisuanjingwei.do'; const url = 'http://39.106.210.13:8087/jisuanjingwei.do'; const url1 = 'http://39.106.210.13:8087/jisuanbaowen.do'; const duggaurl = 'http://39.106.210.13:8087/jisuandubaowen.do'; // const dfurl = 'http://localhost:8888/hxzkuwb/ddmm2d'; // const duurl = 'http://localhost:8888/hxzkuwb/dd2ddmm'; // // const url = 'http://127.0.0.1:8888/hxzkuwb/jisuanjingwei.do'; // const url = 'http://localhost:8888/hxzkuwb/jisuanjingwei.do'; // const url1 = 'http://localhost:8888/hxzkuwb/jisuanbaowen.do'; // const duggaurl = 'http://localhost:8888/hxzkuwb/jisuandubaowen.do'; // const url = 'http://localhost:8848/Hxzkrd/compute/jisuanjingwei.do'; export default { @@ -527,8 +534,17 @@ }); } } else { var gnssa1 = this.formLabelAlign.gnssa.replace(/\s*/g, "").split(",") var gnssb1 = this.formLabelAlign.gnssb.replace(/\s*/g, "").split(",") if (!this.formLabelAlign.gnssa) { this.$message.error('请输入A点GNGGA格式数据'); }else if (!this.formLabelAlign.gnssb) { this.$message.error('请输入B点GNGGA格式数据'); } else if (this.formLabelAlign.gnssa.split(",").length<15) { this.$message.error('A点GNGGA格式数据有误'); }else if (this.formLabelAlign.gnssb.split(",").length<15) { this.$message.error('B点GNGGA格式数据有误'); } else{ var gnssa1 = this.formLabelAlign.gnssa.split(",") var gnssb1 = this.formLabelAlign.gnssb.split(",") var str = gnssa1[2] + ";" + gnssa1[4] + ";" + gnssb1[2] + ";" + gnssb1[4]; // const params = { gnggA: this.formLabelAlign.gnssa,gnggB:this.formLabelAlign.gnssb }; const params = { str:str }; @@ -542,6 +558,7 @@ console.error('获取后端数据失败', error); // 错误处理 }); } } }, onClear() { src/components/toplane.vue
@@ -13,13 +13,13 @@ <!-- <el-form :inline="true" :label-position="labelPosition" label-width="80px" :model="formLabelAlign"> --> <div style="display: flex; "> <div style="width:16%;height: 60px;border-right: 1px solid black"> <div style="width:15.9%;height: 60px;border-right: 1px solid black"> <h2 style="color: #f5f7fa;margin-left: 5px;width: 50px;">名称</h2> </div> <div style="width:42%;height: 60px;border-right: 1px solid black"> <h3 style="color: #f5f7fa;font-size: 18px;">激光点云</h3> </div> <div style="width:42%;height: 60px;"> <div style="width:41.9%;height: 60px;"> <h3 style="color: #f5f7fa;font-size: 18px;">CAD地图</h3> </div> </div> @@ -275,9 +275,11 @@ // String posPlane = "158,596,0;671,596,0;158,1430,0"; // String posPointCloud = "3.851,8.806,-0.207;7.68,5.362,-0.197;-1.71,2.54,-0.21"; // String posPointCloudCheck = "-1.161,3.115,2.424"; // 成功获取到后端数据 161.5472106600515;1352.1185150148528;263.3654095401726; import axios from 'axios'; //const dfurl = 'http://39.106.210.13:8848/hxzkuwb/ddmm2d'; const plane = 'http://39.106.210.13:8848/hxzkuwb/toplane'; const plane = 'http://39.106.210.13:8087/toplane'; // const plane = 'http://localhost:8888/hxzkuwb/toplane'; // const dfurl = 'http://127.0.0.1:8848/hxzkuwb/ddmm2d'; // const duurl = 'http://127.0.0.1:8848/hxzkuwb/dd2ddmm'; // const dfurl = 'http://localhost:8848/Hxzkrd/compute/ddmm2d'; @@ -320,37 +322,6 @@ planeDY: '', planeDZ: '', }, // labelPosition: 'right', // formLabelAlign: { // df: '', // du: '', // resdu: '', // resdf: '' // }, // tableData: [ // { // name: '已知A点', // todayBuy: 300, // monthBuy: 2200, // totalBuy: 24000 // }, // { // name: '已知B点', // todayBuy: 300, // monthBuy: 2200, // totalBuy: 24000 // }, // { // name: '已知C点', // todayBuy: 300, // monthBuy: 2200, // totalBuy: 24000 // } // ], }; },