From 6b2e85cbe945cef212432f2688d272c82604f593 Mon Sep 17 00:00:00 2001 From: chendaze <1824191732@qq.com> Date: Tue, 2 Apr 2024 13:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E7=9A=84=E5=AF=BC=E5=87=BA=E5=92=8C=E5=AF=BC=E5=85=A5=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/admin/customer.js | 11 +++- src/views/admin/CustomerEdit.vue | 103 ++++++++++++++++++++----------- 2 files changed, 77 insertions(+), 37 deletions(-) diff --git a/src/api/admin/customer.js b/src/api/admin/customer.js index 9bf965f..1241fee 100644 --- a/src/api/admin/customer.js +++ b/src/api/admin/customer.js @@ -104,8 +104,15 @@ export function importData (data) { return axios({ url: api.icsCustomerStaff + '/importData', method: 'post', - headers: { 'Content-Type': 'multipart/form-data' }, - params: data + data: data + }) +} + +export function exportTemplate () { + return axios({ + url: api.icsCustomerStaff + '/exportTemplate', + method: 'post', + data: { } }) } diff --git a/src/views/admin/CustomerEdit.vue b/src/views/admin/CustomerEdit.vue index 4a7851c..0bfd631 100644 --- a/src/views/admin/CustomerEdit.vue +++ b/src/views/admin/CustomerEdit.vue @@ -315,43 +315,26 @@ - - - - - - - - - - - - - - - - - - - 导入 - - - - - - - - - - + +
+ + 导入用户数据 + + 导出用户模板 +