From c72a20727b865fdb8a9fd9a26b3f4f79ebee53bf Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期三, 24 一月 2024 08:53:52 +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