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

main
15036302109 4 months ago
parent 54d1e1e92a
commit 54cabc1253

@ -1,16 +1,16 @@
import request from '@/utils/request' import request from '@/utils/request'
// 查询行政区域统计 // 查询行政区域统计
export function getAdministeration() { export function getAdministeration(targetTime) {
return request({ return request({
url: 'ehs/indexStatistics/getHiddenDangerSituationList', url: 'ehs/indexStatistics/getHiddenDangerSituationList?targetTime=' + targetTime,
method: 'get', method: 'get',
}) })
} }
// 查询所处位置统计 // 查询所处位置统计
export function getPlace() { export function getPlace(targetTime) {
return request({ return request({
url: '/ehs/indexStatistics/getHiddenDangerSituationByEnterpriseNameList', url: '/ehs/indexStatistics/getHiddenDangerSituationByEnterpriseNameList?targetTime=' + targetTime,
method: 'get' method: 'get'
}) })
} }

@ -82,7 +82,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="所处位置统计" name="tj2"> <el-tab-pane label="上报部门统计" name="tj2">
<el-table <el-table
:data="tableDat_1" :data="tableDat_1"
size="mini" size="mini"
@ -90,7 +90,7 @@
align="center" align="center"
height="400px" height="400px"
> >
<el-table-column prop="name" label="各企业" align="center"> <el-table-column prop="name" label="各部门" align="center">
<!-- <template slot="date" slot-scope="scope"> <!-- <template slot="date" slot-scope="scope">
{{scope}} {{scope}}
</template> --> </template> -->
@ -238,8 +238,7 @@ export default {
}, },
getAllData(targetTime) { getAllData(targetTime) {
// TODO getAdministeration(targetTime)
getAdministeration()
.then((response) => { .then((response) => {
if (response.code == 200) this.tableData = response.data; if (response.code == 200) this.tableData = response.data;
}) })
@ -247,8 +246,7 @@ export default {
console.log(err); console.log(err);
}); });
// TODO getPlace(targetTime)
getPlace()
.then((response) => { .then((response) => {
if (response.code == 200) this.tableDat_1 = response.data; if (response.code == 200) this.tableDat_1 = response.data;
}) })

Loading…
Cancel
Save