This commit is contained in:
陈红丽 2024-11-13 16:16:32 +08:00
parent 82df58edd5
commit b03e88bded
2 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@ dist_electron
# local env files # local env files
.env.local .env.local
.env.*.local .env.*.local
.history
# Log files # Log files
npm-debug.log* npm-debug.log*

View File

@ -19,7 +19,7 @@
> >
<template #tableTitle> <template #tableTitle>
<a-space> <a-space>
<a-button type="primary" @click="handleAdd" v-perm="['sys:level:add']"> <a-button type="primary" @click="handleAdd" v-perm="['sys:position:add']">
<template #icon> <template #icon>
<PlusOutlined /> <PlusOutlined />
</template> </template>
@ -30,7 +30,7 @@
type="danger" type="danger"
@click="handleDelete()" @click="handleDelete()"
:disabled="!selectionData.length" :disabled="!selectionData.length"
v-perm="['sys:level:batchDelete']" v-perm="['sys:position:batchDelete']"
> >
<template #icon> <template #icon>
<DeleteOutlined /> <DeleteOutlined />
@ -42,7 +42,7 @@
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<a-space> <a-space>
<a-button type="primary" @click="handleEdit(record.id)" v-perm="['sys:level:update']"> <a-button type="primary" @click="handleEdit(record.id)" v-perm="['sys:position:update']">
<template #icon><EditOutlined /></template> <template #icon><EditOutlined /></template>
编辑 编辑
</a-button> </a-button>
@ -50,7 +50,7 @@
type="primary" type="primary"
danger danger
@click="handleDelete(record.id)" @click="handleDelete(record.id)"
v-perm="['sys:level:delete']" v-perm="['sys:position:delete']"
> >
<template #icon><DeleteOutlined /></template> <template #icon><DeleteOutlined /></template>
删除 删除