文件管理、系统设置权限
This commit is contained in:
parent
0193c1f0d5
commit
5b78c3daf1
@ -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'],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
@ -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'],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
@ -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'],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user