diff --git a/ruoyi-ui/src/api/ehs/ehsExamples.js b/ruoyi-ui/src/api/ehs/ehsExamples.js index 88203c4..2f535f6 100644 --- a/ruoyi-ui/src/api/ehs/ehsExamples.js +++ b/ruoyi-ui/src/api/ehs/ehsExamples.js @@ -1,16 +1,16 @@ import request from '@/utils/request' // 查询行政区域统计 -export function getAdministeration() { +export function getAdministeration(targetTime) { return request({ - url: 'ehs/indexStatistics/getHiddenDangerSituationList', + url: 'ehs/indexStatistics/getHiddenDangerSituationList?targetTime=' + targetTime, method: 'get', }) } // 查询所处位置统计 -export function getPlace() { +export function getPlace(targetTime) { return request({ - url: '/ehs/indexStatistics/getHiddenDangerSituationByEnterpriseNameList', + url: '/ehs/indexStatistics/getHiddenDangerSituationByEnterpriseNameList?targetTime=' + targetTime, method: 'get' }) } diff --git a/ruoyi-ui/src/views/ehs/ehsExamples/index.vue b/ruoyi-ui/src/views/ehs/ehsExamples/index.vue index c4bf7d3..3a3cd56 100644 --- a/ruoyi-ui/src/views/ehs/ehsExamples/index.vue +++ b/ruoyi-ui/src/views/ehs/ehsExamples/index.vue @@ -82,7 +82,7 @@ - + - + @@ -238,8 +238,7 @@ export default { }, getAllData(targetTime) { - // TODO 行政 - getAdministeration() + getAdministeration(targetTime) .then((response) => { if (response.code == 200) this.tableData = response.data; }) @@ -247,8 +246,7 @@ export default { console.log(err); }); - // TODO 根据位置 - getPlace() + getPlace(targetTime) .then((response) => { if (response.code == 200) this.tableDat_1 = response.data; })