Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform-ui
Commits
fcbe9295
Commit
fcbe9295
authored
May 25, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出行记录
parent
42376166
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
9 deletions
+55
-9
index.vue
src/views/vehicle/vehicleDepartureLog/index.vue
+55
-9
No files found.
src/views/vehicle/vehicleDepartureLog/index.vue
View file @
fcbe9295
<
template
>
<div
class=
"app-container calendar-list-container"
>
<div
class=
"filter-container"
>
<el-input
@
keyup
.
enter
.
native=
"handleFilter"
style=
"width: 200px;"
class=
"filter-item"
placeholder=
"车牌号"
v-model=
"listQuery.numberPlate"
></el-input>
<el-button
class=
"filter-item"
type=
"primary"
v-waves
icon=
"search"
@
click=
"handleFilter"
>
搜索
</el-button>
<el-form>
<el-row>
<el-col
:span=
"4"
>
<el-form-item
label=
"日期"
>
<el-date-picker
v-model=
"listQuery.time"
type=
"date"
:editable=
"false"
format=
"yyyy-MM-dd"
prop =
"time"
placeholder=
"请选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"车牌号"
>
<el-input
@
keyup
.
enter
.
native=
"handleFilter"
style=
"width: 200px;"
class=
"filter-item"
placeholder=
"车牌号"
v-model=
"listQuery.numberPlate"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item>
<el-button
class=
"filter-item"
type=
"primary"
v-waves
icon=
"search"
@
click=
"handleFilter"
>
搜索
</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div
v-show=
"statisticVisiable"
>
<el-row
style=
"text-align: center;margin-top: 10px;margin-bottom: 10px"
>
...
...
@@ -124,7 +149,11 @@
page
,
statistic
}
from
'../../../api/vehicle/departureLog'
;
import
{
toEast8Date
,
deepCopyDate
,
newEast8Date
}
from
'utils/dateUtils'
;
export
default
{
name
:
'vehicleDepartureLog'
,
data
()
{
...
...
@@ -161,6 +190,7 @@
listQuery
:
{
page
:
1
,
limit
:
20
,
time
:
""
,
numberPlate
:
undefined
},
dialogStatus
:
''
,
...
...
@@ -193,18 +223,34 @@
methods
:
{
handleFilter
()
{
this
.
getList
();
if
(
this
.
listQuery
.
numberPlate
)
{
statistic
({
numberPlate
:
this
.
listQuery
.
numberPlate
}).
then
(
response
=>
{
this
.
statisticData
=
response
.
data
;
});
this
.
statisticVisiable
=
true
;
// if (this.listQuery.numberPlate) {
// statistic({numberPlate: this.listQuery.numberPlate}).then(response => {
// this.statisticData = response.data;
// });
// this.statisticVisiable = true;
// }
},
dateToString
:
function
(
date
){
var
year
=
date
.
getFullYear
();
var
month
=
(
date
.
getMonth
()
+
1
).
toString
();
var
day
=
(
date
.
getDate
()).
toString
();
if
(
month
.
length
==
1
)
{
month
=
"0"
+
month
;
}
if
(
day
.
length
==
1
)
{
day
=
"0"
+
day
;
}
var
dateTime
=
year
+
"-"
+
month
+
"-"
+
day
;
return
dateTime
;
},
getList
()
{
this
.
listLoading
=
true
;
if
(
!
this
.
listQuery
.
numberPlate
)
{
this
.
statisticVisiable
=
false
;
}
if
(
this
.
listQuery
.
time
){
this
.
listQuery
.
time
=
this
.
dateToString
(
this
.
listQuery
.
time
);
}
page
(
this
.
listQuery
)
.
then
(
response
=>
{
this
.
list
=
response
.
data
.
list
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment