| | |
| | | noOptionsText="没有可选项" |
| | | noResultsText="没有匹配的结果" /> |
| | | <!-- <el-select v-model="form.groupId" @change="changeSel" clearable filterable placeholder="请选择"> |
| | | <template v-for="item in companyList"> |
| | | <el-option v-if="item.countNum && item.countNum>0" :key="item.id" :label="item.name" :value="item.id"> |
| | | </el-option> |
| | | </template> |
| | | <template v-for="item in companyList"> |
| | | <el-option v-if="item.countNum && item.countNum>0" :key="item.id" :label="item.name" :value="item.id"> |
| | | </el-option> |
| | | </template> |
| | | </el-select>--> |
| | | </el-form-item> |
| | | <el-form-item label="选择车主:" prop="memberId"> |
| | |
| | | // } |
| | | // }) |
| | | }, |
| | | cateChange(node){ |
| | | cateChange (node) { |
| | | this.selectCate = node |
| | | }, |
| | | // 规范化选项数据的方法 |
| | |
| | | id: node.id, |
| | | label: node.name, |
| | | parentId: node.parentId, |
| | | children: node.childCategoryList, |
| | | children: node.childCategoryList |
| | | } |
| | | return node1 |
| | | }, |
| | |
| | | confirm () { |
| | | console.log('form', this.form.cateId) |
| | | const { form } = this |
| | | if(this.selectCate && this.selectCate.childCategoryList && this.selectCate.childCategoryList.length) { |
| | | if (this.selectCate && this.selectCate.childCategoryList && this.selectCate.childCategoryList.length) { |
| | | return Message.error('请选择二级分类') |
| | | } |
| | | this.$refs.form.validate((valid) => { |
| | |
| | | }, |
| | | getCate () { |
| | | fetchList({ |
| | | model: {}, |
| | | model: { type: 1 }, |
| | | capacity: 1000, |
| | | page: 1 |
| | | }).then(res => { |
| | | if (res && res.records && res.records.length > 0) { |
| | | res.records[0].fsStatus = 1 |
| | | this.cateList = res.records || [] |
| | | |
| | | } |
| | | }) |
| | | }, |