|
@@ -17,7 +17,7 @@ import { onMounted } from 'vue';
|
|
|
import { GetPermission } from './api';
|
|
|
import { createCrudOptions } from './crud';
|
|
|
import { handleColumnPermission } from '/@/utils/columnPermission';
|
|
|
-
|
|
|
+import { downloadFile } from '/@/utils/service';
|
|
|
const { crudBinding, crudRef, crudExpose, crudOptions, resetCrudOptions } = useFs({ createCrudOptions });
|
|
|
|
|
|
const handleBatchImport = () => {
|
|
@@ -25,7 +25,11 @@ const handleBatchImport = () => {
|
|
|
}
|
|
|
|
|
|
const handleDownloadTemplate = () => {
|
|
|
-
|
|
|
+ downloadFile({
|
|
|
+ url: '/api/system/app_user/download_template/',
|
|
|
+ method: 'get',
|
|
|
+ filename: '用户导入模板'
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
|