[fix]修改客服栏目
This commit is contained in:
@ -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 })
|
||||
}
|
||||
|
@ -39,7 +39,7 @@
|
||||
<el-button
|
||||
link
|
||||
type="danger"
|
||||
@click="handleDelete(scope.row.id)"
|
||||
@click="handleDelete(scope.row.openKfid)"
|
||||
v-hasPermi="['product:customerService:delete']"
|
||||
>
|
||||
删除
|
||||
@ -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()
|
||||
|
Reference in New Issue
Block a user