From 9ae47a2e2ffb0341adb5de11d5f13f26a64b6ace Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Tue, 23 Aug 2022 14:33:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=BD=91=E6=B8=A3=E5=9C=9F=E8=BD=A6?= =?UTF-8?q?=E6=89=8E=E7=82=B9=E4=BB=A5=E5=8F=8A=E5=BC=B9=E7=AA=97=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/road.js | 31 ++-- .../components/CauseAnalysis.vue | 82 +++++----- .../roadGovernance/components/RoadMain.vue | 149 ++++++++++++------ 3 files changed, 155 insertions(+), 107 deletions(-) diff --git a/src/api/road.js b/src/api/road.js index b5324a3..8a092e1 100644 --- a/src/api/road.js +++ b/src/api/road.js @@ -12,59 +12,66 @@ import request from '@/utils/request' // method: 'get' // }) // } -export function getRoadData (params) { +export function getRoadData(params) { return request({ url: '/api/project/listRoadData', method: 'get', params }) } -export function getRoadDataByTimeRegion (params) { +export function getRoadDataByTimeRegion(params) { return request({ url: '/api/project/listRoadDataByTimeRegion', method: 'get', params }) } -//查询经纬度范围工地 -export function listBuildingSiteByPoints (params) { +// 查询经纬度范围工地 +export function listBuildingSiteByPoints(params) { return request({ url: '/api/project/listBuildingSiteByPoints', method: 'get', params }) } -export function listSedimentTrailByPoints (params) { +export function listSedimentTrailByPoints(params) { return request({ url: '/api/project/listSedimentTrailByPoints', method: 'get', params }) } -export function listTrailSanitationByPoints (params) { +export function listTrailSanitationByPoints(params) { return request({ url: '/api/project/listTrailSanitationByPoints', method: 'get', params }) } -export function selectAllByGps (params) { +export function selectAllByGps(params) { return request({ url: '/api/project/selectAllByGps', method: 'get', params }) } -//查询所有工地 -export function selectBuildSite (params) { +// 查询所有工地 +export function selectBuildSite(params) { return request({ url: '/api/project/selectBuildSite', method: 'get', params }) } - -export function selectAllTrailSanitation (params) { +// 查询所有渣土车 +export function selectAllSedimentTrail(params) { + return request({ + url: '/api/project/selectAllSedimentTrail', + method: 'get', + params + }) +} +export function selectAllTrailSanitation(params) { return request({ url: '/api/project/selectAllTrailSanitation', method: 'get', @@ -72,7 +79,7 @@ export function selectAllTrailSanitation (params) { }) } -export function selectRoadData (params) { +export function selectRoadData(params) { return request({ url: '/api/project/selectRoadData', method: 'get', diff --git a/src/views/pages/roadGovernance/components/CauseAnalysis.vue b/src/views/pages/roadGovernance/components/CauseAnalysis.vue index 356076f..af13362 100644 --- a/src/views/pages/roadGovernance/components/CauseAnalysis.vue +++ b/src/views/pages/roadGovernance/components/CauseAnalysis.vue @@ -1,16 +1,21 @@