From 2603776911f8acfe970f8d79c2f57f2e5c22791d Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期四, 21 十二月 2023 14:36:57 +0800 Subject: [PATCH] 用户导入 --- src/api/user.js | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index a8df775..819c7de 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -191,4 +191,25 @@ method: 'post', data: data }) -} \ No newline at end of file +} + +//下载区划对照表 +export function downLoadArea(){ + return request({ + url: '/sys/districtInfo/getDistrictInfoExcel', + method: 'get', + responseType: 'blob' + }) +} + +// 导入用户表 +export function importUserFile(data){ + return request({ + headers: { + "Content-Type": "multipart/form-data", + }, + url: '/account/user/importNew', + method: 'post', + data: data + }) +} -- Gitblit v1.9.2