Browse Source

fix: button antdv 4.0

main
xingyu 2 years ago
parent
commit
3622c099e9
  1. 2
      src/views/infra/codegen/index.vue
  2. 2
      src/views/infra/config/index.vue
  3. 2
      src/views/infra/dataSourceConfig/index.vue
  4. 2
      src/views/infra/file/index.vue
  5. 2
      src/views/infra/fileConfig/index.vue
  6. 2
      src/views/infra/job/index.vue
  7. 2
      src/views/member/point/config/index.vue
  8. 2
      src/views/member/signin/config/index.vue
  9. 2
      src/views/member/tag/index.vue
  10. 2
      src/views/mp/account/index.vue
  11. 2
      src/views/mp/tag/index.vue
  12. 2
      src/views/pay/app/index.vue
  13. 2
      src/views/pay/demo/index.vue
  14. 2
      src/views/pay/merchant/index.vue
  15. 2
      src/views/system/dept/index.vue
  16. 2
      src/views/system/dict/DictData.vue
  17. 2
      src/views/system/dict/index.vue
  18. 2
      src/views/system/errorCode/index.vue
  19. 2
      src/views/system/mail/account/index.vue
  20. 2
      src/views/system/mail/template/index.vue
  21. 2
      src/views/system/menu/index.vue
  22. 2
      src/views/system/notice/index.vue
  23. 2
      src/views/system/notify/template/index.vue
  24. 2
      src/views/system/oauth2/client/index.vue
  25. 2
      src/views/system/oauth2/token/index.vue
  26. 2
      src/views/system/post/index.vue
  27. 2
      src/views/system/role/index.vue
  28. 2
      src/views/system/sensitiveWord/index.vue
  29. 2
      src/views/system/sms/channel/index.vue
  30. 2
      src/views/system/sms/template/index.vue
  31. 2
      src/views/system/tenant/index.vue
  32. 2
      src/views/system/tenantPackage/index.vue
  33. 2
      src/views/system/user/index.vue

2
src/views/infra/codegen/index.vue

@ -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: {

2
src/views/infra/config/index.vue

@ -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: {

2
src/views/infra/dataSourceConfig/index.vue

@ -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',

2
src/views/infra/file/index.vue

@ -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: {

2
src/views/infra/fileConfig/index.vue

@ -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: {

2
src/views/infra/job/index.vue

@ -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: {

2
src/views/member/point/config/index.vue

@ -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'

2
src/views/member/signin/config/index.vue

@ -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: {

2
src/views/member/tag/index.vue

@ -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: {

2
src/views/mp/account/index.vue

@ -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: {

2
src/views/mp/tag/index.vue

@ -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: {

2
src/views/pay/app/index.vue

@ -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: {

2
src/views/pay/demo/index.vue

@ -78,7 +78,7 @@ async function handleRefund(record: Recordable) {
},
{
icon: IconEnum.DELETE,
color: 'error',
danger: true,
label: '发起退款',
ifShow: () => {
return record.payed && !record.payRefundId

2
src/views/pay/merchant/index.vue

@ -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: {

2
src/views/system/dept/index.vue

@ -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: {

2
src/views/system/dict/DictData.vue

@ -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: {

2
src/views/system/dict/index.vue

@ -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: {

2
src/views/system/errorCode/index.vue

@ -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: {

2
src/views/system/mail/account/index.vue

@ -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: {

2
src/views/system/mail/template/index.vue

@ -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: {

2
src/views/system/menu/index.vue

@ -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: {

2
src/views/system/notice/index.vue

@ -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: {

2
src/views/system/notify/template/index.vue

@ -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: {

2
src/views/system/oauth2/client/index.vue

@ -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: {

2
src/views/system/oauth2/token/index.vue

@ -42,7 +42,7 @@ async function handleDelete(record: Recordable) {
:actions="[
{
icon: IconEnum.DELETE,
color: 'error',
danger: true,
label: '强退',
auth: 'system:oauth2-token:delete',
popConfirm: {

2
src/views/system/post/index.vue

@ -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: {

2
src/views/system/role/index.vue

@ -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: {

2
src/views/system/sensitiveWord/index.vue

@ -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: {

2
src/views/system/sms/channel/index.vue

@ -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: {

2
src/views/system/sms/template/index.vue

@ -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: {

2
src/views/system/tenant/index.vue

@ -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: {

2
src/views/system/tenantPackage/index.vue

@ -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: {

2
src/views/system/user/index.vue

@ -121,7 +121,7 @@ function handleSelect(deptId = '') {
},
{
icon: IconEnum.DELETE,
color: 'error',
danger: true,
label: t('action.delete'),
auth: 'system:user:delete',
popConfirm: {