From 084dd988ee8e655227436a4894d26cd64043806f Mon Sep 17 00:00:00 2001
From: fei.wang <wf18701153496@163.com>
Date: 星期四, 23 一月 2025 09:29:46 +0800
Subject: [PATCH] 稳定版提交

---
 src/components/degree.vue |  103 ++++++++++++++++++++++++++++++---------------------
 1 files changed, 60 insertions(+), 43 deletions(-)

diff --git a/src/components/degree.vue b/src/components/degree.vue
index 95eb706..853e303 100644
--- a/src/components/degree.vue
+++ b/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` // 灏唗oken娣诲姞鍒拌姹傚ご涓�
+                    // }
                 })
-                .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` // 灏唗oken娣诲姞鍒拌姹傚ご涓�
+                    // }
                 })
-                .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>
\ No newline at end of file

--
Gitblit v1.9.3