@@ -54,6 +54,22 @@ const bizReplace = {
adjust: t('record.userWalletRecord.biz adjust'),
}
+const bizTypeTagCustom = {
+ deposit: 'success',
+ withdraw: 'warning',
+ withdraw_freeze: 'info',
+ withdraw_unfreeze: 'info',
+ platform_in: 'success',
+ platform_out: 'danger',
+ admin_credit: 'success',
+ admin_deduct: 'danger',
+ bet: 'primary',
+ payout: 'success',
+ fee: 'warning',
+ void_refund: 'info',
+ adjust: 'warning',
+}
+
const dirReplace = {
'1': t('record.userWalletRecord.direction in'),
'2': t('record.userWalletRecord.direction out'),
@@ -70,6 +86,7 @@ const baTable = new baTableClass(
prop: 'user_id',
align: 'center',
width: 90,
+ show: false,
operator: 'RANGE',
sortable: false,
},
@@ -100,6 +117,7 @@ const baTable = new baTableClass(
minWidth: 120,
operator: 'eq',
render: 'tag',
+ custom: bizTypeTagCustom,
replaceValue: bizReplace,
},
{
@@ -109,11 +127,36 @@ const baTable = new baTableClass(
width: 90,
operator: 'eq',
render: 'tag',
+ custom: {
+ '1': 'success',
+ '2': 'danger',
+ },
replaceValue: dirReplace,
},
- { label: t('record.userWalletRecord.amount'), prop: 'amount', align: 'center', minWidth: 110, operator: 'RANGE', formatter: formatAmount },
- { label: t('record.userWalletRecord.balance_before'), prop: 'balance_before', align: 'center', minWidth: 110, operator: 'RANGE', formatter: formatAmount },
- { label: t('record.userWalletRecord.balance_after'), prop: 'balance_after', align: 'center', minWidth: 110, operator: 'RANGE', formatter: formatAmount },
+ {
+ label: t('record.userWalletRecord.amount'),
+ prop: 'amount',
+ align: 'center',
+ minWidth: 110,
+ operator: 'RANGE',
+ formatter: formatAmount,
+ },
+ {
+ label: t('record.userWalletRecord.balance_before'),
+ prop: 'balance_before',
+ align: 'center',
+ minWidth: 110,
+ operator: 'RANGE',
+ formatter: formatAmount,
+ },
+ {
+ label: t('record.userWalletRecord.balance_after'),
+ prop: 'balance_after',
+ align: 'center',
+ minWidth: 110,
+ operator: 'RANGE',
+ formatter: formatAmount,
+ },
{
label: t('record.userWalletRecord.ref_type'),
prop: 'ref_type',
@@ -178,5 +221,3 @@ onMounted(() => {
-
-
diff --git a/web/src/views/backend/routine/attachment/index.vue b/web/src/views/backend/routine/attachment/index.vue
index e279069..560878d 100644
--- a/web/src/views/backend/routine/attachment/index.vue
+++ b/web/src/views/backend/routine/attachment/index.vue
@@ -154,10 +154,11 @@ const baTable = new baTableClass(new baTableApi('/admin/routine.Attachment/'), {
{
label: t('Operate'),
align: 'center',
- width: '100',
+ width: '80',
render: 'buttons',
buttons: optBtn,
operator: false,
+ fixed: 'right',
},
],
defaultOrder: { prop: 'last_upload_time', order: 'desc' },
diff --git a/web/src/views/backend/security/dataRecycle/index.vue b/web/src/views/backend/security/dataRecycle/index.vue
index 6ff57e4..53143e5 100644
--- a/web/src/views/backend/security/dataRecycle/index.vue
+++ b/web/src/views/backend/security/dataRecycle/index.vue
@@ -76,6 +76,7 @@ const baTable = new baTableClass(
prop: 'status',
align: 'center',
render: 'tag',
+ effect: 'dark',
custom: { 0: 'danger', 1: 'success' },
replaceValue: { 0: t('Disable'), 1: t('security.dataRecycle.Deleting monitoring') },
},
@@ -84,10 +85,11 @@ const baTable = new baTableClass(
{
label: t('Operate'),
align: 'center',
- width: '130',
+ width: '80',
render: 'buttons',
buttons: defaultOptButtons(['edit', 'delete']),
operator: false,
+ fixed: 'right',
},
],
dblClickNotEditColumn: [undefined, 'status'],
diff --git a/web/src/views/backend/security/dataRecycleLog/index.vue b/web/src/views/backend/security/dataRecycleLog/index.vue
index 99dd328..eee38cc 100644
--- a/web/src/views/backend/security/dataRecycleLog/index.vue
+++ b/web/src/views/backend/security/dataRecycleLog/index.vue
@@ -167,6 +167,7 @@ const baTable = new baTableClass(new baTableApi(url), {
render: 'buttons',
buttons: optButtons,
operator: false,
+ fixed: 'right',
},
],
dblClickNotEditColumn: [undefined],
diff --git a/web/src/views/backend/security/sensitiveData/index.vue b/web/src/views/backend/security/sensitiveData/index.vue
index ed102ca..9b774c3 100644
--- a/web/src/views/backend/security/sensitiveData/index.vue
+++ b/web/src/views/backend/security/sensitiveData/index.vue
@@ -85,6 +85,7 @@ const baTable = new sensitiveDataClass(
prop: 'status',
align: 'center',
render: 'tag',
+ effect: 'dark',
custom: { 0: 'danger', 1: 'success' },
replaceValue: { 0: t('Disable'), 1: t('security.sensitiveData.Modifying monitoring') },
},
@@ -93,10 +94,11 @@ const baTable = new sensitiveDataClass(
{
label: t('Operate'),
align: 'center',
- width: '130',
+ width: '80',
render: 'buttons',
buttons: defaultOptButtons(['edit', 'delete']),
operator: false,
+ fixed: 'right',
},
],
dblClickNotEditColumn: [undefined],
diff --git a/web/src/views/backend/security/sensitiveDataLog/index.vue b/web/src/views/backend/security/sensitiveDataLog/index.vue
index 83d3d64..5248fc8 100644
--- a/web/src/views/backend/security/sensitiveDataLog/index.vue
+++ b/web/src/views/backend/security/sensitiveDataLog/index.vue
@@ -180,6 +180,7 @@ const baTable = new baTableClass(new baTableApi(url), {
render: 'buttons',
buttons: optButtons,
operator: false,
+ fixed: 'right',
},
],
dblClickNotEditColumn: [undefined],