zouooh 1 年之前
父節點
當前提交
29b2f4c212
共有 2 個文件被更改,包括 9 次插入19 次删除
  1. 2 2
      src/api/audit.js
  2. 7 17
      src/pages/index/components/business_conditions.vue

+ 2 - 2
src/api/audit.js

@@ -31,7 +31,7 @@ export default {
31
   },
31
   },
32
   // 停车场情况-总览
32
   // 停车场情况-总览
33
   tccqkView(params) {
33
   tccqkView(params) {
34
-    return axios.get('/dash/parking/lot/situation/view', {params})
34
+    return axios.post('/dash/parking/lot/situation/view', {params})
35
   },
35
   },
36
   // 停车收费取证主题-列表
36
   // 停车收费取证主题-列表
37
   tcsfztListByPage(params) {
37
   tcsfztListByPage(params) {
@@ -227,7 +227,7 @@ export default {
227
   },
227
   },
228
   // 车辆类型
228
   // 车辆类型
229
   cllx(params) {
229
   cllx(params) {
230
-    return axios.post('/dash/parking/operate/stat4', params)
230
+    return axios.post('/dash/business/conditions/stat2', params)
231
   },
231
   },
232
   // 经营情况_列表
232
   // 经营情况_列表
233
   jyqk(params) {
233
   jyqk(params) {

+ 7 - 17
src/pages/index/components/business_conditions.vue

@@ -31,16 +31,6 @@
31
       </el-form-item>
31
       </el-form-item>
32
     </el-form>
32
     </el-form>
33
     <br>
33
     <br>
34
-    <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
35
-      <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
36
-      </el-table-column>
37
-    </el-table>
38
-    <div class="table-pagination">
39
-      <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
40
-                     :current-page.sync="pageNum" :page-size.sync="pageSize">
41
-      </el-pagination>
42
-    </div>
43
-    <br>
44
     <div class="charts" style="display: flex">
34
     <div class="charts" style="display: flex">
45
       <div style="width: 50%;height: 300px;">
35
       <div style="width: 50%;height: 300px;">
46
         <h5 style="color: white">收费趋势</h5>
36
         <h5 style="color: white">收费趋势</h5>
@@ -179,21 +169,21 @@
179
           params.end = this.formInline.time[1]
169
           params.end = this.formInline.time[1]
180
         }
170
         }
181
         delete params.time
171
         delete params.time
182
-        let requestList = [api.tccqkView(), api.sfqs(params),api.cllx(params), api.jyqk({...params4, ...params})];
172
+        let requestList = [api.tccqkView(params), api.sfqs(params),api.cllx(params)];
183
         Promise.all(requestList).then(res => {
173
         Promise.all(requestList).then(res => {
184
-          that.viewDaviewDatata = res[0].data
174
+          that.viewData = res[0].data
185
           that.linedata = res[1].data || []
175
           that.linedata = res[1].data || []
186
-          console.log(res[2].data, '-----饼图----')
187
           that.modelData = res[2].data || []
176
           that.modelData = res[2].data || []
188
-          this.tableData = res[3].data.records || []
189
-          this.total = res[3].data.total || 0
190
         })
177
         })
191
       },
178
       },
192
       lineTooltipFormat(params) {
179
       lineTooltipFormat(params) {
193
         return `<div class="line-tooltip">
180
         return `<div class="line-tooltip">
194
         <div style="color: ${params[0].color}">${params[0].seriesName}: ${
181
         <div style="color: ${params[0].color}">${params[0].seriesName}: ${
195
-          params[0].data.lastAmount || "--"
196
-        }</div>
182
+          params[0].data.lastYearAmount || "--"
183
+        }元</div>
184
+         <div style="color: ${params[1].color}">${params[1].seriesName}: ${
185
+          params[1].data.thisYearAmount || "--"
186
+        }元</div>
197
       </div>`;
187
       </div>`;
198
       },
188
       },
199
       handlePageChange() {
189
       handlePageChange() {