fix: button antdv 4.0
parent
69d3ef6506
commit
3622c099e9
|
@ -89,7 +89,7 @@ async function handleDelete(record: Recordable) {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'infra:codegen:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'infra:config:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -66,7 +66,7 @@ async function handleDelete(record: Recordable) {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
ifShow: record.id !== 0,
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'infra:file:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -88,7 +88,7 @@ async function handleDelete(record: Recordable) {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'infra:file-config:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'infra:job:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted } from 'vue'
|
||||
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 { getConfig, saveConfig } from '@/api/member/point/config'
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:notice:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:notice:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -100,7 +100,7 @@ async function handleDelete(record: Recordable) {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'mp:account:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'mp:tag:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'pay:app:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -78,7 +78,7 @@ async function handleRefund(record: Recordable) {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: '发起退款',
|
||||
ifShow: () => {
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'pay:merchant:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:dept:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -83,7 +83,7 @@ watch(
|
|||
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dict:update', onClick: handleEdit.bind(null, record) },
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:dict:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:dict:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:error-code:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:mail-account:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -76,7 +76,7 @@ async function handleDelete(record: Recordable) {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:mail-template:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:menu:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:notice:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -77,7 +77,7 @@ async function handleDelete(record: Recordable) {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:notify-template:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:oauth2-client:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -42,7 +42,7 @@ async function handleDelete(record: Recordable) {
|
|||
:actions="[
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: '强退',
|
||||
auth: 'system:oauth2-token:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:post:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -101,7 +101,7 @@ async function handleDelete(record: Recordable) {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:role:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -80,7 +80,7 @@ async function handleDelete(record: Recordable) {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:sensitive-word:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:sms-channel:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:sms-template:delete',
|
||||
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.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:tenant:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -64,7 +64,7 @@ async function handleDelete(record: Recordable) {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:tenant-package:delete',
|
||||
popConfirm: {
|
||||
|
|
|
@ -121,7 +121,7 @@ function handleSelect(deptId = '') {
|
|||
},
|
||||
{
|
||||
icon: IconEnum.DELETE,
|
||||
color: 'error',
|
||||
danger: true,
|
||||
label: t('action.delete'),
|
||||
auth: 'system:user:delete',
|
||||
popConfirm: {
|
||||
|
|
Loading…
Reference in New Issue