文件管理、系统设置权限

This commit is contained in:
陈红丽 2024-07-29 09:46:37 +08:00
parent 0193c1f0d5
commit 5b78c3daf1
5 changed files with 14 additions and 39 deletions

View File

@ -13,7 +13,7 @@
@selection-change="onSelectionChange"
>
<template #tableTitle>
<el-button type="primary" @click="handleAdd">
<el-button type="primary" @click="handleAdd" v-perm="['sys:emailTemplate:add']">
<template #icon>
<el-icon class="el-input__icon">
<Plus />
@ -21,7 +21,7 @@
</template>
添加
</el-button>
<el-button type="danger" @click="handleDelete()" :disabled="!selectionData.length">
<el-button type="danger" @click="handleDelete()" :disabled="!selectionData.length" v-perm="['sys:emailTemplate:batchDelete']">
<template #icon>
<el-icon class="el-input__icon">
<Delete />
@ -80,21 +80,13 @@ const editVisible=ref(false)
label: '编辑',
type: 'warning',
onClick: handleEdit.bind(null, record),
ifShow: () => {
return true;
},
// auth: ['sys:fileLog:detail'],
auth: ['sys:emailTemplate:update'],
},
{
label: '删除',
type: 'danger',
onClick: handleDelete.bind(null, record),
// isShow auth
ifShow: () => {
return true;
},
// :
// auth: ['basic_list'],
auth: ['sys:emailTemplate:delete'],
},
],
});

View File

@ -13,7 +13,7 @@
@selection-change="onSelectionChange"
>
<template #tableTitle>
<el-button type="primary" @click="handleAdd">
<el-button type="primary" @click="handleAdd" v-perm="['sys:fileTemplate:add']">
<template #icon>
<el-icon class="el-input__icon">
<Plus />
@ -21,7 +21,7 @@
</template>
添加
</el-button>
<el-button type="danger" @click="handleDelete()" :disabled="!selectionData.length">
<el-button type="danger" @click="handleDelete()" :disabled="!selectionData.length" v-perm="['sys:fileTemplate:batchDelete']">
<template #icon>
<el-icon class="el-input__icon">
<Delete />
@ -79,21 +79,13 @@ const editVisible=ref(false)
label: '编辑',
type: 'warning',
onClick: handleEdit.bind(null, record),
ifShow: () => {
return true;
},
// auth: ['sys:fileLog:detail'],
auth: ['sys:fileTemplate:update'],
},
{
label: '删除',
type: 'danger',
onClick: handleDelete.bind(null, record),
// isShow auth
ifShow: () => {
return true;
},
// :
// auth: ['basic_list'],
auth: ['sys:fileTemplate:delete'],
},
],
});

View File

@ -13,7 +13,7 @@
@selection-change="onSelectionChange"
>
<template #tableTitle>
<el-button type="primary" @click="handleAdd">
<el-button type="primary" @click="handleAdd" v-perm="['sys:smsTemplate:add']">
<template #icon>
<el-icon class="el-input__icon">
<Plus />
@ -21,7 +21,7 @@
</template>
添加
</el-button>
<el-button type="danger" @click="handleDelete()" :disabled="!selectionData.length">
<el-button type="danger" @click="handleDelete()" :disabled="!selectionData.length" v-perm="['sys:smsTemplate:batchDelete']">
<template #icon>
<el-icon class="el-input__icon">
<Delete />
@ -80,21 +80,12 @@ const editVisible=ref(false)
label: '编辑',
type: 'warning',
onClick: handleEdit.bind(null, record),
ifShow: () => {
return true;
},
// auth: ['sys:fileLog:detail'],
auth: ['sys:smsTemplate:update'],
},
{
label: '删除',
type: 'danger',
onClick: handleDelete.bind(null, record),
// isShow auth
ifShow: () => {
return true;
},
// :
// auth: ['basic_list'],
auth: ['sys:smsTemplate:delete'],
},
],
});

View File

@ -67,7 +67,7 @@
</el-col>
</el-row>
<div class="submit-btn">
<el-button type="primary" @click="handleSubmit">更新系统设置</el-button>
<el-button type="primary" @click="handleSubmit" v-perm="['sys:configWeb:save']">更新系统设置</el-button>
</div>
</div>
</template>

View File

@ -55,7 +55,7 @@
</el-form-item>
<el-form-item>
<el-space>
<el-button :loading="subLoading" type="primary" @click="submit">更新基本信息</el-button>
<el-button :loading="subLoading" type="primary" @click="submit" v-perm="['sys:profile:update']">更新基本信息</el-button>
</el-space>
</el-form-item>
</el-form>