修复BUG: 用户管理导入导出按钮权限
This commit is contained in:
@@ -78,6 +78,7 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
|
|||||||
export: {
|
export: {
|
||||||
text: "导出",//按钮文字
|
text: "导出",//按钮文字
|
||||||
title: "导出",//鼠标停留显示的信息
|
title: "导出",//鼠标停留显示的信息
|
||||||
|
show: auth('user:Export'),
|
||||||
click() {
|
click() {
|
||||||
return exportRequest(crudExpose!.getSearchFormData())
|
return exportRequest(crudExpose!.getSearchFormData())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<el-card :body-style="{ height: '100%' }">
|
<el-card :body-style="{ height: '100%' }">
|
||||||
<fs-crud ref="crudRef" v-bind="crudBinding">
|
<fs-crud ref="crudRef" v-bind="crudBinding">
|
||||||
<template #actionbar-right>
|
<template #actionbar-right>
|
||||||
<importExcel api="api/system/user/">导入</importExcel>
|
<importExcel api="api/system/user/" v-auth="'user:Import'">导入</importExcel>
|
||||||
</template>
|
</template>
|
||||||
</fs-crud>
|
</fs-crud>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|||||||
Reference in New Issue
Block a user