zpf 11 сар өмнө
parent
commit
800a73f5d0

+ 1 - 1
src/api/cockpitNew.js

@@ -48,7 +48,7 @@ export function GetTabsPanePost(params) {
     return request({
         url: '/apply/tabledata/polygon/GetTableData',
         method: 'post',
-        params
+        data: params
     })
 }
 

+ 15 - 15
src/views/siteselection/components/dkDetailsNew.vue

@@ -37,9 +37,9 @@
         </el-form-item>
       </el-form>
       <div class="Btns">
-        <el-button  size="mini" @click="clear">清 除</el-button>
+        <el-button size="mini" @click="clear">清 除</el-button>
         <el-button type="primary" size="mini" @click="submit">确 定</el-button>
-    </div>
+      </div>
     </div>
   </div>
 </template>
@@ -111,7 +111,7 @@ export default {
         if (element.tableName == tab.name) {
 
           let pane_obj = {
-             sourceDataId: this.optional.landIds.join(','),
+            sourceDataId: this.optional.landIds.join(','),
             sourcePolygonWkt: this.optional.geom.split(";")[1],
             // sourcePolygonWkt: 'POLYGON((109.49712143164533 18.309279728765855,109.49711192926624 18.310380990351096,109.49711161665255 18.310417116323478,109.4972007070708 18.31050362418087,109.49850056210042 18.310513852191068,109.49859113294231 18.31042875918721,109.49859144375941 18.31039263236441,109.4986014051776 18.309237180686633,109.4984888696287 18.309127909086385,109.49725521594395 18.30911820207864,109.49712174425906 18.30924360340898,109.49712143164533 18.309279728765855))',
 
@@ -120,7 +120,7 @@ export default {
             queryTableId: element.tableId,
           }
 
-          let data = await GetTabsPanePost(pane_obj);
+          let data = await GetTabsPanePost(JSON.stringify(pane_obj));
           let data_echart = [];
 
           data.data.datalist != undefined && data.data.datalist.forEach((res) => {
@@ -284,16 +284,16 @@ export default {
 }
 
 .Btns {
-    width: 100%;
-    // display: -webkit-box;
-    // display: -ms-flexbox;
-    display: flex;
-    padding: 20px 30px;
-    // -webkit-box-pack: justify;
-    // -ms-flex-pack: justify;
-    justify-content: space-between;
-    // text-align: center;
-    // position: absolute;
-    // bottom: 0px;
+  width: 100%;
+  // display: -webkit-box;
+  // display: -ms-flexbox;
+  display: flex;
+  padding: 20px 30px;
+  // -webkit-box-pack: justify;
+  // -ms-flex-pack: justify;
+  justify-content: space-between;
+  // text-align: center;
+  // position: absolute;
+  // bottom: 0px;
 }
 </style>