roose 4 년 전
부모
커밋
26933c60fa
6개의 변경된 파일2개의 추가작업 그리고 209개의 파일을 삭제
  1. BIN
      src/assets/Ranking/bj.png
  2. BIN
      src/assets/Ranking/fanhui.png
  3. BIN
      src/assets/Ranking/lanyuan.png
  4. BIN
      src/assets/Ranking/queren.png
  5. 1 1
      src/components/PatrolmanStatistics/5.vue
  6. 1 208
      src/pages/Home.vue

BIN
src/assets/Ranking/bj.png


BIN
src/assets/Ranking/fanhui.png


BIN
src/assets/Ranking/lanyuan.png


BIN
src/assets/Ranking/queren.png


+ 1 - 1
src/components/PatrolmanStatistics/5.vue

@@ -3,7 +3,7 @@
 </template>
 
 <script>
-    import { oldPersonHealth } from '../../api'
+    // import { oldPersonHealth } from '../../api'
 
     export default {
         name: "OldPersonHealthCount",

+ 1 - 208
src/pages/Home.vue

@@ -280,8 +280,6 @@
     import com4 from "../components/index/4.vue";
     import com5 from "../components/index/5.vue";
     import vueSeamlessScroll from "vue-seamless-scroll";
-    import moment from "moment";
-
     export default {
         name: "Home",
         components: {com1, com2, com3, com4, com5, jlMap, vueSeamlessScroll},
@@ -459,20 +457,6 @@
             this.timer = setInterval(() => {
                 this.ssdj();
             }, 60000);
-            this.fiveNum();
-            this.platformResult();
-            this.enterpriseResult();
-            this.addressResult();
-            this.loanResult();
-            // this.financingSuccessRate();
-            this.financingDemandSatisfactionRate();
-            // this.averageHandlingTime();
-            this.averageInterestRate();
-            this.zcyh();
-            this.mapsec();
-            this.ssdj();
-            this.mapfirst();
-            this.pingjunfangkuanedu();
         },
         methods: {
             //  右边第一个  地区探访数据 按钮
@@ -503,200 +487,9 @@
                 this.isleftbtnTure = false;
             },
 
-
-            async pingjunfangkuanedu() {
-                const response = await pingjunfangkuanedu();
-                this.circledata2 = parseInt(response);
-                // console.log(response, "11111111");
-                // this.fangkuanedu = this.utilXiaoshu(response);
-            },
-            //时间工具类
-            utiljsonTwo(response) {
-                let arr1 = response.data1.map(item => {
-                    let json = {};
-                    json.label = moment(item.label, "YYYY-MM-DD").format("D");
-                    json.value = item.value;
-                    return json;
-                });
-                return arr1;
-            },
-            async loanResult() {
-                const response = await loanResult();
-                this.data4 = response.data1;
-            },
-            // 左一接口
-            async platformResult() {
-                const response = await platformResult();
-                // console.log(response);
-                // this.dataArr1 = response.data1;
-                this.dataArr1 = this.utiljsonTwo(response);
-            },
-            // 左三接口
-            async addressResult() {
-                const response = await addressResult();
-                // console.log(response, "22222222");
-                let jsonArr = {};
-                let arr1 = response.data1.map(item => {
-                    let json = {};
-                    if (item.label == "延边朝鲜族自治州") {
-                        json.label = "延边";
-                    } else {
-                        if (item.label.lastIndexOf("市")) {
-                            json.label = item.label.substring(0, item.label.lastIndexOf("市"));
-                        }
-                    }
-
-                    json.value = item.value;
-                    return json;
-                });
-                let arr2 = response.data2.map(item => {
-                    let json = {};
-                    if (item.label == "延边朝鲜族自治州") {
-                        json.label = "延边";
-                    } else {
-                        if (item.label.lastIndexOf("市")) {
-                            json.label = item.label.substring(0, item.label.lastIndexOf("市"));
-                        }
-                    }
-                    json.value = item.value;
-                    return json;
-                });
-                jsonArr.data1 = arr1;
-                jsonArr.data2 = arr2;
-                this.dataArr3.push(jsonArr);
-                // console.log(this.dataArr3);
-            },
-            // 左二接口
-            async enterpriseResult() {
-                const response = await enterpriseResult();
-                let jsonArr = {};
-                let arr1 = response.data1.map(item => {
-                    let json = {};
-                    json.label = moment(item.label, "YYYY-MM-DD").format("D");
-                    json.value = item.value;
-                    return json;
-                });
-                let arr2 = response.data2.map(item => {
-                    let json = {};
-                    json.label = moment(item.label, "YYYY-MM-DD").format("D");
-                    json.value = item.value;
-                    return json;
-                });
-                jsonArr.data1 = arr1;
-                jsonArr.data2 = arr2;
-                this.dataArr2.push(jsonArr);
-            },
-            // 地图上5个统计
-            async fiveNum() {
-                const response = await fiveNum();
-                this.maptopResult = response;
-                this.circledata0 = Number(((this.maptopResult.ljfknum / this.maptopResult.sqjenum) * 100).toFixed(0));
-            },
-            async zcyh() {
-                const response = await zcyh();
-                this.zhuce = response;
-            },
-            async mapsec() {
-                const response = await mapsec();
-                // console.log(response);
-                let data = [];
-                for (let arr in response) {
-                    response[arr].forEach((item, index) => {
-                        data.push({
-                            ...item,
-                            value: this.mapDide[arr][index].concat(parseInt(item.intllmoney)),
-                            name: item.company_name
-                        });
-                    });
-                }
-                this.mapDataArr = data;
-                // }
-            },
-            // 实时统计
-            async ssdj() {
-                const response = await ssdj();
-                this.listData = response;
-            },
-            async mapfirst() {
-                const response = await mapfirst();
-                this.mapprodata.push(response);
-                // console.log(response)
-            },
-            // 右二
-            // async financingSuccessRate() {
-            //   // let y3 = this.y2 / this.y1;
-            //   // this.circledata0.push({ value: this.y3 });
-            //   // const response = await financingSuccessRate();
-            //   // if (response.status == "0") {
-            //   // let json = {};
-            //   // json.value = this.y2 / this.y1;
-            //   // this.circledata0.push({value:this.y3});
-            //   // }
-            // },
-            async financingDemandSatisfactionRate() {
-                const response = await financingDemandSatisfactionRate();
-                if (response.status == "0") {
-                    // console.log(response, "3333333333333333333333");
-                    this.circledata1 = Number(response.rate);
-                }
-            },
-            // averageHandlingTime() {
-            //   // const response = await averageHandlingTime();
-            //   // if (response.status == "0") {
-            //   //   let json = {};
-            //   //   json.value = response.time;
-            //   this.circledata2.push({ value: 4.8 });
-            //   // }
-            // },
-            async averageInterestRate() {
-                const response = await averageInterestRate();
-                if (response.status == "0") {
-                    this.circledata3 = Number(response.rate);
-                }
-            },
-            // 滚动颜色
-            scrollTextisColor: function (i) {
-                let inde = i % 3;
-                //console.log(inde)
-                if (inde === 0) {
-                    return require("../assets/index/red.png")
-                } else if (inde === 1) {
-                    return require("../assets/index/lv.png")
-                } else if (inde === 2) {
-                    return require("../assets/index/huang.png")
-                }
-            },
-            // 右一循环方法
-            isSrcArr: function (i) {
-                if (i == 0) {
-                    return require("../assets/index/red1.png");
-                } else if (i == 1) {
-                    return require("../assets/index/lv2.png");
-                } else if (i == 2) {
-                    return require("../assets/index/huang3.png");
-                } else {
-                    return require("../assets/index/lanmore.png");
-                }
-            },
-            isThree: function (i) {
-                if (i == 0) {
-                    return "#ce3552";
-                } else if (i == 1) {
-                    return "#ce8160";
-                } else if (i == 2) {
-                    return "#ceac68";
-                } else {
-                    return "#fff";
-                }
-            }
         },
         computed: {
-            y1() {
-                return (this.maptopResult.sqjenum / 10000).toFixed(2);
-            },
-            y2() {
-                return (this.maptopResult.ljfknum / 10000).toFixed(2);
-            }
+
         }
     };
 </script>