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
3687101c
Commit
3687101c
authored
Jun 22, 2021
by
mengwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature:商品列表分类查询
parent
0be656bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
index.vue
src/pages/Goods/List/index.vue
+16
-0
No files found.
src/pages/Goods/List/index.vue
View file @
3687101c
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<!-- 所属分类 -->
<!-- 所属分类 -->
<el-form-item
label=
"所属分类"
>
<el-form-item
label=
"所属分类"
>
<el-cascader
<el-cascader
@
change=
"handleChange"
:options=
"labelOptions"
:options=
"labelOptions"
:props=
"cascaderProps"
:props=
"cascaderProps"
collapse-tags
collapse-tags
...
@@ -201,6 +202,11 @@ export default {
...
@@ -201,6 +202,11 @@ export default {
label
:
"name"
,
label
:
"name"
,
children
:
"sub_list"
children
:
"sub_list"
},
},
// 查询参数
searchProps
:
{
category_1_id
:
""
,
// 一级分类id
category_2_id
:
""
// 二级分类id
},
// 级联选择器
// 级联选择器
labelOptions
:
[
labelOptions
:
[
{
{
...
@@ -293,6 +299,16 @@ export default {
...
@@ -293,6 +299,16 @@ export default {
},
},
methods
:
{
methods
:
{
handleChange
(
val
)
{
const
every1Val
=
val
.
map
(
item
=>
{
return
item
[
0
];
});
const
every2Val
=
val
.
map
(
item
=>
{
return
item
[
1
];
});
this
.
searchProps
.
category_1_id
=
every1Val
.
join
();
this
.
searchProps
.
category_2_id
=
every2Val
.
join
();
},
// 获取级联选择
// 获取级联选择
async
getOptionList
()
{
async
getOptionList
()
{
try
{
try
{
...
...
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