diff --git a/snowy-admin-web/src/api/biz/bizUserApi.js b/snowy-admin-web/src/api/biz/bizUserApi.js
index 5b280fa0..3b1437a4 100644
--- a/snowy-admin-web/src/api/biz/bizUserApi.js
+++ b/snowy-admin-web/src/api/biz/bizUserApi.js
@@ -70,6 +70,12 @@ export default {
grantRole(data) {
return request('grantRole', data)
},
+ // 下载用户导入模板
+ userDownloadImportUserTemplate(data) {
+ return request('downloadImportUserTemplate', data, 'get', {
+ responseType: 'blob'
+ })
+ },
// 用户导入
userImport(data) {
return request('import', data)
diff --git a/snowy-admin-web/src/views/biz/user/impExp.vue b/snowy-admin-web/src/views/biz/user/impExp.vue
index 759bf69a..5d9675ff 100644
--- a/snowy-admin-web/src/views/biz/user/impExp.vue
+++ b/snowy-admin-web/src/views/biz/user/impExp.vue
@@ -123,7 +123,7 @@
}
// 下载用户导入模板
const downloadImportUserTemplate = () => {
- userApi.userDownloadImportUserTemplate().then((res) => {
+ bizUserApi.userDownloadImportUserTemplate().then((res) => {
downloadUtil.resultDownload(res)
})
}
diff --git a/snowy-admin-web/src/views/biz/user/index.vue b/snowy-admin-web/src/views/biz/user/index.vue
index 0c149da5..62a4270f 100644
--- a/snowy-admin-web/src/views/biz/user/index.vue
+++ b/snowy-admin-web/src/views/biz/user/index.vue
@@ -129,6 +129,9 @@
{{ $t('user.grantRole') }}
+
+ {{ $t('user.exportUserInfo') }}
+
diff --git a/snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/user/controller/BizUserController.java b/snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/user/controller/BizUserController.java
index fb2fcdf8..70e96518 100644
--- a/snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/user/controller/BizUserController.java
+++ b/snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/user/controller/BizUserController.java
@@ -221,6 +221,7 @@ public class BizUserController {
@ApiOperationSupport(order = 11)
@ApiOperation("下载人员导入模板")
@CommonLog("下载人员导入模板")
+ @SaCheckPermission("/biz/user/downloadImportUserTemplate")
@GetMapping(value = "/biz/user/downloadImportUserTemplate", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
public CommonResult downloadImportUserTemplate(HttpServletResponse response) throws IOException {
bizUserService.downloadImportUserTemplate(response);
@@ -236,6 +237,7 @@ public class BizUserController {
@ApiOperationSupport(order = 12)
@ApiOperation("人员导入")
@CommonLog("人员导入")
+ @SaCheckPermission("/biz/user/import")
@PostMapping("/biz/user/import")
public CommonResult importUser(@RequestPart("file") @ApiParam(value="文件", required = true) MultipartFile file) {
return CommonResult.data(bizUserService.importUser(file));
@@ -250,6 +252,7 @@ public class BizUserController {
@ApiOperationSupport(order = 13)
@ApiOperation("人员导出")
@CommonLog("人员导出")
+ @SaCheckPermission("/biz/user/export")
@GetMapping(value = "/biz/user/export", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
public void exportUser(BizUserExportParam bizUserExportParam, HttpServletResponse response) throws IOException {
bizUserService.exportUser(bizUserExportParam, response);
@@ -264,6 +267,7 @@ public class BizUserController {
@ApiOperationSupport(order = 14)
@ApiOperation("导出人员个人信息")
@CommonLog("导出人员个人信息")
+ @SaCheckPermission("/biz/user/exportUserInfo")
@GetMapping(value = "/biz/user/exportUserInfo", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
public void exportUserInfo(BizUserIdParam bizUserIdParam, HttpServletResponse response) throws IOException {
bizUserService.exportUserInfo(bizUserIdParam, response);