From 2db2822b0493f010e12ada8b4b5a356a236c3249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=B0=91=E5=90=9B?= <476671688@qq.com> Date: Fri, 23 Feb 2024 18:27:55 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=9C=8D?= =?UTF-8?q?=E6=A0=8F=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/product/customerService.ts | 18 +++++++++--------- .../mall/product/customerService/index.vue | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) 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()