Commit 22af461d by 赵永成

Merge branch 'v2' of http://git.gdatac.com/hooloo/web/soss into v2

parents 959459a9 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",
......
...@@ -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() {
......
...@@ -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: {
......
...@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment