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
40d08b77
Commit
40d08b77
authored
Aug 30, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 回显上架时间
parent
f1815e1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
index.vue
src/pages/Goods/List/index.vue
+14
-7
No files found.
src/pages/Goods/List/index.vue
View file @
40d08b77
...
...
@@ -148,7 +148,11 @@
label=
"上架时间"
prop=
"online_start_time"
align=
"center"
></el-table-column>
>
<
template
#
default=
"scope"
>
{{
scope
.
row
.
online_start_time
}}
-
{{
scope
.
row
.
online_end_time
}}
</
template
>
</el-table-column>
<!-- 操作快捷键 -->
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"200"
>
<
template
#
default=
"scope"
>
...
...
@@ -199,7 +203,7 @@
>
<el-button
type=
"text"
@
click=
"handleGoodOnline(scope.row
.goods_spu_id
)"
@
click=
"handleGoodOnline(scope.row)"
>
上架配置
</el-button
>
</template>
...
...
@@ -439,9 +443,10 @@ export default {
console
.
log
(
spuId
);
this
.
$router
.
push
({
name
:
"GoodsDetail"
,
params
:
{
operation
,
spuId
}
});
},
handleGoodOnline
(
id
)
{
handleGoodOnline
(
item
)
{
this
.
addTimeRange
=
[
item
.
online_start_time
,
item
.
online_end_time
];
this
.
showGoodsAddTime
=
true
;
this
.
checkedAddTime
.
goods_spu_id
=
id
;
this
.
checkedAddTime
.
goods_spu_id
=
i
tem
.
goods_spu_i
d
;
},
changeDate
(
dateA
)
{
let
time
=
new
Date
(
dateA
).
toJSON
();
...
...
@@ -449,8 +454,10 @@ export default {
return
date
;
},
async
handleConfirmRefund
()
{
if
(
this
.
checkedAddTime
.
online_type
==
2
)
{
this
.
checkedAddTime
.
online_start_time
=
this
.
changeDate
(
this
.
addTimeRange
[
0
]);
this
.
checkedAddTime
.
online_end_time
=
this
.
changeDate
(
this
.
addTimeRange
[
1
]);
}
let
res
=
await
putOnlineSite
(
this
.
checkedAddTime
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
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