소스 검색

bug修复

chenrui 3 년 전
부모
커밋
7990c5b18d
2개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 0
      src/api/productType.js
  2. 2 2
      src/views/productManagement/productInfo/edit.vue

+ 8 - 0
src/api/productType.js

@@ -16,6 +16,14 @@ export const productTypeQuery = (params) => {
     method: 'post'
   })
 }
+//  产品分类 列表  多层分类查询   无分页   有启禁用
+export const productTypeQueryAll = (params) => {
+  return axios({
+    url: '/productType/queryAll',
+    data: params,
+    method: 'post'
+  })
+}
 // 产品分类  新增/编辑
 export const productTypeSave = params => {
   return axios({

+ 2 - 2
src/views/productManagement/productInfo/edit.vue

@@ -215,7 +215,7 @@
 import { VSelect, Upload } from '@/components'
 import Editor from '@/components/WEeditor'
 import { productSave, productSnDetail } from '@/api/product'
-import { productTypeQuery } from '@/api/productType'
+import { productTypeQueryAll } from '@/api/productType'
 import { productBrandQuery } from '@/api/productBrand'
 export default {
   components: { VSelect, Upload, Editor },
@@ -376,7 +376,7 @@ export default {
     },
     //  产品分类  列表
     getProductType () {
-      productTypeQuery({}).then(res => {
+      productTypeQueryAll({}).then(res => {
         if (res.status == 200) {
           this.productTypeList = res.data
         } else {