[fix]修改客服栏目

This commit is contained in:
黄少君
2024-02-23 18:27:55 +08:00
parent eb906ab0fa
commit 2db2822b04
2 changed files with 11 additions and 11 deletions

View File

@ -1,15 +1,15 @@
import request from '@/config/axios' import request from '@/config/axios'
/** /**
* 商品品牌 * 客服品牌
*/ */
export interface KfVO { export interface KfVO {
/** /**
* 品牌编号 * 客服编号
*/ */
id?: number id?: number
/** /**
* 品牌名称 * 客服名称
*/ */
name: string name: string
/** /**
@ -18,23 +18,23 @@ export interface KfVO {
mediaId: string mediaId: string
} }
// 创建商品品牌 // 创建客服
export const createKf = (data: KfVO) => { export const createKf = (data: KfVO) => {
return request.post({ url: '/cp/kf', data }) return request.post({ url: '/cp/kf', data })
} }
// 更新商品品牌 // 更新客服
export const updateKf = (data: KfVO) => { export const updateKf = (data: KfVO) => {
return request.put({ url: '/cp/kf', data }) return request.put({ url: '/cp/kf', data })
} }
// 删除商品品牌 // 删除客服
export const deleteKf = (id: number) => { export const deleteKf = (data: any) => {
return request.delete({ url: `/cp/kf?id=${id}` }) return request.delete({ url: `/cp/kf`, data })
} }
// 获得商品品牌列表 // 获得客服列表
export const getKfPage = (params: PageParam) => { export const getKfPage = (params: PageParam) => {
return request.get({ url: '/cp/kf/page', params }) return request.get({ url: '/cp/kf/page', params })
} }

View File

@ -39,7 +39,7 @@
<el-button <el-button
link link
type="danger" type="danger"
@click="handleDelete(scope.row.id)" @click="handleDelete(scope.row.openKfid)"
v-hasPermi="['product:customerService:delete']" v-hasPermi="['product:customerService:delete']"
> >
删除 删除
@ -102,7 +102,7 @@ const handleDelete = async (id: number) => {
// 删除的二次确认 // 删除的二次确认
await message.delConfirm() await message.delConfirm()
// 发起删除 // 发起删除
await CustomerServiceApi.deleteKf(id) await CustomerServiceApi.deleteKf({openKfid: id})
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
// 刷新列表 // 刷新列表
await getList() await getList()