From 36fbd1e5a40e319e6ac5f43d11c99ba4b66e93a3 Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期三, 29 十一月 2023 16:50:16 +0800
Subject: [PATCH] 坡度分析下载修改

---
 src/views/plotting/plottingInquire.vue |   81 +++++++++++-----------------------------
 1 files changed, 23 insertions(+), 58 deletions(-)

diff --git a/src/views/plotting/plottingInquire.vue b/src/views/plotting/plottingInquire.vue
index 8dc5768..c34f64f 100644
--- a/src/views/plotting/plottingInquire.vue
+++ b/src/views/plotting/plottingInquire.vue
@@ -44,36 +44,14 @@
               </div>-->
               <div class="inquireContent_input_right" v-show="!chartIsshow">
                 <div class="label">鑼冨洿妗嗗唴鏈�澶у儚绱犲��</div>
-                <el-select
-                  v-model="ScopeBox.pixel"
-                  class="m-2"
-                  placeholder="鍍忕礌鍊�"
-                  size="small"
-                  @change="pixelChange"
-                >
-                  <el-option
-                    v-for="item in pixeloptions"
-                    :key="item.value"
-                    :label="item.label"
-                    :value="item.value"
-                  />
+                <el-select v-model="ScopeBox.pixel" class="m-2" placeholder="鍍忕礌鍊�" size="small" @change="pixelChange">
+                  <el-option v-for="item in pixeloptions" :key="item.value" :label="item.label" :value="item.value" />
                 </el-select>
               </div>
               <div class="inquireContent_input_right" v-show="chartIsshow">
                 <div class="label">鑺傜偣鏁�</div>
-                <el-select
-                  v-model="ScopeBox.nodes"
-                  class="m-2"
-                  placeholder="鍍忕礌鍊�"
-                  size="small"
-                  @change="nodesChange"
-                >
-                  <el-option
-                    v-for="item in nodesoptions"
-                    :key="item.value"
-                    :label="item.label"
-                    :value="item.value"
-                  />
+                <el-select v-model="ScopeBox.nodes" class="m-2" placeholder="鍍忕礌鍊�" size="small" @change="nodesChange">
+                  <el-option v-for="item in nodesoptions" :key="item.value" :label="item.label" :value="item.value" />
                 </el-select>
               </div>
             </div>
@@ -82,12 +60,7 @@
                 <div class="chart_btn">
                   <el-button :icon="Search" link class="linkBtn" @click="openDialog(e)"></el-button>
 
-                  <el-button
-                    :icon="Download"
-                    link
-                    class="linkBtn"
-                    @click="downloadChart(layerData)"
-                  ></el-button>
+                  <el-button :icon="Download" link class="linkBtn" @click="downloadChart(layerData)"></el-button>
                   <!-- 鏆傛椂涓嶇敤鍒犻櫎 -->
                   <!-- <el-button
                     :icon="Delete"
@@ -98,19 +71,9 @@
                 </div>
                 <Bar-graph :width="'100%'" :height="'260px'" :layerData="layerData"></Bar-graph>
                 <div class="select">
-                  <el-select
-                    v-model="layerValue"
-                    class="m-2"
-                    placeholder="閫夋嫨鍥惧眰"
-                    size="small"
-                    @change="layerChange"
-                  >
-                    <el-option
-                      v-for="(item, i) in layeroptions"
-                      :key="i"
-                      :label="item.layerName"
-                      :value="item.layerName"
-                    />
+                  <el-select v-model="layerValue" class="m-2" placeholder="閫夋嫨鍥惧眰" size="small" @change="layerChange">
+                    <el-option v-for="(item, i) in layeroptions" :key="i" :label="item.layerName"
+                      :value="item.layerName" />
                   </el-select>
                 </div>
               </div>
@@ -156,8 +119,8 @@
                   <div class="table_tr" v-for="(e, i) in resultList" :key="i">
                     <div class="table_td">{{ i + 1 }}</div>
                     <div class="table_td">
-                   
-                      <span>{{ e.layerName }}</span>
+
+                      <span>{{ e.layerName }} <label v-show="e.unit"> [{{ e.unit }}]</label></span>
                       <span>{{ e.max }}</span>
                       <span>{{ e.min }}</span>
                       <span>{{ e.avg }}</span>
@@ -416,7 +379,6 @@
     return ElMessage.error("鏌ヨ閿欒");
   }
 
-  debugger
   dt.result.forEach((e) => {
     if (e.code != 200) {
       e.avg = "-";
@@ -522,7 +484,7 @@
       };
       //   store.commit("SET_plotting", obj);
       store.state.plottingInquireData = obj;
-    
+
       setCloseWebSocket();
       inquireData.value = {
         name: "path #9",
@@ -533,7 +495,7 @@
     }
   }
 };
-const handleClick = (tab: TabsPaneContext, event: Event) => {};
+const handleClick = (tab: TabsPaneContext, event: Event) => { };
 //   const setCloseplotting = () => {
 //     emits("setCloseplotting", false);
 //   };
@@ -581,7 +543,7 @@
   var token = getToken();
   var url = socketUrl + "?token=" + token;
   Window.ws = new WebSocket(url);
-  Window.ws.option = () => {};
+  Window.ws.option = () => { };
   Window.ws.onmessage = (msg) => {
     // console.log('鏉ヨ嚜鏈嶅姟鍣ㄧ鐨勬暟鎹細' + msg.data); //鐩戝惉鎺ュ彈鏉ヨ嚜鏈嶅姟绔殑淇℃伅
     if (msg.data != "杩炴帴鎴愬姛") {
@@ -613,6 +575,7 @@
     min: res.minList.length <= 0 ? "--" : res.minList.toString(),
     lng: store.state.plottingInquireData.entitiesData.lng,
     lat: store.state.plottingInquireData.entitiesData.lat,
+    unit: res.unit
   };
   resultList.value.push(obj);
 };
@@ -864,7 +827,7 @@
           }
 
           .table_head_td:nth-child(2) {
-            width:16.34375vw;
+            width: 16.34375vw;
             display: flex;
             justify-content: space-between;
             align-items: center;
@@ -894,15 +857,17 @@
               align-items: center;
               border-right: 1px solid rgba(214, 228, 255, 0.4);
               box-sizing: border-box;
-              div{
+
+              div {
                 width: 100%;
                 background: skyblue;
                 height: 100%;
               }
+
               // padding: 5px;
               // white-space: nowrap;
               span {
-                
+
                 display: block;
                 width: 17%;
                 word-wrap: break-word;
@@ -924,10 +889,10 @@
             .table_td:nth-child(2) {
               width: 16.34375vw;
               display: flex;
-            justify-content: space-between;
-            align-items: center;
-            padding: 0 10px;
-            border-right: 0;
+              justify-content: space-between;
+              align-items: center;
+              padding: 0 10px;
+              border-right: 0;
             }
           }
 

--
Gitblit v1.9.3