Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
34f41387
authored
2023-02-10 10:57:23 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:登薄日志
1 parent
2728c985
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
src/views/sthj/dbrzcx/index.vue
src/views/sthj/dbrzcx/index.vue
View file @
34f4138
...
...
@@ -25,7 +25,8 @@
<el-col
:span=
"6"
>
<el-form-item
label=
"结束日期"
prop=
"endTime"
>
<el-date-picker
type=
"date"
class=
"width100"
placeholder=
"结束日期"
:picker-options=
"pickerOptionsEnd"
clearable
v-model=
"form.endTime"
value-format=
"yyyy/MM/dd HH:mm:ss"
@
change=
"endTimeChange"
></el-date-picker>
clearable
v-model=
"form.endTime"
value-format=
"yyyy/MM/dd HH:mm:ss"
@
change=
"endTimeChange"
></el-date-picker>
</el-form-item>
</el-col>
<!-- 操作按钮 -->
...
...
@@ -55,7 +56,7 @@ import tableMixin from "@/mixins/tableMixin.js";
import
{
getRecordLogPage
}
from
"@/api/recordLog.js"
;
import
{
mapGetters
}
from
'vuex'
//引入日期处理方法
import
{
timeFormat
}
from
"@/utils/operation"
;
import
{
timeFormat
}
from
"@/utils/operation"
;
export
default
{
name
:
"dbrzcx"
,
mixins
:
[
tableMixin
],
...
...
@@ -68,7 +69,7 @@ export default {
pickerOptionsStart
:
{
disabledDate
:
(
time
)
=>
{
if
(
this
.
form
.
endTime
)
{
return
time
.
getTime
()
>=
new
Date
(
this
.
form
.
endTime
).
getTime
()
return
time
.
getTime
()
>=
new
Date
(
this
.
form
.
endTime
).
getTime
()
}
}
},
...
...
@@ -76,7 +77,7 @@ export default {
pickerOptionsEnd
:
{
disabledDate
:
(
time
)
=>
{
if
(
this
.
form
.
startTime
)
{
return
time
.
getTime
()
<
new
Date
(
this
.
form
.
startTime
).
getTime
()
return
time
.
getTime
()
<
new
Date
(
this
.
form
.
startTime
).
getTime
()
}
}
},
...
...
@@ -86,6 +87,12 @@ export default {
startTime
:
''
,
endTime
:
''
,
},
// 分页
pageData
:
{
total
:
0
,
pageSize
:
10
,
current
:
1
},
// table数据
tableData
:
{
// 表头
...
...
@@ -109,8 +116,8 @@ export default {
},
methods
:
{
//截止日期变化
endTimeChange
(
val
)
{
this
.
form
.
endTime
=
timeFormat
(
new
Date
(
val
),
true
)
endTimeChange
(
val
)
{
this
.
form
.
endTime
=
timeFormat
(
new
Date
(
val
),
true
)
},
queryClick
()
{
getRecordLogPage
({
...
this
.
form
,
...
this
.
pageData
}).
then
(
res
=>
{
...
...
Please
register
or
sign in
to post a comment