From 960d295793f1d164e3e8e22f8d7744b7923ae24b Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期一, 17 七月 2023 18:29:17 +0800 Subject: [PATCH] 销售线索列表、新建、编辑接口联调 --- src/api/custom/salesLead.js | 46 +++++++++++++++++++++++++++++++++++++++------- 1 files changed, 39 insertions(+), 7 deletions(-) diff --git a/src/api/custom/salesLead.js b/src/api/custom/salesLead.js index 26b3eb8..2c49016 100644 --- a/src/api/custom/salesLead.js +++ b/src/api/custom/salesLead.js @@ -1,9 +1,41 @@ -import { POST } from "@/api/index" -import { manageContextPath } from "@/common/config" +import request from "@/common/untils/request.js" -export default { - // 閿�鍞嚎绱㈠垪琛� - getSalesLeadList: (params) => { - return POST(manageContextPath + "", { params }) - } +// 閿�鍞嚎绱㈠垪琛� +export function getSalesLeadsList() { + return request({ + url: "/api/salesLeads/list", + method: "get" + }) +} +// 娣诲姞閿�鍞嚎绱� +export function getAddSalesLeads(data) { + return request({ + url: "/api/salesLeads/add", + method: "post", + data + }) +} +// 鍒犻櫎閿�鍞嚎绱� +export function getDeleteSalesLeads(data) { + return request({ + url: "/api/salesLeads/delete", + method: "delete", + data + }) +} +// 鏇存柊閿�鍞嚎绱� +export function getUpdateSalesLeads(data) { + return request({ + url: "/api/salesLeads/update", + method: "put", + data + }) +} + +// 鍟嗘満鏉ユ簮鍒楄〃 +export function getSalesSourcesList() { + return request({ + url: "/api/salesSources/list", + method: "get" + }) } -- Gitblit v1.8.0