修复BUG: 用户管理导入导出按钮权限

This commit is contained in:
猿小天
2024-05-10 10:23:00 +08:00
parent 49d56f6378
commit 767cbbe366
2 changed files with 2 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
export: {
text: "导出",//按钮文字
title: "导出",//鼠标停留显示的信息
show: auth('user:Export'),
click() {
return exportRequest(crudExpose!.getSearchFormData())
}

View File

@@ -31,7 +31,7 @@
<el-card :body-style="{ height: '100%' }">
<fs-crud ref="crudRef" v-bind="crudBinding">
<template #actionbar-right>
<importExcel api="api/system/user/">导入</importExcel>
<importExcel api="api/system/user/" v-auth="'user:Import'">导入</importExcel>
</template>
</fs-crud>
</el-card>