diff --git a/src/api/mall/product/customerService.ts b/src/api/mall/product/customerService.ts index 4ad218a..e41581a 100644 --- a/src/api/mall/product/customerService.ts +++ b/src/api/mall/product/customerService.ts @@ -1,15 +1,15 @@ import request from '@/config/axios' /** - * 商品品牌 + * 客服品牌 */ export interface KfVO { /** - * 品牌编号 + * 客服编号 */ id?: number /** - * 品牌名称 + * 客服名称 */ name: string /** @@ -18,23 +18,23 @@ export interface KfVO { mediaId: string } -// 创建商品品牌 +// 创建客服 export const createKf = (data: KfVO) => { return request.post({ url: '/cp/kf', data }) } -// 更新商品品牌 +// 更新客服 export const updateKf = (data: KfVO) => { return request.put({ url: '/cp/kf', data }) } -// 删除商品品牌 -export const deleteKf = (id: number) => { - return request.delete({ url: `/cp/kf?id=${id}` }) +// 删除客服 +export const deleteKf = (data: any) => { + return request.delete({ url: `/cp/kf`, data }) } -// 获得商品品牌列表 +// 获得客服列表 export const getKfPage = (params: PageParam) => { return request.get({ url: '/cp/kf/page', params }) } diff --git a/src/views/mall/product/customerService/index.vue b/src/views/mall/product/customerService/index.vue index 773c714..07738be 100644 --- a/src/views/mall/product/customerService/index.vue +++ b/src/views/mall/product/customerService/index.vue @@ -39,7 +39,7 @@ 删除 @@ -102,7 +102,7 @@ const handleDelete = async (id: number) => { // 删除的二次确认 await message.delConfirm() // 发起删除 - await CustomerServiceApi.deleteKf(id) + await CustomerServiceApi.deleteKf({openKfid: id}) message.success(t('common.delSuccess')) // 刷新列表 await getList()