Mr.Shi
2023-09-19 02eb974bcf9f85a4a6594540fab97007abef4291
company_admin/src/components/business/selectProduct.vue
@@ -7,7 +7,7 @@
                    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>
@@ -30,7 +30,7 @@
  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 {
@@ -79,7 +79,7 @@
                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 => {
@@ -107,8 +107,11 @@
        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
              })