Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
web
soss
Commits
f557328b
Commit
f557328b
authored
Aug 17, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分类多选
parent
3fcea0c5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
7 deletions
+15
-7
src/components/SelectCategory/index.vue
+3
-1
src/components/SelectGoods/index.vue
+4
-2
src/views/goods/goods/components/Form.vue
+4
-2
src/views/goods/goods/index.vue
+4
-2
No files found.
src/components/SelectCategory/index.vue
View file @
f557328b
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
@
change=
"change"
@
change=
"change"
placeholder=
"请选择分类"
placeholder=
"请选择分类"
clearable
clearable
:multiple=
"multiple"
:collapse-tags=
"collapseTags"
>
>
<el-option
<el-option
v-for=
"item in options"
v-for=
"item in options"
...
@@ -21,7 +23,7 @@ import { getList } from "@/api/system/category";
...
@@ -21,7 +23,7 @@ import { getList } from "@/api/system/category";
export
default
{
export
default
{
name
:
"Class"
,
name
:
"Class"
,
props
:
[
"value"
],
props
:
[
"value"
,
"multiple"
,
"collapseTags"
],
model
:
{
model
:
{
prop
:
"value"
,
prop
:
"value"
,
event
:
"input"
,
event
:
"input"
,
...
...
src/components/SelectGoods/index.vue
View file @
f557328b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"分类"
prop=
"category"
>
<el-form-item
label=
"分类"
prop=
"category"
>
<SelectCategory
v-model=
"queryParams.category"
placeholder=
"分类"
/>
<SelectCategory
v-model=
"queryParams.category"
placeholder=
"分类"
:multiple=
"multiple"
:collapseTags=
"collapseTags"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
...
@@ -69,7 +69,9 @@ export default {
...
@@ -69,7 +69,9 @@ export default {
state
:
3
,
state
:
3
,
shopId
:
null
shopId
:
null
},
},
shopId
:
null
shopId
:
null
,
multiple
:
false
,
collapseTags
:
false
};
};
},
},
created
()
{
created
()
{
...
...
src/views/goods/goods/components/Form.vue
View file @
f557328b
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"分类"
prop=
"category"
>
<el-form-item
label=
"分类"
prop=
"category"
>
<SelectCategory
v-model=
"form.category"
/>
<SelectCategory
v-model=
"form.category"
:multiple=
"multiple"
:collapseTags=
"collapseTags"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -223,7 +223,9 @@ export default {
...
@@ -223,7 +223,9 @@ export default {
tagValues
:
""
,
tagValues
:
""
,
goodsTagList
:
[],
goodsTagList
:
[],
inputVisible
:
false
,
inputVisible
:
false
,
inputValue
:
''
inputValue
:
''
,
multiple
:
true
,
collapseTags
:
true
};
};
},
},
methods
:
{
methods
:
{
...
...
src/views/goods/goods/index.vue
View file @
f557328b
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商品分类"
prop=
"category"
>
<el-form-item
label=
"商品分类"
prop=
"category"
>
<SelectCategory
v-model=
"queryParams.category"
/>
<SelectCategory
v-model=
"queryParams.category"
:multiple=
"multiple"
:collapseTags=
"collapseTags"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
v-hasPermi=
"['system:goods:query']"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
v-hasPermi=
"['system:goods:query']"
>
搜索
</el-button>
...
@@ -144,7 +144,9 @@ export default {
...
@@ -144,7 +144,9 @@ export default {
value
:
'5'
,
value
:
'5'
,
label
:
'已删除'
label
:
'已删除'
}],
}],
categoryList
:[]
categoryList
:[],
multiple
:
false
,
collapseTags
:
false
};
};
},
},
created
()
{
created
()
{
...
...
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