Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qsh-wc
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
honghuiliu
qsh-wc
Commits
4c377d6a
Commit
4c377d6a
authored
Sep 26, 2022
by
mahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
97581418
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
qshMonitorData.vue
web/src/view/qshMonitorData/qshMonitorData.vue
+20
-3
No files found.
web/src/view/qshMonitorData/qshMonitorData.vue
View file @
4c377d6a
...
...
@@ -16,7 +16,7 @@
</el-form-item>
<el-form-item
label=
"时间筛选"
>
<el-date-picker
v-model=
"
searchInfo.
time"
v-model=
"time"
type=
"datetimerange"
format=
"YYYY-MM-DD HH:mm"
value-format=
"YYYY-MM-DD HH:mm"
...
...
@@ -25,6 +25,7 @@
end-placeholder=
"结束时间"
:teleported=
"false"
:editable=
"true"
@
change=
"(val)=>changeTime(val)"
/>
</el-form-item>
<el-form-item>
...
...
@@ -145,22 +146,38 @@
const
page
=
ref
(
1
)
const
total
=
ref
(
0
)
const
pageSize
=
ref
(
10
)
const
time
=
ref
([
''
,
''
])
const
tableData
=
ref
([])
const
toiletList
=
ref
([])
const
typeList
=
ref
([])
const
searchInfo
=
ref
({
toiletId
:
''
,
typeName
:
''
,
time
:[
''
,
''
]
start_time
:
''
,
end_time
:
''
,
})
// 重置
const
changeTime
=
(
val
)
=>
{
if
(
val
){
searchInfo
.
value
.
start_time
=
val
[
0
];
searchInfo
.
value
.
end_time
=
val
[
1
];
}
else
{
searchInfo
.
value
.
start_time
=
''
;
searchInfo
.
value
.
end_time
=
''
;
time
.
value
=
[
''
,
''
]
}
}
// 重置
const
onReset
=
()
=>
{
searchInfo
.
value
=
{
toiletId
:
''
,
typeName
:
''
,
time
:[
''
,
''
]
start_time
:
''
,
end_time
:
''
,
}
time
.
value
=
[
''
,
''
];
}
// 搜索
...
...
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