From daf1864ba80397201120885bb91a7ec48a422f70 Mon Sep 17 00:00:00 2001 From: wxy Date: Thu, 9 May 2024 16:30:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/brand.js | 2 +- src/api/product/rule.js | 11 ++++++++++- src/api/product/type.js | 2 +- src/views/product/info/index.vue | 24 ++++++++++++++++++++++-- 4 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/api/product/brand.js b/src/api/product/brand.js index a3023a6..ecfc9c0 100644 --- a/src/api/product/brand.js +++ b/src/api/product/brand.js @@ -29,7 +29,7 @@ export function addBrand(data) { // 修改品牌信息 export function updateBrand(data) { return request({ - url: '/product/brand/'+data.id, + url: '/product/brand/', method: 'put', data: data }) diff --git a/src/api/product/rule.js b/src/api/product/rule.js index f2de650..d671678 100644 --- a/src/api/product/rule.js +++ b/src/api/product/rule.js @@ -29,12 +29,21 @@ export function addRule(data) { // 修改商品规格 export function updateRule(data) { return request({ - url: '/product/rule/'+data.id, + url: '/product/rule/', method: 'put', data: data }) } +// // 修改商品评价 +// export function updateMallProductReviewInfo(data) { +// return request({ +// url: '/product/MallProductReviewInfo', +// method: 'put', +// data: data +// }) +// } + // 删除商品规格 export function delRule(id) { return request({ diff --git a/src/api/product/type.js b/src/api/product/type.js index 1c282c4..b0b49e6 100644 --- a/src/api/product/type.js +++ b/src/api/product/type.js @@ -29,7 +29,7 @@ export function addType(data) { // 修改商品规格 export function updateType(data) { return request({ - url: '/product/type/'+data.id, + url: '/product/type/', method: 'put', data: data }) diff --git a/src/views/product/info/index.vue b/src/views/product/info/index.vue index e294ef5..28d717d 100644 --- a/src/views/product/info/index.vue +++ b/src/views/product/info/index.vue @@ -176,6 +176,20 @@ + + +
+ + + + +
+
+ @@ -298,6 +312,8 @@ import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/product/i import ImageUpload from "@/components/ImageUpload" import { listBrand } from "@/api/product/brand" import { listRule } from "@/api/product/rule" +import { listType } from "@/api/product/type" + export default { @@ -305,6 +321,7 @@ export default { name: "Info", data() { return { + categoryList: [], tableColumnHeaderTemplate:[], tableBodyTemplate:[ // {'stock':'商品库存1',price: "1",purchasePrice:"1",sellingPrice:"1",image:"1",number:"1",weight:"1",volume:"1"}, @@ -379,11 +396,14 @@ export default { this.initRuleListInfo(); }, methods: { - onSubmit(){ + handleChange() { + + }, + onSubmit() { this.settingsOrnClear(true) }, - onClear(){ + onClear() { this.settingsOrnClear(); },