隐患数据统计分析---行政区域统计和上报部门统计可查询指定月份的隐患数量

main
15036302109 4 months ago
parent 54d1e1e92a
commit 54cabc1253

@ -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'
})
}

@ -82,7 +82,7 @@
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="所处位置统计" name="tj2">
<el-tab-pane label="上报部门统计" name="tj2">
<el-table
:data="tableDat_1"
size="mini"
@ -90,7 +90,7 @@
align="center"
height="400px"
>
<el-table-column prop="name" label="各企业" align="center">
<el-table-column prop="name" label="各部门" align="center">
<!-- <template slot="date" slot-scope="scope">
{{scope}}
</template> -->
@ -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;
})

Loading…
Cancel
Save