数据日志

This commit is contained in:
陈红丽 2024-07-29 09:39:49 +08:00
parent 2fa8d3adb5
commit 0193c1f0d5
6 changed files with 19 additions and 52 deletions

View File

@ -2,7 +2,7 @@
<div class="menu-index">
<el-card :bordered="false" class="pt-3 mb-3 proCard">
<div>
<el-button type="primary" @click="handleAdd()">
<el-button type="primary" @click="handleAdd()" v-perm="['sys:city:add']">
<template #icon>
<el-icon>
<plus />
@ -31,14 +31,13 @@
<el-table-column align="center" label="城市邮编" prop="zipCode" min-width="100"/>
<el-table-column align="center" label="操作" width="160" fixed="right">
<template #default="{ row }">
<el-button type="primary" link
@click="handleAdd(row)">
<el-button type="primary" link @click="handleAdd(row)" v-perm="['sys:city:addz']">
新增
</el-button>
<el-button type="primary" link @click="handleEdit(row)">
<el-button type="primary" link @click="handleEdit(row)" v-perm="['sys:city:update']">
编辑
</el-button>
<el-button type="danger" link @click="handleDelete(row)">
<el-button type="danger" link @click="handleDelete(row)" v-perm="['sys:city:delete']">
删除
</el-button>
</template>

View File

@ -19,7 +19,7 @@
</el-col>
</el-row>
<div style="margin-top:15px;">
<el-button type="primary" @click="dictRefresh">刷新缓存</el-button>
<el-button type="primary" @click="dictRefresh" v-perm="['sys:dict:cache']">刷新缓存</el-button>
<el-button type="primary" @click="addDict">新建</el-button>
<el-button type="danger" :disabled="!selectionData.length" @click="handleDelete()">删除</el-button>
</div>

View File

@ -14,7 +14,7 @@
>
<template #tableTitle>
<el-space>
<el-button type="primary" @click="handleAdd">
<el-button type="primary" @click="handleAdd" v-perm="['sys:notice:add']">
<template #icon>
<el-icon class="el-input__icon">
<PlusOutlined />
@ -22,7 +22,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:notice:batchDelete']">
<template #icon>
<el-icon class="el-input__icon">
<Delete />
@ -80,21 +80,13 @@
label: '编辑',
type: 'warning',
onClick: handleEdit.bind(null, record),
ifShow: () => {
return true;
},
// auth: ['basic_list'],
auth: ['sys:notice:update'],
},
{
label: '删除',
type: 'danger',
onClick: handleDelete.bind(null, record),
// isShow auth
ifShow: () => {
return true;
},
// :
// auth: ['basic_list'],
auth: ['sys:notice: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:param:add']">
<template #icon>
<el-icon class="el-input__icon">
<PlusOutlined />
@ -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:param:batchDelete']">
<template #icon>
<el-icon class="el-input__icon">
<Delete />
@ -78,21 +78,13 @@ const editVisible=ref(false)
label: '编辑',
type: 'warning',
onClick: handleEdit.bind(null, record),
ifShow: () => {
return true;
},
// auth: ['basic_list'],
auth: ['sys:param:update'],
},
{
label: '删除',
type: 'danger',
onClick: handleDelete.bind(null, record),
// isShow auth
ifShow: () => {
return true;
},
// :
// auth: ['basic_list'],
auth: ['sys:param:delete'],
},
],
});

View File

@ -13,7 +13,7 @@
@selection-change="onSelectionChange"
>
<template #tableTitle>
<el-button type="danger" @click="handleDelete()" :disabled="!selectionData.length">
<el-button type="danger" @click="handleDelete()" :disabled="!selectionData.length" v-perm="['sys:emailLog:batchDelete']">
<template #icon>
<el-icon class="el-input__icon">
<Delete />
@ -74,21 +74,13 @@ const editVisible=ref(false)
label: '详情',
type: 'warning',
onClick: handleDetail.bind(null, record),
ifShow: () => {
return true;
},
// auth: ['sys:emailLog:detail'],
auth: ['sys:emailLog:detail'],
},
{
label: '删除',
type: 'danger',
onClick: handleDelete.bind(null, record),
// isShow auth
ifShow: () => {
return true;
},
// :
// auth: ['basic_list'],
auth: ['sys:emailLog:delete'],
},
],
});

View File

@ -13,7 +13,7 @@
@selection-change="onSelectionChange"
>
<template #tableTitle>
<el-button type="danger" @click="handleDelete()" :disabled="!selectionData.length">
<el-button type="danger" @click="handleDelete()" :disabled="!selectionData.length" v-perm="['sys:smsLog:batchDelete']">
<template #icon>
<el-icon class="el-input__icon">
<Delete />
@ -74,21 +74,13 @@ const editVisible=ref(false)
label: '详情',
type: 'warning',
onClick: handleDetail.bind(null, record),
ifShow: () => {
return true;
},
// auth: ['sys:smsLog:detail'],
auth: ['sys:smsLog:detail'],
},
{
label: '删除',
type: 'danger',
onClick: handleDelete.bind(null, record),
// isShow auth
ifShow: () => {
return true;
},
// :
// auth: ['basic_list'],
auth: ['sys:smsLog:delete'],
},
],
});