数据日志

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

View File

@ -19,7 +19,7 @@
</el-col> </el-col>
</el-row> </el-row>
<div style="margin-top:15px;"> <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="primary" @click="addDict">新建</el-button>
<el-button type="danger" :disabled="!selectionData.length" @click="handleDelete()">删除</el-button> <el-button type="danger" :disabled="!selectionData.length" @click="handleDelete()">删除</el-button>
</div> </div>

View File

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

View File

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

View File

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

View File

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