diff --git a/src/api/crm/product/index.ts b/src/api/crm/product/index.ts index a89d6e81..2d88cb09 100644 --- a/src/api/crm/product/index.ts +++ b/src/api/crm/product/index.ts @@ -14,35 +14,35 @@ export interface ProductVO { // 查询产品列表 export const getProductPage = async (params) => { - return await request.get({url: `/crm/product/page`, params}) + return await request.get({ url: `/crm/product/page`, params }) } // 查询产品详情 export const getProduct = async (id: number) => { - return await request.get({url: `/crm/product/get?id=` + id}) + return await request.get({ url: `/crm/product/get?id=` + id }) } // 新增产品 export const createProduct = async (data: ProductVO) => { - return await request.post({url: `/crm/product/create`, data}) + return await request.post({ url: `/crm/product/create`, data }) } // 修改产品 export const updateProduct = async (data: ProductVO) => { - return await request.put({url: `/crm/product/update`, data}) + return await request.put({ url: `/crm/product/update`, data }) } // 删除产品 export const deleteProduct = async (id: number) => { - return await request.delete({url: `/crm/product/delete?id=` + id}) + return await request.delete({ url: `/crm/product/delete?id=` + id }) } // 导出产品 Excel export const exportProduct = async (params) => { - return await request.download({url: `/crm/product/export-excel`, params}) + return await request.download({ url: `/crm/product/export-excel`, params }) } // 查询产品操作日志 export const getOperateLogPage = async (params: any) => { - return await request.get({url: '/crm/product/operate-log-page', params}) + return await request.get({ url: '/crm/product/operate-log-page', params }) } diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 95155730..baf661fc 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -502,7 +502,8 @@ const remainingRouter: AppRouteRecordRaw[] = [ meta: { title: '客户详情', noCache: true, - hidden: true + hidden: true, + activeMenu: '/crm/customer' }, component: () => import('@/views/crm/customer/detail/index.vue') }, @@ -512,7 +513,8 @@ const remainingRouter: AppRouteRecordRaw[] = [ meta: { title: '联系人详情', noCache: true, - hidden: true + hidden: true, + activeMenu: '/crm/contact' }, component: () => import('@/views/crm/contact/detail/index.vue') }, @@ -522,7 +524,8 @@ const remainingRouter: AppRouteRecordRaw[] = [ meta: { title: '产品详情', noCache: true, - hidden: true + hidden: true, + activeMenu: '/crm/product' }, component: () => import('@/views/crm/product/detail/index.vue') } diff --git a/src/views/crm/product/ProductForm.vue b/src/views/crm/product/ProductForm.vue index 74dc7662..0586a2bf 100644 --- a/src/views/crm/product/ProductForm.vue +++ b/src/views/crm/product/ProductForm.vue @@ -62,13 +62,13 @@ - diff --git a/src/views/crm/product/index.vue b/src/views/crm/product/index.vue index aa517c17..5100d7f4 100644 --- a/src/views/crm/product/index.vue +++ b/src/views/crm/product/index.vue @@ -28,17 +28,10 @@ - - - 搜索 - - - - 重置 - + 搜索 + 重置 - - 新增 + 新增 - + 导出 @@ -64,26 +57,27 @@ - + - + - - + + - + - + - +