Commit 69c4850a authored by jiaorz's avatar jiaorz

123

parent 73ec2fb5
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
<span>{{scope.row.beforeDepartureNum}}</span> <span>{{scope.row.beforeDepartureNum}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="150" align="center" label="正常交车"> <el-table-column width="150" align="center" label="正常交车">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.actualDepartureNum}}</span> <span>{{scope.row.actualDepartureNum}}</span>
...@@ -112,6 +111,12 @@ ...@@ -112,6 +111,12 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="150" align="center" label="过期未出车">
<template scope="scope">
<span>{{scope.row.noUseNum}}</span>
</template>
</el-table-column>
<el-table-column width="200" align="center" label="日期"> <el-table-column width="200" align="center" label="日期">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.countDate}}</span> <span>{{scope.row.countDate}}</span>
...@@ -145,7 +150,7 @@ ...@@ -145,7 +150,7 @@
{'id':3, "name":"内部用车"} {'id':3, "name":"内部用车"}
], ],
list : [], list : [],
header : ['序号','类型','应交车','提前交车','正常交车','延期交车','应还车','提前还车','正常还车','延期还车','日期'], header : ['序号','类型','应交车','提前交车','正常交车','延期交车','应还车','提前还车','正常还车','延期还车','过期未出车','日期'],
name: 'export' name: 'export'
} }
}, },
...@@ -157,8 +162,12 @@ ...@@ -157,8 +162,12 @@
}, },
methods: { methods: {
handlerSearch() { handlerSearch() {
this.listQuery.startTime = getYMD_date(new Date(this.listQuery.startTime)); if (this.listQuery.startTime) {
this.listQuery.endTime = getYMD_date(new Date(this.listQuery.endTime)); this.listQuery.startTime = getYMD_date(new Date(this.listQuery.startTime));
}
if(this.listQuery.endTime) {
this.listQuery.endTime = getYMD_date(new Date(this.listQuery.endTime));
}
get(this.listQuery).then(response => { get(this.listQuery).then(response => {
if (response.status === 200) { if (response.status === 200) {
this.list = response.data this.list = response.data
...@@ -234,6 +243,7 @@ ...@@ -234,6 +243,7 @@
window.location.href="https://"+domain+"/vehicle/vehicleCount/app/unauth/download?path="+fileName; window.location.href="https://"+domain+"/vehicle/vehicleCount/app/unauth/download?path="+fileName;
}) })
}, },
} }
} }
</script> </script>
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