Browse Source

真实数据修改

ssfg 5 years ago
parent
commit
3378e164c9
3 changed files with 24 additions and 27 deletions
  1. 1 1
      src/pages/EnterpriseInformation.vue
  2. 16 20
      src/pages/Home.vue
  3. 7 6
      src/pages/LoanStatistics.vue

+ 1 - 1
src/pages/EnterpriseInformation.vue

@@ -245,7 +245,7 @@ export default {
     //
     //
     async threemap() {
     async threemap() {
       const response = await threemap();
       const response = await threemap();
-      console.log(response, "11111111");
+      // console.log(response, "11111111");
       let json = {};
       let json = {};
       json.value = response.bcqynum;
       json.value = response.bcqynum;
       json.name = "白城市";
       json.name = "白城市";

+ 16 - 20
src/pages/Home.vue

@@ -307,8 +307,8 @@ import {
   addressResult,
   addressResult,
   pingjunfangkuanedu,
   pingjunfangkuanedu,
   // financingSuccessRate,
   // financingSuccessRate,
-  averageInterestRate
-  // financingDemandSatisfactionRate,
+  averageInterestRate,
+  financingDemandSatisfactionRate
   // averageHandlingTime
   // averageHandlingTime
 } from "../api";
 } from "../api";
 export default {
 export default {
@@ -396,7 +396,7 @@ export default {
         }
         }
       ],
       ],
       circledata0: 0,
       circledata0: 0,
-      circledata1: 89,
+      circledata1: 0,
       circledata2: 0,
       circledata2: 0,
       circledata3: 0,
       circledata3: 0,
       mapDataArr: [],
       mapDataArr: [],
@@ -489,7 +489,7 @@ export default {
     this.addressResult();
     this.addressResult();
     this.loanResult();
     this.loanResult();
     // this.financingSuccessRate();
     // this.financingSuccessRate();
-    // this.financingDemandSatisfactionRate();
+    this.financingDemandSatisfactionRate();
     // this.averageHandlingTime();
     // this.averageHandlingTime();
     this.averageInterestRate();
     this.averageInterestRate();
     this.zcyh();
     this.zcyh();
@@ -502,7 +502,7 @@ export default {
     async pingjunfangkuanedu() {
     async pingjunfangkuanedu() {
       const response = await pingjunfangkuanedu();
       const response = await pingjunfangkuanedu();
       this.circledata2 = parseInt(response);
       this.circledata2 = parseInt(response);
-      console.log(response, "11111111");
+      // console.log(response, "11111111");
       // this.fangkuanedu = this.utilXiaoshu(response);
       // this.fangkuanedu = this.utilXiaoshu(response);
     },
     },
     //时间工具类
     //时间工具类
@@ -529,7 +529,7 @@ export default {
     // 左三接口
     // 左三接口
     async addressResult() {
     async addressResult() {
       const response = await addressResult();
       const response = await addressResult();
-      console.log(response,'22222222');
+      // console.log(response, "22222222");
       let jsonArr = {};
       let jsonArr = {};
       let arr1 = response.data1.map(item => {
       let arr1 = response.data1.map(item => {
         let json = {};
         let json = {};
@@ -559,7 +559,7 @@ export default {
       jsonArr.data1 = arr1;
       jsonArr.data1 = arr1;
       jsonArr.data2 = arr2;
       jsonArr.data2 = arr2;
       this.dataArr3.push(jsonArr);
       this.dataArr3.push(jsonArr);
-      console.log(this.dataArr3);
+      // console.log(this.dataArr3);
     },
     },
     // 左二接口
     // 左二接口
     async enterpriseResult() {
     async enterpriseResult() {
@@ -585,8 +585,7 @@ export default {
     async fiveNum() {
     async fiveNum() {
       const response = await fiveNum();
       const response = await fiveNum();
       this.maptopResult = response;
       this.maptopResult = response;
-      this.circledata0 =
-        (this.maptopResult.ljfknum / this.maptopResult.sqjenum *100).toFixed(0);
+      this.circledata0 = Number(((this.maptopResult.ljfknum / this.maptopResult.sqjenum) *100).toFixed(0));
     },
     },
     async zcyh() {
     async zcyh() {
       const response = await zcyh();
       const response = await zcyh();
@@ -594,7 +593,7 @@ export default {
     },
     },
     async mapsec() {
     async mapsec() {
       const response = await mapsec();
       const response = await mapsec();
-      console.log(response);
+      // console.log(response);
       let data = [];
       let data = [];
       for (let arr in response) {
       for (let arr in response) {
         response[arr].forEach((item, index) => {
         response[arr].forEach((item, index) => {
@@ -629,14 +628,13 @@ export default {
     //   // this.circledata0.push({value:this.y3});
     //   // this.circledata0.push({value:this.y3});
     //   // }
     //   // }
     // },
     // },
-    // async financingDemandSatisfactionRate() {
-    //   // const response = await financingDemandSatisfactionRate();
-    //   // if (response.status == "0") {
-    //   //   let json = {};
-    //   //   json.value = response.rate;
-    //   this.circledata1.push({ value: 89 });
-    //   // }
-    // },
+    async financingDemandSatisfactionRate() {
+      const response = await financingDemandSatisfactionRate();
+      if (response.status == "0") {
+        // console.log(response, "3333333333333333333333");
+        this.circledata1=Number(response.rate);
+      }
+    },
     // averageHandlingTime() {
     // averageHandlingTime() {
     //   // const response = await averageHandlingTime();
     //   // const response = await averageHandlingTime();
     //   // if (response.status == "0") {
     //   // if (response.status == "0") {
@@ -648,8 +646,6 @@ export default {
     async averageInterestRate() {
     async averageInterestRate() {
       const response = await averageInterestRate();
       const response = await averageInterestRate();
       if (response.status == "0") {
       if (response.status == "0") {
-        // let json = {};
-        // json.value = response.rate;
         this.circledata3 = Number(response.rate);
         this.circledata3 = Number(response.rate);
       }
       }
     },
     },

+ 7 - 6
src/pages/LoanStatistics.vue

@@ -139,7 +139,7 @@ import {
   pingjunfangkuanedu,
   pingjunfangkuanedu,
   fangkuantopfive,
   fangkuantopfive,
   chanpinleixinghzanbi,
   chanpinleixinghzanbi,
-  // rongzixuqiumanzulv,
+  rongzixuqiumanzulv,
   pingjunlilv,
   pingjunlilv,
   ruzhuyhtop,
   ruzhuyhtop,
   maximumAmountOfLoan,
   maximumAmountOfLoan,
@@ -398,8 +398,9 @@ export default {
       this.data2 = response;
       this.data2 = response;
     },
     },
     async rongzixuqiumanzulv() {
     async rongzixuqiumanzulv() {
-      // const response = await rongzixuqiumanzulv();
-      this.data1 = 89;
+      const response = await rongzixuqiumanzulv();
+      // console.log(response,"2222222222222222222222222222")
+      this.data1 = response.rate;
     },
     },
     async pingjunlilv() {
     async pingjunlilv() {
       const response = await pingjunlilv();
       const response = await pingjunlilv();
@@ -427,11 +428,11 @@ export default {
         this.maximg = require("../assets/LoanStatistics/top1.png");
         this.maximg = require("../assets/LoanStatistics/top1.png");
       } else if (this.tu1.label == "工商银行") {
       } else if (this.tu1.label == "工商银行") {
         this.maximg = require("../assets/LoanStatistics/gsyhtop1.png");
         this.maximg = require("../assets/LoanStatistics/gsyhtop1.png");
-      }else if (this.tu1.label == "建设银行") {
+      } else if (this.tu1.label == "建设银行") {
         this.maximg = require("../assets/LoanStatistics/jsyhtop1.png");
         this.maximg = require("../assets/LoanStatistics/jsyhtop1.png");
-      }else if (this.tu1.label == "农业银行") {
+      } else if (this.tu1.label == "农业银行") {
         this.maximg = require("../assets/LoanStatistics/nyyhtop1.png");
         this.maximg = require("../assets/LoanStatistics/nyyhtop1.png");
-      }else if (this.tu1.label == "九台农商") {
+      } else if (this.tu1.label == "九台农商") {
         this.maximg = require("../assets/LoanStatistics/jtnstop1.png");
         this.maximg = require("../assets/LoanStatistics/jtnstop1.png");
       }
       }
     },
     },