From 504e00da9a9898ac419e97f93fc66cc7c7c6f620 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 28 二月 2024 14:30:25 +0800 Subject: [PATCH] 服务合同-去掉产品为空的判断增加保存时去掉未选择产品的对象 --- src/api/common/other.js | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/api/common/other.js b/src/api/common/other.js index 9c1eda8..475a982 100644 --- a/src/api/common/other.js +++ b/src/api/common/other.js @@ -50,14 +50,35 @@ } // 鑾峰彇浜у搧鍒楄〃 export const getProductList = async (data) => { - return await axios.get(`/api/product/list`, { + return await request({ + url: "/api/product/list", + method: "get", params: data }) + + // return await axios.get(`/api/product/list`, { + // params: data + // }) } // 鑾峰彇甯歌闂鍒楄〃 export const getFaqList = async (data) => { - return await axios.get(`/api/faq/list`, { + return await request({ + url: "/api/faq/list", + method: "get", params: data }) + + // return await axios.get(`/api/faq/list`, { + // params: data + // }) +} + +// 鍒嗛厤 +export function getAssign(data) { + return request({ + url: "/api/assign/assign", + method: "post", + data + }) } -- Gitblit v1.8.0