Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
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
hooloo
web
soss
Commits
029a3a72
Commit
029a3a72
authored
Sep 21, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品规格
parent
f3f13a7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
src/views/goods/goods/components/SpecSetting.vue
+5
-1
No files found.
src/views/goods/goods/components/SpecSetting.vue
View file @
029a3a72
...
@@ -170,7 +170,7 @@ export default {
...
@@ -170,7 +170,7 @@ export default {
//这个判断是先用一份数据
//这个判断是先用一份数据
// if(this.steps.length==0){
// if(this.steps.length==0){
await
this
.
getStepListByMidAndSkuId
(
queryParams
).
then
((
res
)
=>
{
await
this
.
getStepListByMidAndSkuId
(
queryParams
).
then
((
res
)
=>
{
console
.
log
(
"res"
,
res
);
console
.
log
(
"
getStepListByMidAndSkuId
res"
,
res
);
let
step_opts
=
[];
let
step_opts
=
[];
for
(
let
obj
in
res
.
data
){
for
(
let
obj
in
res
.
data
){
//console.log(obj,spec_model.step_list[obj]);
//console.log(obj,spec_model.step_list[obj]);
...
@@ -192,6 +192,7 @@ export default {
...
@@ -192,6 +192,7 @@ export default {
step_opts
.
push
(
step_obj
);
step_opts
.
push
(
step_obj
);
}
}
console
.
log
(
"step_opts"
,
step_opts
);
console
.
log
(
"step_opts"
,
step_opts
);
//注意这里会覆盖上一个机器的步骤
this
.
steps
=
step_opts
;
this
.
steps
=
step_opts
;
});
});
...
@@ -287,6 +288,9 @@ export default {
...
@@ -287,6 +288,9 @@ export default {
//返回的数据是商品的所有sku的配置,需要循环对应后,把数据初始化;
//返回的数据是商品的所有sku的配置,需要循环对应后,把数据初始化;
for
(
let
i
=
0
;
i
<
pres
.
data
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
pres
.
data
.
length
;
i
++
){
let
item
=
pres
.
data
[
i
];
let
item
=
pres
.
data
[
i
];
if
(
item
.
sku_id
!=
this
.
psku
.
sku_id
){
continue
;
}
let
tb_data
=
this
.
findSkuById
(
item
.
sku_id
,
item
.
model_id
);
let
tb_data
=
this
.
findSkuById
(
item
.
sku_id
,
item
.
model_id
);
console
.
log
(
"initStepData tb_data"
,
tb_data
);
console
.
log
(
"initStepData tb_data"
,
tb_data
);
let
step_data
=
item
.
data
;
let
step_data
=
item
.
data
;
...
...
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