refactor: ♻️ 按钮权限指令优化
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
v-hasPerm="['sys:user:delete']"
|
||||
v-hasPerm="'sys:user:delete'"
|
||||
type="danger"
|
||||
icon="delete"
|
||||
:disabled="selectIds.length === 0"
|
||||
@@ -76,20 +76,14 @@
|
||||
</div>
|
||||
<div>
|
||||
<el-button
|
||||
v-hasPerm="['sys:user:import']"
|
||||
type="default"
|
||||
v-hasPerm="'sys:user:import'"
|
||||
icon="upload"
|
||||
@click="handleOpenImportDialog"
|
||||
>
|
||||
导入
|
||||
</el-button>
|
||||
|
||||
<el-button
|
||||
v-hasPerm="['sys:user:export']"
|
||||
type="default"
|
||||
icon="download"
|
||||
@click="handleExport"
|
||||
>
|
||||
<el-button v-hasPerm="'sys:user:export'" icon="download" @click="handleExport">
|
||||
导出
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -118,7 +112,7 @@
|
||||
<el-table-column label="操作" fixed="right" width="220">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
v-hasPerm="['sys:user:password:reset']"
|
||||
v-hasPerm="'sys:user:password:reset'"
|
||||
type="primary"
|
||||
icon="RefreshLeft"
|
||||
size="small"
|
||||
@@ -128,7 +122,7 @@
|
||||
重置密码
|
||||
</el-button>
|
||||
<el-button
|
||||
v-hasPerm="['sys:user:edit']"
|
||||
v-hasPerm="'sys:user:edit'"
|
||||
type="primary"
|
||||
icon="edit"
|
||||
link
|
||||
|
||||
Reference in New Issue
Block a user