Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
develop-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cd5ae76d
authored
Jan 04, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
字段修改
1 parent
20d7f432
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
src/views/device/device.vue
src/views/device/device.vue
View file @
cd5ae76
...
...
@@ -40,7 +40,7 @@
</el-form-item>
<el-form-item
label=
"发货时间:"
>
<el-date-picker
v-model=
"
activ
ateTime"
v-model=
"
cre
ateTime"
:size=
"$store.state.d2admin.size.value"
type=
"daterange"
range-separator=
"至"
...
...
@@ -81,7 +81,7 @@ export default {
searchForm
:
{
customerName
:
''
},
activ
ateTime
:
[],
cre
ateTime
:
[],
getListApi
:
deviceList
,
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
...
...
@@ -101,9 +101,9 @@ export default {
prop
:
'customerName'
},
{
label
:
'发货时间'
,
prop
:
'
activat
Time'
,
prop
:
'
create
Time'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
activat
Time
.
split
(
' '
)[
0
]
return
cellValue
.
create
Time
.
split
(
' '
)[
0
]
}
}]
},
...
...
@@ -129,15 +129,15 @@ export default {
methods
:
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
if
(
this
.
activateTime
&&
this
.
activ
ateTime
.
length
)
{
this
.
searchForm
.
activatStartTime
=
new
Date
(
this
.
activ
ateTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
this
.
searchForm
.
activatEndTime
=
new
Date
(
this
.
activ
ateTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
if
(
this
.
createTime
&&
this
.
cre
ateTime
.
length
)
{
this
.
searchForm
.
createStartTime
=
new
Date
(
this
.
cre
ateTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
this
.
searchForm
.
createEndTime
=
new
Date
(
this
.
cre
ateTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
}
resolve
()
})
},
handleRest
()
{
this
.
activ
ateTime
=
[]
this
.
cre
ateTime
=
[]
this
.
searchForm
=
{
customerName
:
''
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment