diff --git a/src/api/modules/goods.js b/src/api/modules/goods.js index 1033f6b..5bebfb9 100644 --- a/src/api/modules/goods.js +++ b/src/api/modules/goods.js @@ -1,7 +1,7 @@ import service from "../request.js"; const API_BASE_URL = '/goods'; -// 客户列表 +// 服务项目列表 export function getGoodsList(query) { return service({ method: "get", @@ -9,6 +9,8 @@ export function getGoodsList(query) { data: query, }); } + +// 添加服务项目 export function addGoods(query) { return service({ method: "post", @@ -16,6 +18,8 @@ export function addGoods(query) { data: query, }); } + +// 更新服务项目 export function updateGoods(query) { return service({ method: "put", @@ -23,9 +27,12 @@ export function updateGoods(query) { data: query, }); } -export function delGoods(id) { + +// 删除服务项目 +export function delGoods(query) { return service({ method: "delete", - url: `${API_BASE_URL}/`+id + url: `${API_BASE_URL}/${query}`, + data: query, }); } diff --git a/src/views/goods/index.vue b/src/views/goods/index.vue index 113c9df..6d83845 100644 --- a/src/views/goods/index.vue +++ b/src/views/goods/index.vue @@ -7,7 +7,7 @@ - + @@ -31,6 +31,16 @@ + + + + +
- 取消 + 取消 确认
@@ -72,10 +82,6 @@ - + +