Commit 0007422f authored by 耿迪迪's avatar 耿迪迪

安检量统计时间

parent c040eeff
...@@ -67,19 +67,20 @@ ...@@ -67,19 +67,20 @@
import {inspectNumStatisticByInspector} from "@/api/checktask/inspect"; import {inspectNumStatisticByInspector} from "@/api/checktask/inspect";
import { communityList } from "@/api/baseinfo/community"; import { communityList } from "@/api/baseinfo/community";
import { aLLAreaListInfo } from "@/api/baseinfo/area"; import { aLLAreaListInfo } from "@/api/baseinfo/area";
import moment from 'moment';
export default { export default {
name: "inspect-statistic-index", name: "inspect-statistic-index",
data(){ data(){
return{ return{
queryParams:{ queryParams:{
beginTime: null, beginTime: moment(moment().startOf('day').toDate()).format("YYYY-MM-DD HH:mm:ss"),
endTime: null, endTime: moment(moment().endOf('day').toDate()).format("YYYY-MM-DD HH:mm:ss"),
village: null, village: null,
street: null street: null
}, },
loading: true, loading: true,
inspectStatisticInfoList: [], inspectStatisticInfoList: [],
time: [], time: [moment(moment().startOf('day').toDate()).format("YYYY-MM-DD HH:mm:ss"),moment(moment().endOf('day').toDate()).format("YYYY-MM-DD HH:mm:ss")],
communityData: [], communityData: [],
streetData: [] streetData: []
} }
...@@ -98,10 +99,10 @@ ...@@ -98,10 +99,10 @@
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.queryParams.beginTime = null; this.queryParams.beginTime = moment(moment().startOf('day').toDate()).format("YYYY-MM-DD HH:mm:ss");
this.queryParams.endTime = null; this.queryParams.endTime = moment(moment().endOf('day').toDate()).format("YYYY-MM-DD HH:mm:ss");
this.getCommunityInfo(); this.getCommunityInfo();
this.time = []; this.time = [moment(moment().startOf('day').toDate()).format("YYYY-MM-DD HH:mm:ss"),moment(moment().endOf('day').toDate()).format("YYYY-MM-DD HH:mm:ss")];
this.handleQuery(); this.handleQuery();
}, },
getList(){ getList(){
...@@ -129,8 +130,8 @@ ...@@ -129,8 +130,8 @@
}) })
}, },
timeChange(val){ timeChange(val){
this.queryParams.beginTime = val[0]; this.queryParams.beginTime = val[0] + " 00:00:00";
this.queryParams.endTime = val[1]; this.queryParams.endTime = val[1] + " 23:59:59";
}, },
//获取小区信息 //获取小区信息
getCommunityInfo(){ getCommunityInfo(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment