fix: button antdv 4.0
parent
69d3ef6506
commit
3622c099e9
|
@ -89,7 +89,7 @@ async function handleDelete(record: Recordable) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'infra:codegen:delete',
|
auth: 'infra:codegen:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -76,7 +76,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'infra:config:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'infra:config:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'infra:config:delete',
|
auth: 'infra:config:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -66,7 +66,7 @@ async function handleDelete(record: Recordable) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
ifShow: record.id !== 0,
|
ifShow: record.id !== 0,
|
||||||
auth: 'infra:data-source-config:delete',
|
auth: 'infra:data-source-config:delete',
|
||||||
|
|
|
@ -77,7 +77,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.VIEW, label: '复制链接', onClick: handleCopy.bind(null, record) },
|
{ icon: IconEnum.VIEW, label: '复制链接', onClick: handleCopy.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'infra:file:delete',
|
auth: 'infra:file:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -88,7 +88,7 @@ async function handleDelete(record: Recordable) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'infra:file-config:delete',
|
auth: 'infra:file-config:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -122,7 +122,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.LOG, label: '调度日志', auth: 'infra:job:query', onClick: handleJobLog.bind(null, record) },
|
{ icon: IconEnum.LOG, label: '调度日志', auth: 'infra:job:query', onClick: handleJobLog.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'infra:job:delete',
|
auth: 'infra:job:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted } from 'vue'
|
import { onMounted } from 'vue'
|
||||||
import { BasicForm, useForm } from '@/components/Form'
|
import { BasicForm, useForm } from '@/components/Form'
|
||||||
import type { FormSchema } from '@/components/From/src/types/form'
|
import type { FormSchema } from '@/components/From'
|
||||||
import { PageWrapper } from '@/components/Page'
|
import { PageWrapper } from '@/components/Page'
|
||||||
import { getConfig, saveConfig } from '@/api/member/point/config'
|
import { getConfig, saveConfig } from '@/api/member/point/config'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
|
|
|
@ -56,7 +56,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:notice:delete',
|
auth: 'system:notice:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -59,7 +59,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:notice:delete',
|
auth: 'system:notice:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -100,7 +100,7 @@ async function handleDelete(record: Recordable) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'mp:account:delete',
|
auth: 'mp:account:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -74,7 +74,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'mp:tag:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'mp:tag:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'mp:tag:delete',
|
auth: 'mp:tag:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -267,7 +267,7 @@ function isChannelExists(channels, channelCode) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'pay:app:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'pay:app:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'pay:app:delete',
|
auth: 'pay:app:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -78,7 +78,7 @@ async function handleRefund(record: Recordable) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: '发起退款',
|
label: '发起退款',
|
||||||
ifShow: () => {
|
ifShow: () => {
|
||||||
return record.payed && !record.payRefundId
|
return record.payed && !record.payRefundId
|
||||||
|
|
|
@ -75,7 +75,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'pay:merchant:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'pay:merchant:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'pay:merchant:delete',
|
auth: 'pay:merchant:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -106,7 +106,7 @@ onMounted(async () => {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dept:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dept:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:dept:delete',
|
auth: 'system:dept:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -83,7 +83,7 @@ watch(
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dict:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dict:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:dict:delete',
|
auth: 'system:dict:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -70,7 +70,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dict:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dict:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:dict:delete',
|
auth: 'system:dict:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -75,7 +75,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:error-code:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:error-code:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:error-code:delete',
|
auth: 'system:error-code:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -59,7 +59,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:mail-account:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:mail-account:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:mail-account:delete',
|
auth: 'system:mail-account:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -76,7 +76,7 @@ async function handleDelete(record: Recordable) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:mail-template:delete',
|
auth: 'system:mail-template:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -77,7 +77,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:menu:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:menu:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:menu:delete',
|
auth: 'system:menu:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -59,7 +59,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:notice:delete',
|
auth: 'system:notice:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -77,7 +77,7 @@ async function handleDelete(record: Recordable) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:notify-template:delete',
|
auth: 'system:notify-template:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -59,7 +59,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:oauth2-client:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:oauth2-client:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:oauth2-client:delete',
|
auth: 'system:oauth2-client:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -42,7 +42,7 @@ async function handleDelete(record: Recordable) {
|
||||||
:actions="[
|
:actions="[
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: '强退',
|
label: '强退',
|
||||||
auth: 'system:oauth2-token:delete',
|
auth: 'system:oauth2-token:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -75,7 +75,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:post:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:post:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:post:delete',
|
auth: 'system:post:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -101,7 +101,7 @@ async function handleDelete(record: Recordable) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:role:delete',
|
auth: 'system:role:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -80,7 +80,7 @@ async function handleDelete(record: Recordable) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:sensitive-word:delete',
|
auth: 'system:sensitive-word:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -60,7 +60,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:sms-channel:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:sms-channel:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:sms-channel:delete',
|
auth: 'system:sms-channel:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -87,7 +87,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:sms-template:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:sms-template:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:sms-template:delete',
|
auth: 'system:sms-template:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -75,7 +75,7 @@ async function handleDelete(record: Recordable) {
|
||||||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:tenant:update', onClick: handleEdit.bind(null, record) },
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:tenant:update', onClick: handleEdit.bind(null, record) },
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:tenant:delete',
|
auth: 'system:tenant:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -64,7 +64,7 @@ async function handleDelete(record: Recordable) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:tenant-package:delete',
|
auth: 'system:tenant-package:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
|
@ -121,7 +121,7 @@ function handleSelect(deptId = '') {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: IconEnum.DELETE,
|
icon: IconEnum.DELETE,
|
||||||
color: 'error',
|
danger: true,
|
||||||
label: t('action.delete'),
|
label: t('action.delete'),
|
||||||
auth: 'system:user:delete',
|
auth: 'system:user:delete',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
Loading…
Reference in New Issue