Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
69956ea7
Commit
69956ea7
authored
Jul 25, 2020
by
jiangjiaxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug result img
parent
e9a63dfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
3 deletions
+32
-3
Result.vue
src/views/Result.vue
+32
-3
No files found.
src/views/Result.vue
View file @
69956ea7
...
...
@@ -988,9 +988,9 @@ export default {
})
.
filter
((
item
)
=>
item
!==
undefined
);
imgsNew
.
forEach
((
e
,
index
)
=>
{
e
.
number
=
index
+
1
;
});
//
imgsNew.forEach((e, index) => {
//
e.number = index + 1;
//
});
that
.
groupImgs
=
imgsNew
;
// console.log(
...
...
@@ -1167,6 +1167,35 @@ export default {
},
async
changeImgs
(
index
)
{
this
.
imgs
=
this
.
allImgs
[
this
.
currentIndex
];
this
.
$_
.
forEach
(
this
.
imgs
,
(
o
)
=>
{
o
.
name
=
o
.
content
.
split
(
"|"
).
length
>
0
?
o
.
content
.
split
(
"|"
)[
0
]
:
""
;
o
.
type
=
o
.
content
.
split
(
"|"
).
length
>
1
?
o
.
content
.
split
(
"|"
)[
1
]
:
""
;
});
// console.log(`lllllllllllllllllold${JSON.stringify(this.imgs)}`);
const
imgsNew
=
this
.
imgs
.
map
((
item
,
index
,
arr
)
=>
{
/* const i = this.$_.findIndex(users, function(o) { return o.user == 'barney'; }); */
const
i
=
arr
.
find
(
(
_item
)
=>
item
.
type
===
_item
.
type
&&
item
.
url
===
_item
.
url
);
if
(
i
!==
item
)
{
if
(
item
.
name
)
{
i
.
content
=
`
${
item
.
name
}
${
i
.
content
}
`
;
}
i
.
vector
.
push
(
item
.
vector
);
return
undefined
;
}
i
.
vector
=
[
i
.
vector
];
return
i
;
})
.
filter
((
item
)
=>
item
!==
undefined
);
// imgsNew.forEach((e, index) => {
// e.number = index + 1;
// });
this
.
groupImgs
=
imgsNew
;
},
},
};
...
...
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