diff --git a/fund-admin/src/api/customer.js b/fund-admin/src/api/customer.js index 77deaf6..49d3124 100644 --- a/fund-admin/src/api/customer.js +++ b/fund-admin/src/api/customer.js @@ -38,16 +38,17 @@ export const deleteCustomer = (id) => { }) } -export const getContactList = (customerId) => { +export const getContactList = (params) => { return request({ - url: `/cust/api/v1/customer-contact/list/${customerId}`, - method: 'get' + url: '/cust/api/v1/contact/list', + method: 'get', + params }) } export const createContact = (data) => { return request({ - url: '/cust/api/v1/customer-contact', + url: '/cust/api/v1/contact', method: 'post', data }) @@ -55,7 +56,7 @@ export const createContact = (data) => { export const updateContact = (id, data) => { return request({ - url: `/cust/api/v1/customer-contact/${id}`, + url: `/cust/api/v1/contact/${id}`, method: 'put', data }) @@ -63,7 +64,7 @@ export const updateContact = (id, data) => { export const deleteContact = (id) => { return request({ - url: `/cust/api/v1/customer-contact/${id}`, + url: `/cust/api/v1/contact/${id}`, method: 'delete' }) } diff --git a/fund-admin/src/views/customer/contact.vue b/fund-admin/src/views/customer/contact.vue index c8bb70b..d642ce4 100644 --- a/fund-admin/src/views/customer/contact.vue +++ b/fund-admin/src/views/customer/contact.vue @@ -198,21 +198,15 @@ const loadCustomerList = async () => { } const loadTableData = async () => { - if (!searchForm.customerId) { - tableData.value = [] - return - } - try { - const res = await getContactList(searchForm.customerId) - let contacts = res || [] - - // 根据姓名过滤 - if (searchForm.contactName) { - contacts = contacts.filter(c => c.contactName.includes(searchForm.contactName)) + const params = { + current: 1, + size: 1000, + customerId: searchForm.customerId || undefined, + contactName: searchForm.contactName || undefined } - - tableData.value = contacts + const res = await getContactList(params) + tableData.value = res.records || [] } catch (error) { ElMessage.error('加载数据失败') } diff --git a/fund-cust.log b/fund-cust.log new file mode 100644 index 0000000..fc88522 --- /dev/null +++ b/fund-cust.log @@ -0,0 +1 @@ +Error: Unable to access jarfile fund-cust-1.0.0-SNAPSHOT.jar diff --git a/fundplatform b/fundplatform index 1849191..6d49ac3 160000 --- a/fundplatform +++ b/fundplatform @@ -1 +1 @@ -Subproject commit 184919142741a540dcd8ed6e0862eba5153458d5 +Subproject commit 6d49ac30bcdfa4223053f4f0d55a577725ff7a51