فهرست منبع

修改返回的地块解析错误问题

sugb 8 ماه پیش
والد
کامیت
fe3e237f88
1فایلهای تغییر یافته به همراه3 افزوده شده و 20 حذف شده
  1. 3 20
      src/views/dashboard/IndexChart.vue

+ 3 - 20
src/views/dashboard/IndexChart.vue

@@ -106,9 +106,7 @@
             </a-row>
           </a-card>
       </div>
-
     </div>
-
     <div>
       <!--省属企业首页-->
       <div v-has="'ssqysy2'" style="display: flex">
@@ -169,7 +167,6 @@
                 <a-tooltip title="指标说明" slot="action">
                   <a-icon type="info-circle-o" />
                 </a-tooltip>
-
               </chart-card>
             </a-col>
             <a-col  :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="wshsl">
@@ -320,12 +317,6 @@
         </a-col>
       </a-row>
     </a-card>
-
-
-
-
-
-
     <a-card v-has="'chart'" :loading="loading" :bordered="false" :body-style="{padding: '0'}">
       <div class="salesCard">
         <a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}">
@@ -363,7 +354,6 @@
         </a-tabs>
       </div>
     </a-card>
-
     <a-card>
       <a-col>
         <UserAnnouncement></UserAnnouncement>
@@ -481,8 +471,7 @@
         pieData:[],
         sydwpieData:[],
         sydwrankList1:[],
-
-          rankList1:[],
+        rankList1:[],
         loading: true,
         center: null,
         rankList,
@@ -686,7 +675,6 @@
         }*/
       },
       selectXfrws(){
-
         getAction("/qcsb.qyxx/qcQyxx/rwdls").then(res=>{
           if(res.code==200){
             for (let i = 0; i <res.result1.length; i++) {
@@ -698,14 +686,12 @@
             }
           }
           if(this.yhjs=='shyh'||this.yhjs=='sjzh'){
-
              this.show=true;
           }
         })
 
       },
       selectsydw(){
-        // todo: 上报地块面积,未审核面积
         getAction("/qcsb.qyxx/qcQyxx/sydw").then(res=>{
           if(res.code==200){
             for (let i = 0; i <res.result1.length; i++) {
@@ -719,7 +705,6 @@
             }
           }
         })
-
       },
       selectShzt(){
         getAction("/qcsb.qyxx/qcQyxx/shzt").then(res=>{
@@ -778,11 +763,9 @@
         getAction("/qcsb.qyxx/qcQyxx/wshsl").then(res=>{
           if(res.code==200){
             // res.result返回格式 “0|0”
-            let wsh = res.result.slice('|');
-
+            let wsh = res.result.split('|');
             this.wshsl = wsh.length > 1 ? wsh[0] : wsh;
-
-            this.wshsmj = wsh.length > 1 ? wsh[2]: 0; // 未审核面积数
+            this.wshsmj = wsh.length > 1 ? wsh[1]: 0; // 未审核面积数
           }
         })
       },