| | |
| | | v-for="item in categoryList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | :value="`${item.platCateId},${item.id}`"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import selectProductItem from '@/components/business/selectProductItem' |
| | | import { baseCategoryList } from '@/api/business/category.js' |
| | | import { list } from '@/api/business/category.js' |
| | | import { createPlat } from '@/api/business/goods' |
| | | |
| | | export default { |
| | |
| | | if (this.form.type == 0) { |
| | | this.isWorking = true |
| | | createPlat({ |
| | | categoryId: this.form.categoryId, |
| | | categoryId: this.form.categoryId.split(',')[1], |
| | | rate: this.form.rate, |
| | | type: this.form.type |
| | | }).then(res => { |
| | |
| | | open (title, target) { |
| | | this.title = title |
| | | this.visible = true |
| | | this.form.categoryId = '' |
| | | this.form.type = 0 |
| | | this.form.rate = '' |
| | | // 获取分类列表 |
| | | baseCategoryList({ type: 1 }) |
| | | list({ type: 1 }) |
| | | .then(res => { |
| | | this.categoryList = res |
| | | }) |