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
3fd5ee2d
Commit
3fd5ee2d
authored
Aug 07, 2021
by
your yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:商品库添加
parent
d4ce8781
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
addProduc.vue
src/pages/Activity/releaseProduc/components/addProduc.vue
+12
-11
No files found.
src/pages/Activity/releaseProduc/components/addProduc.vue
View file @
3fd5ee2d
...
...
@@ -491,17 +491,18 @@ export default {
if
(
this
.
comTableData
.
length
==
0
)
{
this
.
comTableData
.
push
(...
this
.
multipleSelection
);
}
else
{
for
(
var
i
in
this
.
comTableData
)
{
for
(
var
j
in
this
.
multipleSelection
)
if
(
this
.
comTableData
[
i
].
goods_sku_id
!=
this
.
multipleSelection
[
j
].
goods_sku_id
)
{
continue
;
}
else
{
this
.
comTableData
.
push
(
this
.
multipleSelection
[
j
]);
}
}
this
.
multipleSelection
.
forEach
((
item
)
=>
{
let
num
=
0
;
this
.
comTableData
.
some
((
val
)
=>
{
num
++
;
if
(
val
.
goods_sku_id
===
item
.
goods_sku_id
)
{
val
.
goods_sku_id
=
item
.
goods_sku_id
;
return
true
;
}
else
if
(
num
===
this
.
comTableData
.
length
)
{
this
.
comTableData
.
push
(
Object
.
assign
({},
item
));
}
});
});
}
},
...
...
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