浏览代码

接口联调

duwendi 1 年之前
父节点
当前提交
403f0d101d

+ 56 - 0
src/api/audit.js

@@ -329,4 +329,60 @@ export default {
329 329
   cllx4(params) {
330 330
     return axios.post('/opt/vehicle/type/stat4', params)
331 331
   },
332
+  // 欠费总分析_欠费金额占比
333
+  qfzfx1(params) {
334
+    return axios.post('/opt/arrears/total/stat1', params)
335
+  },
336
+  // 欠费总分析_欠费条数占比
337
+  qfzfx2(params) {
338
+    return axios.post('/opt/arrears/total/stat2', params)
339
+  },
340
+  // 欠费总分析_欠费车场排行
341
+  qfzfx3(params) {
342
+    return axios.post('/opt/arrears/total/stat3', params)
343
+  },
344
+  // 欠费总分析_ 欠费车牌排行榜
345
+  qfzfx4(params) {
346
+    return axios.post('/opt/arrears/total/stat4', params)
347
+  },
348
+  // 欠费总分析_欠费金额趋势分析
349
+  qfzfx5(params) {
350
+    return axios.post('/opt/arrears/total/stat5', params)
351
+  },
352
+  // 欠费历史分析
353
+  qflsfx(params) {
354
+    return axios.post('/opt/arrears/trend/stat1', params)
355
+  },
356
+  // 城市欠费分析
357
+  csqffx(params) {
358
+    return axios.post('/opt/city/arrears/stat1', params)
359
+  },
360
+  // 欠费追缴分析
361
+  qfzjfx(params) {
362
+    return axios.post('/opt/city/pay/stat1', params)
363
+  },
364
+  // 城市收入统计
365
+  cssrtj(params) {
366
+    return axios.post('/opt/city/contrast/stat1', params)
367
+  },
368
+  // 城市统计分析_城市统计分析
369
+  cstjfx1(params) {
370
+    return axios.post('/opt/urban/statisics/stat1', params)
371
+  },
372
+  // 城市统计分析_列表
373
+  cstjfx2(params) {
374
+    return axios.post('/opt/urban/statisics/stat2', params)
375
+  },
376
+  // 客单价分析
377
+  kdjfx(params) {
378
+    return axios.post('/opt/customer/price/analysis/stat1', params)
379
+  },
380
+  // 设备运行统计
381
+  sbyxtj(params) {
382
+    return axios.post('/opt/device/report/stat1', params)
383
+  },
384
+  // 停车分析
385
+  tcfx(params) {
386
+    return axios.post('/opt/parking/stat1', params)
387
+  }
332 388
 }

+ 38 - 27
src/pages/index/components/arrears_total.vue

@@ -13,9 +13,9 @@
13 13
           :roseType="false"
14 14
           :radiusArr="['30%', '70%']"
15 15
           :colorArr="modelPieColor1"
16
-          :labelFormat="['{name|{b}}', '{sub|{@value}元 {d}%}', '{hr|}']"
17
-          :dataset="modelData.list1"
18
-          :encode="{ itemName: 'name', value: 'value' }"
16
+          :labelFormat="['{mouth|{b}}', '{sub|{@lastAmount}元 {d}%}', '{hr|}']"
17
+          :dataset="modelData1"
18
+          :encode="{ itemName: 'mouth', value: 'lastAmount' }"
19 19
         />
20 20
       </div>
21 21
       <div style="width: 33%;height: 300px">
@@ -26,8 +26,8 @@
26 26
           :roseType="false"
27 27
           :radiusArr="['30%', '70%']"
28 28
           :colorArr="modelPieColor1"
29
-          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
30
-          :dataset="modelData.list1"
29
+          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
30
+          :dataset="modelData2"
31 31
           :encode="{ itemName: 'name', value: 'value' }"
32 32
         />
33 33
       </div>
@@ -43,10 +43,10 @@
43 43
           :top="60"
44 44
           yAxisName="(个)"
45 45
           :tooltip="tooltipFormat"
46
-          :dataset="bardata"
46
+          :dataset="bardata1"
47 47
           :encode="[
48
-            {x: 'month', y: 'hs', seriesName: '接入数量'},
49
-            {x: 'month', y: 'cs', seriesName: '异常数量'}]"
48
+            {x: 'mouth', y: 'lastYearAmount', seriesName: '接入数量'},
49
+            {x: 'mouth', y: 'thisYearAmount', seriesName: '异常数量'}]"
50 50
           :labelSize="15"
51 51
           id="fxdqhszzt"
52 52
         />
@@ -65,10 +65,10 @@
65 65
           :top="60"
66 66
           yAxisName="(个)"
67 67
           :tooltip="tooltipFormat"
68
-          :dataset="bardata"
68
+          :dataset="bardata2"
69 69
           :encode="[
70
-            {x: 'month', y: 'hs', seriesName: '接入数量'},
71
-            {x: 'month', y: 'cs', seriesName: '异常数量'}]"
70
+            {x: 'mouth', y: 'lastYearAmount', seriesName: '接入数量'},
71
+            {x: 'mouth', y: 'thisYearAmount', seriesName: '异常数量'}]"
72 72
           :labelSize="15"
73 73
           id="fxdqhszz2"
74 74
         />
@@ -97,7 +97,7 @@
97 97
 import piechart from "@/components/pieChart";
98 98
 import linechart from "@/components/lineChart";
99 99
 import barchart from "@/components/barChart";
100
-import api from "@/api/article_liao";
100
+import api from "@/api/audit";
101 101
 
102 102
 export default {
103 103
   components: {
@@ -109,18 +109,19 @@ export default {
109 109
     return {
110 110
       modelPieColor: ["#4382f6","#9078f8", "#79a7db", "#FF9800", "#9C27B0"],
111 111
       modelPieColor1: ["#4382f6","#9078f8", "#6aa1e1", "#FF9800", "#9C27B0"],
112
-      modelData: {
113
-        list: [],
114
-        list1: []
115
-      },
116
-      bardata: [],
112
+      modelData1: [],
113
+      modelData2: [],
114
+      bardata1: [],
115
+      bardata2: [],
117 116
       linedata: []
118 117
     }
119 118
   },
120 119
   mounted() {
121
-    this.businessAnalysisStat()
120
+    this.businessAnalysisStat1()
122 121
     this.businessAnalysisStat2()
123 122
     this.businessAnalysisStat3()
123
+    this.businessAnalysisStat4()
124
+    this.businessAnalysisStat5()
124 125
   },
125 126
   watch: {
126 127
 
@@ -131,9 +132,9 @@ export default {
131 132
       const data = params[0].data;
132 133
       return `<div class="line-tooltip">
133 134
 <div>${params[0].seriesName}: ${
134
-        params[0].data.hs || "--"}元</div>
135
+        params[0].data.lastYearAmount || "--"}个</div>
135 136
 <div>${params[1].seriesName}: ${
136
-        params[0].data.cs || "--"}元</div>
137
+        params[0].data.thisYearAmount || "--"}个</div>
137 138
 </div>`;
138 139
     },
139 140
     lineTooltipFormat(params) {
@@ -142,19 +143,29 @@ export default {
142 143
         params[0].data.lastAmount  || "--"
143 144
       }元</div>`;
144 145
     },
145
-    businessAnalysisStat(){
146
-      api.businessAnalysisStat().then(res =>{
147
-        this.bardata = res.data
146
+    businessAnalysisStat1(){
147
+      api.qfzfx1().then(res =>{
148
+        this.modelData1 = res.data
148 149
       })
149 150
     },
150 151
     businessAnalysisStat2(){
151
-      api.businessAnalysisStat2().then(res =>{
152
-        this.modelData.list = res.data
152
+      api.qfzfx2().then(res =>{
153
+        this.modelData2 = res.data
153 154
       })
154 155
     },
155 156
     businessAnalysisStat3(){
156
-      api.businessAnalysisStat3().then(res =>{
157
-        this.modelData.list1 = res.data
157
+      api.qfzfx3().then(res =>{
158
+        this.bardata1 = res.data
159
+      })
160
+    },
161
+    businessAnalysisStat4(){
162
+      api.qfzfx4().then(res =>{
163
+        this.bardata2 = res.data
164
+      })
165
+    },
166
+    businessAnalysisStat5(){
167
+      api.qfzfx5().then(res =>{
168
+        this.linedata = res.data
158 169
       })
159 170
     },
160 171
     xLabelFormat(name) {

+ 3 - 44
src/pages/index/components/arrears_trend.vue

@@ -2,7 +2,6 @@
2 2
   <div class="body-wrapper">
3 3
     <h2 style="color: #3498db;">欠费历史分析</h2>
4 4
     <br>
5
-
6 5
       <div style="width: 100%; height: 600px">
7 6
         <linechart
8 7
           :autoStop="false"
@@ -22,48 +21,25 @@
22 21
   </div>
23 22
 </template>
24 23
 <script>
25
-import piechart from "@/components/pieChart";
26 24
 import linechart from "@/components/lineChart";
27
-import barchart from "@/components/barChart";
28
-import api from "@/api/article_liao";
25
+import api from "@/api/audit";
29 26
 
30 27
 export default {
31 28
   components: {
32
-    piechart,
33
-    barchart,
34 29
     linechart
35 30
   },
36 31
   data() {
37 32
     return {
38
-      modelPieColor: ["#4382f6","#9078f8", "#79a7db", "#FF9800", "#9C27B0"],
39
-      modelPieColor1: ["#4382f6","#9078f8", "#6aa1e1", "#FF9800", "#9C27B0"],
40
-      modelData: {
41
-        list: [],
42
-        list1: []
43
-      },
44
-      bardata: [],
45 33
       linedata: []
46 34
     }
47 35
   },
48 36
   mounted() {
49 37
     this.businessAnalysisStat()
50
-    this.businessAnalysisStat2()
51
-    this.businessAnalysisStat3()
52 38
   },
53 39
   watch: {
54 40
 
55 41
   },
56 42
   methods: {
57
-    tooltipFormat(params) {
58
-      const type = params[0].seriesType;
59
-      const data = params[0].data;
60
-      return `<div class="line-tooltip">
61
-<div>${params[0].seriesName}: ${
62
-        params[0].data.hs || "--"}元</div>
63
-<div>${params[1].seriesName}: ${
64
-        params[0].data.cs || "--"}元</div>
65
-</div>`;
66
-    },
67 43
     lineTooltipFormat(params) {
68 44
       return `<div class="line-tooltip">
69 45
         <div style="color: ${params[0].color}">${params[0].data.mouth} : ${
@@ -71,27 +47,10 @@ export default {
71 47
       }元</div>`;
72 48
     },
73 49
     businessAnalysisStat(){
74
-      api.businessAnalysisStat().then(res =>{
75
-        this.bardata = res.data
76
-      })
77
-    },
78
-    businessAnalysisStat2(){
79
-      api.businessAnalysisStat2().then(res =>{
80
-        this.modelData.list = res.data
81
-      })
82
-    },
83
-    businessAnalysisStat3(){
84
-      api.businessAnalysisStat3().then(res =>{
85
-        this.modelData.list1 = res.data
50
+      api.qflsfx().then(res =>{
51
+        this.linedata = res.data
86 52
       })
87 53
     },
88
-    xLabelFormat(name) {
89
-      const nameArr = []
90
-      for(let i=0; i<name.length; i+=7) {
91
-        nameArr.push(name.substring(i, i+7))
92
-      }
93
-      return nameArr.join('\n');
94
-    }
95 54
   }
96 55
 }
97 56
 </script>

+ 4 - 41
src/pages/index/components/city_arrears.vue

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3
-    <h2 style="color: #3498db;">欠费历史分析</h2>
3
+    <h2 style="color: #3498db;">城市欠费分析</h2>
4 4
     <br>
5 5
 <!--    <el-form class="form-wrapper" :inline="true" :model="formInline">-->
6 6
 <!--      <el-form-item label="">-->
@@ -37,15 +37,11 @@
37 37
   </div>
38 38
 </template>
39 39
 <script>
40
-import piechart from "@/components/pieChart";
41 40
 import linechart from "@/components/lineChart";
42
-import barchart from "@/components/barChart";
43
-import api from "@/api/article_liao";
41
+import api from "@/api/audit";
44 42
 
45 43
 export default {
46 44
   components: {
47
-    piechart,
48
-    barchart,
49 45
     linechart
50 46
   },
51 47
   data() {
@@ -53,58 +49,25 @@ export default {
53 49
       formInline: {
54 50
         comType: ''
55 51
       },
56
-      modelPieColor: ["#4382f6","#9078f8", "#79a7db", "#FF9800", "#9C27B0"],
57
-      modelPieColor1: ["#4382f6","#9078f8", "#6aa1e1", "#FF9800", "#9C27B0"],
58
-      modelData: {
59
-        list: [],
60
-        list1: []
61
-      },
62
-      bardata: [],
63 52
       linedata: []
64 53
     }
65 54
   },
66 55
   mounted() {
67 56
     this.businessAnalysisStat()
68
-    this.businessAnalysisStat2()
69
-    this.businessAnalysisStat3()
70 57
   },
71 58
   watch: {
72 59
 
73 60
   },
74 61
   methods: {
75
-    tooltipFormat(params) {
76
-      const type = params[0].seriesType;
77
-      const data = params[0].data;
78
-      return `<div class="line-tooltip">
79
-<div>${params[0].seriesName}: ${
80
-        params[0].data.hs || "--"}元</div>
81
-<div>${params[1].seriesName}: ${
82
-        params[0].data.cs || "--"}元</div>
83
-</div>`;
84
-    },
85 62
     lineTooltipFormat(params) {
86 63
       return `<div class="line-tooltip">
87 64
         <div style="color: ${params[0].color}">${params[0].data.mouth} : ${
88 65
         params[0].data.lastAmount  || "--"
89 66
       }元</div>`;
90 67
     },
91
-    onSubmit() {
92
-      this.pageNum = 1
93
-      this.getTableData()
94
-    },
95 68
     businessAnalysisStat(){
96
-      api.businessAnalysisStat().then(res =>{
97
-        this.bardata = res.data
98
-      })
99
-    },
100
-    businessAnalysisStat2(){
101
-      api.businessAnalysisStat2().then(res =>{
102
-        this.modelData.list = res.data
103
-      })
104
-    },
105
-    businessAnalysisStat3(){
106
-      api.businessAnalysisStat3().then(res =>{
107
-        this.modelData.list1 = res.data
69
+      api.csqffx().then(res =>{
70
+        this.linedata = res.data
108 71
       })
109 72
     },
110 73
     xLabelFormat(name) {

+ 3 - 20
src/pages/index/components/city_contrast.vue

@@ -37,15 +37,11 @@
37 37
   </div>
38 38
 </template>
39 39
 <script>
40
-import piechart from "@/components/pieChart";
41 40
 import linechart from "@/components/lineChart";
42
-import barchart from "@/components/barChart";
43
-import api from "@/api/article_liao";
41
+import api from "@/api/audit";
44 42
 
45 43
 export default {
46 44
   components: {
47
-    piechart,
48
-    barchart,
49 45
     linechart
50 46
   },
51 47
   data() {
@@ -53,20 +49,11 @@ export default {
53 49
       formInline: {
54 50
         comType: ''
55 51
       },
56
-      modelPieColor: ["#4382f6","#9078f8", "#79a7db", "#FF9800", "#9C27B0"],
57
-      modelPieColor1: ["#4382f6","#9078f8", "#6aa1e1", "#FF9800", "#9C27B0"],
58
-      modelData: {
59
-        list: [],
60
-        list1: []
61
-      },
62
-      bardata: [],
63 52
       linedata: []
64 53
     }
65 54
   },
66 55
   mounted() {
67 56
     this.businessAnalysisStat()
68
-    this.businessAnalysisStat2()
69
-    this.businessAnalysisStat3()
70 57
   },
71 58
   watch: {
72 59
 
@@ -88,13 +75,9 @@ export default {
88 75
         params[0].data.lastAmount  || "--"
89 76
       }元</div>`;
90 77
     },
91
-    onSubmit() {
92
-      this.pageNum = 1
93
-      this.getTableData()
94
-    },
95 78
     businessAnalysisStat(){
96
-      api.businessAnalysisStat().then(res =>{
97
-        this.bardata = res.data
79
+      api.cssrtj().then(res =>{
80
+        this.linedata = res.data
98 81
       })
99 82
     },
100 83
     businessAnalysisStat2(){

+ 3 - 40
src/pages/index/components/city_pay.vue

@@ -37,15 +37,11 @@
37 37
   </div>
38 38
 </template>
39 39
 <script>
40
-import piechart from "@/components/pieChart";
41 40
 import linechart from "@/components/lineChart";
42
-import barchart from "@/components/barChart";
43
-import api from "@/api/article_liao";
41
+import api from "@/api/audit";
44 42
 
45 43
 export default {
46 44
   components: {
47
-    piechart,
48
-    barchart,
49 45
     linechart
50 46
   },
51 47
   data() {
@@ -53,58 +49,25 @@ export default {
53 49
       formInline: {
54 50
         comType: ''
55 51
       },
56
-      modelPieColor: ["#4382f6","#9078f8", "#79a7db", "#FF9800", "#9C27B0"],
57
-      modelPieColor1: ["#4382f6","#9078f8", "#6aa1e1", "#FF9800", "#9C27B0"],
58
-      modelData: {
59
-        list: [],
60
-        list1: []
61
-      },
62
-      bardata: [],
63 52
       linedata: []
64 53
     }
65 54
   },
66 55
   mounted() {
67 56
     this.businessAnalysisStat()
68
-    this.businessAnalysisStat2()
69
-    this.businessAnalysisStat3()
70 57
   },
71 58
   watch: {
72 59
 
73 60
   },
74 61
   methods: {
75
-    tooltipFormat(params) {
76
-      const type = params[0].seriesType;
77
-      const data = params[0].data;
78
-      return `<div class="line-tooltip">
79
-<div>${params[0].seriesName}: ${
80
-        params[0].data.hs || "--"}元</div>
81
-<div>${params[1].seriesName}: ${
82
-        params[0].data.cs || "--"}元</div>
83
-</div>`;
84
-    },
85 62
     lineTooltipFormat(params) {
86 63
       return `<div class="line-tooltip">
87 64
         <div style="color: ${params[0].color}">${params[0].data.mouth} : ${
88 65
         params[0].data.lastAmount  || "--"
89 66
       }元</div>`;
90 67
     },
91
-    onSubmit() {
92
-      this.pageNum = 1
93
-      this.getTableData()
94
-    },
95 68
     businessAnalysisStat(){
96
-      api.businessAnalysisStat().then(res =>{
97
-        this.bardata = res.data
98
-      })
99
-    },
100
-    businessAnalysisStat2(){
101
-      api.businessAnalysisStat2().then(res =>{
102
-        this.modelData.list = res.data
103
-      })
104
-    },
105
-    businessAnalysisStat3(){
106
-      api.businessAnalysisStat3().then(res =>{
107
-        this.modelData.list1 = res.data
69
+      api.qfzjfx().then(res =>{
70
+        this.linedata = res.data
108 71
       })
109 72
     },
110 73
     xLabelFormat(name) {

+ 3 - 16
src/pages/index/components/customer_price_analysis.vue

@@ -12,7 +12,7 @@
12 12
           id="chart1"
13 13
           :radiusArr="['0%', '70%']"
14 14
           :colorArr="modelPieColor"
15
-          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
15
+          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
16 16
           :dataset="modelData"
17 17
           :encode="{ itemName: 'name', value: 'value' }"
18 18
         />
@@ -22,7 +22,7 @@
22 22
 </template>
23 23
 <script>
24 24
 import piechart from "@/components/pieChart";
25
-import api from "@/api/article_z";
25
+import api from "@/api/audit";
26 26
 
27 27
 export default {
28 28
   components: {
@@ -32,19 +32,6 @@ export default {
32 32
     return {
33 33
       modelPieColor: ["#4382f6","#9078f8","#C1FFC1","#1E90FF"],
34 34
       modelData: [],
35
-      tableData: [],
36
-      total: 0,
37
-      pageSize: 10,
38
-      pageNum: 1,
39
-      radio: '2',
40
-      dialogVisible: false,
41
-      formLabelAlign: {
42
-        mid: '',
43
-        searchWords:''
44
-      },
45
-      selRow: undefined,
46
-      searchWords: undefined,
47
-      title: ''
48 35
     }
49 36
   },
50 37
   mounted() {
@@ -54,7 +41,7 @@ export default {
54 41
   },
55 42
   methods: {
56 43
     getModelDataData(){
57
-      api.queryCustomerComplaint_Ksfx().then(res=>{
44
+      api.kdjfx().then(res=>{
58 45
         this.modelData = res.data;
59 46
       })
60 47
     },

+ 16 - 10
src/pages/index/components/device_report.vue

@@ -25,7 +25,7 @@
25 25
 import piechart from "@/components/pieChart";
26 26
 import linechart from "@/components/lineChart";
27 27
 import barchart from "@/components/barChart";
28
-import api from "@/api/article_liao";
28
+import api from "@/api/audit";
29 29
 
30 30
 export default {
31 31
   components: {
@@ -45,18 +45,24 @@ export default {
45 45
 
46 46
   },
47 47
   methods: {
48
-    tooltipFormat(params) {
49
-      const type = params[0].seriesType;
50
-      const data = params[0].data;
48
+    lineTooltipFormat(params) {
51 49
       return `<div class="line-tooltip">
52
-<div>${params[0].seriesName}: ${
53
-        params[0].data.hs || "--"}元</div>
54
-<div>${params[1].seriesName}: ${
55
-        params[0].data.cs || "--"}元</div>
56
-</div>`;
50
+        <div style="color: ${params[0].color}">${params[0].data.mouth} : ${
51
+        params[0].data.lastAmount  || "--"
52
+      }元</div>`;
57 53
     },
54
+//     tooltipFormat(params) {
55
+//       const type = params[0].seriesType;
56
+//       const data = params[0].data;
57
+//       return `<div class="line-tooltip">
58
+// <div>${params[0].seriesName}: ${
59
+//         params[0].data.hs || "--"}元</div>
60
+// <div>${params[1].seriesName}: ${
61
+//         params[0].data.cs || "--"}元</div>
62
+// </div>`;
63
+//     },
58 64
     businessAnalysisStat(){
59
-      api.businessAnalysisStat().then(res =>{
65
+      api.sbyxtj().then(res =>{
60 66
         this.linedata = res.data
61 67
       })
62 68
     },

+ 1 - 1
src/pages/index/components/gap_analysis.vue

@@ -206,7 +206,7 @@ export default {
206 206
           dataIndex: this.dqIndex + 1,
207 207
         });
208 208
         this.dqIndex++;
209
-        if (this.dqIndex > 4) {
209
+        if (this.dqIndex > 7) {
210 210
           this.dqIndex = -1;
211 211
         }
212 212
       }, 3000);

+ 1 - 1
src/pages/index/components/hot_map.vue

@@ -107,7 +107,7 @@ export default {
107 107
           dataIndex: this.dqIndex + 1,
108 108
         });
109 109
         this.dqIndex++;
110
-        if (this.dqIndex > 4) {
110
+        if (this.dqIndex > 7) {
111 111
           this.dqIndex = -1;
112 112
         }
113 113
       }, 3000);

+ 13 - 0
src/pages/index/components/other_analyse.vue

@@ -327,6 +327,19 @@ export default {
327 327
   watch: {
328 328
   },
329 329
   methods: {
330
+    setIntervalMap(chart) {
331
+      this.timer = setInterval(() => {
332
+        chart.dispatchAction({
333
+          type: "showTip",
334
+          seriesIndex: 0,
335
+          dataIndex: this.dqIndex + 1,
336
+        });
337
+        this.dqIndex++;
338
+        if (this.dqIndex > 7) {
339
+          this.dqIndex = -1;
340
+        }
341
+      }, 3000);
342
+    },
330 343
     getQyfx() {
331 344
       api.qyfx().then(res => {
332 345
         this.bardata = res.data || []

+ 1 - 1
src/pages/index/components/park_easy.vue

@@ -202,7 +202,7 @@ export default {
202 202
           dataIndex: this.dqIndex + 1,
203 203
         });
204 204
         this.dqIndex++;
205
-        if (this.dqIndex > 4) {
205
+        if (this.dqIndex > 7) {
206 206
           this.dqIndex = -1;
207 207
         }
208 208
       }, 3000);

+ 1 - 1
src/pages/index/components/park_guidance.vue

@@ -149,7 +149,7 @@ export default {
149 149
           dataIndex: this.dqIndex + 1,
150 150
         });
151 151
         this.dqIndex++;
152
-        if (this.dqIndex > 4) {
152
+        if (this.dqIndex > 7) {
153 153
           this.dqIndex = -1;
154 154
         }
155 155
       }, 3000);

+ 40 - 42
src/pages/index/components/parking.vue

@@ -10,6 +10,7 @@
10 10
 <script>
11 11
 import * as echarts from 'echarts'
12 12
 import * as geoJson from '../../../util/411100.json'
13
+import api from "@/api/audit";
13 14
 
14 15
 export default {
15 16
   data() {
@@ -107,7 +108,7 @@ export default {
107 108
           dataIndex: this.dqIndex + 1,
108 109
         });
109 110
         this.dqIndex++;
110
-        if (this.dqIndex > 4) {
111
+        if (this.dqIndex > 7) {
111 112
           this.dqIndex = -1;
112 113
         }
113 114
       }, 3000);
@@ -119,50 +120,47 @@ export default {
119 120
     },
120 121
   },
121 122
   mounted() {
122
-    let arr = []
123
-    let dataSoure = {
124
-      '411102': {quyuName: '源汇区', zb: 40},
125
-      '411103': {quyuName: '郾城区', zb: 60},
126
-      '411104': {quyuName: '召陵区', zb: 40},
127
-      '411121': {quyuName: '舞阳县', zb: 50},
128
-      '411122': {quyuName: '临颍县', zb: 30}}
129
-    for (const key in dataSoure) {
130
-      if (key !== '411100') {
131
-        arr.push({
132
-          name: dataSoure[key].quyuName,
133
-          value: Number(dataSoure[key].zb),
134
-        });
123
+    api.tcfx().then(res => {
124
+      let arr = []
125
+      let dataSource = res.data
126
+      for (const key in dataSource) {
127
+        if (key !== '411100') {
128
+          arr.push({
129
+            name: dataSource[key].quyuName,
130
+            value: Number(dataSource[key].zb),
131
+          });
132
+        }
135 133
       }
136
-    }
137
-    let mapMax = Math.max(...arr.map(item => item.value))
138
-    let mapMin = Math.min(...arr.map(item => item.value))
139
-    let chart = echarts.init(document.getElementById("map"));
140
-    echarts.registerMap("luohe", geoJson);
141
-    this.option.series[0].data = arr;
142
-    this.option.visualMap.min = mapMin;
143
-    this.option.visualMap.max = mapMax;
144
-    chart.setOption(this.option);
145
-    this.dqIndex = -1;
146
-    this.setIntervalMap(chart);
147
-    //鼠标移入静止播放
148
-    chart.on("mouseover", (e) => {
149
-      clearInterval(this.timer);
150
-      chart.dispatchAction({
151
-        type: "showTip",
152
-        seriesIndex: 0,
153
-        dataIndex: e.dataIndex,
134
+      let mapMax = Math.max(...arr.map(item => item.value))
135
+      let mapMin = Math.min(...arr.map(item => item.value))
136
+      let chart = echarts.init(document.getElementById("map"));
137
+      echarts.registerMap("luohe", geoJson);
138
+      this.option.series[0].data = arr;
139
+      this.option.visualMap.min = mapMin;
140
+      this.option.visualMap.max = mapMax;
141
+      chart.setOption(this.option);
142
+      this.dqIndex = -1;
143
+      this.setIntervalMap(chart);
144
+      //鼠标移入静止播放
145
+      chart.on("mouseover", (e) => {
146
+        clearInterval(this.timer);
147
+        chart.dispatchAction({
148
+          type: "showTip",
149
+          seriesIndex: 0,
150
+          dataIndex: e.dataIndex,
151
+        });
154 152
       });
155
-    });
156
-    chart.on("mouseout", (e) => {
157
-      clearInterval(this.timer);
158
-      //鼠标移出后先把上次的高亮取消
159
-      chart.dispatchAction({
160
-        type: "downplay",
161
-        seriesIndex: 0,
162
-        dataIndex: e.dataIndex,
153
+      chart.on("mouseout", (e) => {
154
+        clearInterval(this.timer);
155
+        //鼠标移出后先把上次的高亮取消
156
+        chart.dispatchAction({
157
+          type: "downplay",
158
+          seriesIndex: 0,
159
+          dataIndex: e.dataIndex,
160
+        });
161
+        this.setIntervalMap(chart);
163 162
       });
164
-      this.setIntervalMap(chart);
165
-    });
163
+    })
166 164
   },
167 165
 };
168 166
 </script>

+ 1 - 1
src/pages/index/components/parking_heatmap.vue

@@ -211,7 +211,7 @@ export default {
211 211
           dataIndex: this.dqIndex + 1,
212 212
         });
213 213
         this.dqIndex++;
214
-        if (this.dqIndex > 4) {
214
+        if (this.dqIndex > 7) {
215 215
           this.dqIndex = -1;
216 216
         }
217 217
       }, 3000);

+ 1 - 1
src/pages/index/components/service_operations.vue

@@ -226,7 +226,7 @@ export default {
226 226
           dataIndex: this.dqIndex + 1,
227 227
         });
228 228
         this.dqIndex++;
229
-        if (this.dqIndex > 4) {
229
+        if (this.dqIndex > 7) {
230 230
           this.dqIndex = -1;
231 231
         }
232 232
       }, 3000);

+ 11 - 17
src/pages/index/components/urban_statisics.vue

@@ -42,7 +42,7 @@
42 42
 </template>
43 43
 <script>
44 44
 import linechart from "@/components/lineChart";
45
-import api from "@/api/article_liao";
45
+import api from "@/api/audit";
46 46
 
47 47
 export default {
48 48
   components: {
@@ -56,36 +56,25 @@ export default {
56 56
       columns: [
57 57
         {
58 58
           label: '地区',
59
-          key: 'area'
59
+          key: 'mouth'
60 60
         },
61 61
         {
62 62
           label: '实缴率',
63
-          key: 'rate'
63
+          key: 'lastAmount'
64 64
         }
65 65
       ],
66 66
       linedata: [],
67
+      tableData: []
67 68
     }
68 69
   },
69 70
   mounted() {
70 71
     this.businessAnalysisStat()
72
+    this.businessAnalysisStat2()
71 73
   },
72 74
   watch: {
73 75
 
74 76
   },
75 77
   methods: {
76
-    indexMethod(index) {
77
-      return this.pageSize * (this.pageNum - 1) + index + 1
78
-    },
79
-    tooltipFormat(params) {
80
-      const type = params[0].seriesType;
81
-      const data = params[0].data;
82
-      return `<div class="line-tooltip">
83
-<div>${params[0].seriesName}: ${
84
-        params[0].data.hs || "--"}元</div>
85
-<div>${params[1].seriesName}: ${
86
-        params[0].data.cs || "--"}元</div>
87
-</div>`;
88
-    },
89 78
     lineTooltipFormat(params) {
90 79
       return `<div class="line-tooltip">
91 80
         <div style="color: ${params[0].color}">${params[0].data.mouth} : ${
@@ -93,10 +82,15 @@ export default {
93 82
       }元</div>`;
94 83
     },
95 84
     businessAnalysisStat(){
96
-      api.businessAnalysisStat().then(res =>{
85
+      api.cstjfx1().then(res =>{
97 86
         this.linedata = res.data
98 87
       })
99 88
     },
89
+    businessAnalysisStat2(){
90
+      api.cstjfx2().then(res =>{
91
+        this.tableData = res.data
92
+      })
93
+    },
100 94
     xLabelFormat(name) {
101 95
       const nameArr = []
102 96
       for(let i=0; i<name.length; i+=7) {

+ 2 - 1
static/mung-local-config.js

@@ -1,6 +1,7 @@
1 1
 window.mungConfig = {
2 2
   dev: {
3
-    BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"
3
+    BASE_API: "http://localhost:16399/luohe2_ee/api"
4
+    // BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"
4 5
   },
5 6
   build: {
6 7
     BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"