From 231ba51650e792ef4cd250baae40b687e156567d Mon Sep 17 00:00:00 2001
From: shizhong <124974919@qq.com>
Date: Fri, 8 Mar 2024 21:24:00 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20CRM=EF=BC=9A=E4=BA=A7=E5=93=81?=
=?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=9A=84=20review?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/crm/product/index.ts | 14 +++---
src/router/modules/remaining.ts | 9 ++--
src/views/crm/product/ProductForm.vue | 4 +-
src/views/crm/product/index.vue | 66 ++++++++++++---------------
4 files changed, 43 insertions(+), 50 deletions(-)
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 @@
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+