Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
43e47646
Commit
43e47646
authored
Aug 26, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:dateformat
parent
14324871
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
index.vue
src/pages/Goods/List/index.vue
+7
-3
No files found.
src/pages/Goods/List/index.vue
View file @
43e47646
...
@@ -220,7 +220,6 @@
...
@@ -220,7 +220,6 @@
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
format=
"YYYY-MM-DD HH:mm:ss"
format=
"YYYY-MM-DD HH:mm:ss"
value-format=
"YYYY-MM-DD HH:mm:ss"
value-format=
"YYYY-MM-DD HH:mm:ss"
@
change=
"pickerStartTime"
:disabled=
"checkedAddTime.online_type!=2"
:disabled=
"checkedAddTime.online_type!=2"
>
>
</el-date-picker>
</el-date-picker>
...
@@ -440,9 +439,14 @@ export default {
...
@@ -440,9 +439,14 @@ export default {
this
.
showGoodsAddTime
=
true
;
this
.
showGoodsAddTime
=
true
;
this
.
checkedAddTime
.
goods_spu_id
=
id
;
this
.
checkedAddTime
.
goods_spu_id
=
id
;
},
},
changeDate
(
dateA
)
{
let
time
=
new
Date
(
dateA
).
toJSON
();
let
date
=
new
Date
(
+
new
Date
(
time
)
+
8
*
3600
*
1000
).
toISOString
().
replace
(
/T/g
,
' '
).
replace
(
/
\.[\d]{3}
Z/
,
''
);
return
date
;
},
async
handleConfirmRefund
()
{
async
handleConfirmRefund
()
{
this
.
checkedAddTime
.
online_start_time
=
this
.
addTimeRange
[
0
]
;
this
.
checkedAddTime
.
online_start_time
=
this
.
changeDate
(
this
.
addTimeRange
[
0
])
;
this
.
checkedAddTime
.
online_end_time
=
this
.
addTimeRange
[
1
]
;
this
.
checkedAddTime
.
online_end_time
=
this
.
changeDate
(
this
.
addTimeRange
[
1
])
;
let
res
=
await
putOnlineSite
(
this
.
checkedAddTime
);
let
res
=
await
putOnlineSite
(
this
.
checkedAddTime
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
this
.
showGoodsAddTime
=
false
;
this
.
showGoodsAddTime
=
false
;
...
...
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