Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
c90ecf23
Commit
c90ecf23
authored
Sep 02, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fc346aea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
outboundManage.vue
src/components/orderMan/outboundManage.vue
+1
-1
No files found.
src/components/orderMan/outboundManage.vue
View file @
c90ecf23
...
...
@@ -309,7 +309,7 @@
unique
(
arr
)
{
for
(
var
i
=
0
,
len
=
arr
.
length
;
i
<
len
;
i
++
)
{
for
(
var
j
=
i
+
1
,
len
=
arr
.
length
;
j
<
len
;
j
++
)
{
if
(
arr
[
i
].
NewGoodsId
===
arr
[
j
].
NewGoodsId
&&
arr
[
i
].
NewSpecificationSort
===
arr
[
j
].
NewSpecificationSort
)
{
if
(
arr
[
i
].
NewGoodsId
===
arr
[
j
].
NewGoodsId
&&
arr
[
i
].
NewSpecificationSort
===
arr
[
j
].
NewSpecificationSort
&&
arr
[
i
].
OrderGoodsId
===
arr
[
j
].
OrderGoodsId
)
{
arr
.
splice
(
j
,
1
);
j
--
;
// 每删除一个数j的值就减1
len
--
;
// j值减小时len也要相应减1(减少循环次数,节省性能)
...
...
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