fei.wang
2025-01-23 084dd988ee8e655227436a4894d26cd64043806f
稳定版提交
已修改4个文件
111 ■■■■ 文件已修改
src/components/coordinate.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/degree.vue 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/distance.vue 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/toplane.vue 39 ●●●● 补丁 | 查看 | 原始文档 | 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
@@ -3,7 +3,8 @@
        <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" 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>
@@ -12,7 +13,8 @@
            <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>
@@ -42,8 +45,11 @@
<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';
@@ -92,7 +98,12 @@
            } else {
                const changeOrigin = true;
            const params = { df: this.formLabelAlign.df };
            axios.get(dfurl, { params })
                axios.get(dfurl, {
                    params,
                    // headers: {
                    //    'X-Access-Token:': `eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0aW1lU3RhbXAiOjE3MzU0NTM1OTgzODksInVzZXJJZCI6IueOi-mjniJ9.HReZWbn3qHCAFw65InGjQ7ShiMbxQ0cbkM9RQNuhnfg` // 将token添加到请求头中
                    // }
                })
                .then((response) => {
                    console.log('成功获取到后端数据', response.data);
                    // 处理返回的数据
@@ -116,7 +127,12 @@
                this.$message.error('输入有误,无法计算!请检查数据');
            } else {
            const params = { du: this.formLabelAlign.du };
            axios.get(duurl, { params })
                axios.get(duurl, {
                    params,
                    // headers: {
                    //    'X-Access-Token::': `eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0aW1lU3RhbXAiOjE3MzU0NTM1OTgzODksInVzZXJJZCI6IueOi-mjniJ9.HReZWbn3qHCAFw65InGjQ7ShiMbxQ0cbkM9RQNuhnfg` // 将token添加到请求头中
                    // }
                })
                .then((response) => {
                    console.log('成功获取到后端数据', response.data);
                    // 处理返回的数据
@@ -138,11 +154,13 @@
    margin-left: 10px;
    color: #007cf0
}
/* 鼠标悬浮后的设置 */
.title_linespan:hover {
    color: #ffffff;
  text-decoration: underline;
}
.fullscreen-bg {
    position: fixed;
    top: 0;
@@ -180,5 +198,4 @@
    /* width: 100%; */
    /* 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 };
@@ -543,6 +559,7 @@
            // 错误处理
          });
      }
      }
    },
    onClear() {
      this.formLabelAlign.distance = ''
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
            //     }
            // ],
        };
    },