| | |
| | | @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="catePName" title="分类名称"> |
| | | <el-cascader v-model="searchForm.cateIds" @change="changeSel" clearable :options="cateList" :props="{ |
| | | <el-cascader v-model="searchForm.cateIds" @change="changeSel" placeholder="请选择分类" clearable :options="cateList" :props="{ |
| | | label: 'name', |
| | | value: 'id', |
| | | children: 'childCategoryList', |
| | |
| | | this.getCate() |
| | | }, |
| | | methods: { |
| | | handleSelectionChange(e) { |
| | | this.searchForm.ids = e.map(i => i.id).join(',') |
| | | }, |
| | | // handleSelectionChange(e) { |
| | | // this.searchForm.ids = e.map(i => i.id).join(',') |
| | | // }, |
| | | changeSel(e) { |
| | | console.log(e) |
| | | if (e && e.length == 1) { |