From cda5fee482dac97c3c8ba0269403e252ccbeb826 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Sun, 8 Oct 2023 16:54:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E4=B9=B0=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config.ts | 7 +- src/components/Search.vue | 15 +- src/utils/request.ts | 1 - src/views/config/Buyer.vue | 388 +++++++++++++++++++++++++++++++------ 4 files changed, 334 insertions(+), 77 deletions(-) diff --git a/src/api/config.ts b/src/api/config.ts index a3e1da3..468a498 100644 --- a/src/api/config.ts +++ b/src/api/config.ts @@ -1,5 +1,8 @@ import axios from '@/utils/request'; -export const systemBuyerAdd = async (data: Record): Promise => (await axios.post('/product/systemBuyer/add', data)).data; +export const saveOrUpdate = async (data: Record): Promise => (await axios.post('/product/systemBuyer/saveOrUpdate', data)).data; export const systemBuyerFind = async (): Promise => (await axios.post('/product/systemBuyer/details')).data; -export const systemBuyerUpdate = async (data: Record): Promise => (await axios.post('/product/systemBuyer/update', data)).data; +export const ages = async (): Promise => (await axios.post('/product/ages/list')).data; +export const edu = async (): Promise => (await axios.post('/product/edu/list')).data; +export const accountType = async (): Promise => (await axios.post('/product/accountType/list')).data; +export const buyerType = async (): Promise => (await axios.post('/product/buyerType/list')).data; diff --git a/src/components/Search.vue b/src/components/Search.vue index bc7514b..4d578c2 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -11,7 +11,7 @@