Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chehuidong
saas-manage
Commits
7839c351
Commit
7839c351
authored
Oct 21, 2024
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sku 筛选
parent
3687e70f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
src/views/system/sku-sort.vue
+9
-1
No files found.
src/views/system/sku-sort.vue
View file @
7839c351
...
...
@@ -185,6 +185,9 @@
width
=
"800px"
:
close
-
on
-
click
-
modal
=
"false"
title
=
"选择属性"
>
<
div
class
=
"filter"
style
=
"margin-bottom: 10px"
>
<
el
-
input
placeholder
=
"请输入属性类名称"
clearable
v
-
model
=
"filterVal"
><
/el-input
>
<
/div
>
<
div
class
=
"product-prop"
>
<
div
class
=
"product-prop_item"
...
...
@@ -271,6 +274,7 @@ export default {
currentPage
:
1
,
total
:
0
}
,
filterVal
:
''
,
selectProps
:
[]
}
}
,
...
...
@@ -353,7 +357,7 @@ export default {
enname
:
item
.
enname
,
children
:
[]
}
const
current
=
properties
.
find
((
e
)
=>
e
.
code
===
item
.
cateCode
)
const
current
=
properties
.
find
((
e
)
=>
e
.
code
===
item
.
cateCode
&&
item
.
cnname
.
includes
(
this
.
filterVal
)
)
if
(
current
)
{
current
.
children
.
push
(
item
)
}
else
{
...
...
@@ -361,6 +365,10 @@ export default {
properties
.
push
(
prop
)
}
}
)
console
.
log
(
properties
)
properties
.
forEach
(
el
=>
{
el
.
children
=
el
.
children
.
filter
(
item
=>
item
.
cnname
.
includes
(
this
.
filterVal
))
}
)
return
properties
}
}
,
...
...
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