diff --git a/src/api/Pricesystem/index.js b/src/api/Pricesystem/index.js index 70ee6c66..5ba4ad98 100644 --- a/src/api/Pricesystem/index.js +++ b/src/api/Pricesystem/index.js @@ -91,11 +91,11 @@ export const putBasicdataPrice = data => { * 获取价格路径列表 * @returns */ -export const getPage = data => { +export const getPage = params => { return request({ url: '/api/logpm-basicdata/priceRoute/page', method: 'get', - data, + params, }); }; @@ -104,8 +104,9 @@ export const getPage = data => { * @returns */ export const getDetails = data => { + console.log('data :>> ', data); return request({ - url: `/api/logpm-basicdata/priceRoute/${data.id}`, + url: `/api/logpm-basicdata/priceRoute/${data}`, method: 'get', }); }; @@ -126,9 +127,10 @@ export const postSubmit = data => { * 删除 * @returns */ -export const postRemove = data => { +export const postRemove = params => { return request({ url: `/api/logpm-basicdata/priceRoute/remove`, method: 'post', + params, }); }; diff --git a/src/views/Pricesystem/Price/PriceBill.vue b/src/views/Pricesystem/Price/PriceBill.vue index 750b2b27..9da9327d 100644 --- a/src/views/Pricesystem/Price/PriceBill.vue +++ b/src/views/Pricesystem/Price/PriceBill.vue @@ -221,19 +221,20 @@