Skip to content

Commit c919e90

Browse files
fit2cloudwxxfit2-zhao
authored andcommitted
feat: transfer permission
1 parent f6ce7f5 commit c919e90

File tree

12 files changed

+28
-18
lines changed

12 files changed

+28
-18
lines changed

frontend/packages/mobile/src/views/clue/clue/detail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
{
111111
key: 'transfer',
112112
text: t('common.transfer'),
113-
permission: ['CLUE_MANAGEMENT:UPDATE'],
113+
permission: ['CLUE_MANAGEMENT:TRANSFER'],
114114
},
115115
{
116116
key: 'moveToPool',

frontend/packages/mobile/src/views/clue/clue/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
{
173173
label: t('common.transfer'),
174174
icon: 'iconicon_jump',
175-
permission: ['CLUE_MANAGEMENT:UPDATE'],
175+
permission: ['CLUE_MANAGEMENT:TRANSFER'],
176176
action: (item: ClueListItem) => {
177177
handleTransfer(item.id);
178178
},

frontend/packages/mobile/src/views/customer/components/customer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
key: 'transfer',
132132
label: t('common.transfer'),
133133
icon: 'iconicon_jump',
134-
permission: ['CUSTOMER_MANAGEMENT:UPDATE'],
134+
permission: ['CUSTOMER_MANAGEMENT:TRANSFER'],
135135
action: (item: any) => {
136136
router.push({
137137
name: CustomerRouteEnum.CUSTOMER_TRANSFER,

frontend/packages/mobile/src/views/customer/detail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
{
145145
key: 'transfer',
146146
text: t('common.transfer'),
147-
permission: ['CUSTOMER_MANAGEMENT:UPDATE'],
147+
permission: ['CUSTOMER_MANAGEMENT:TRANSFER'],
148148
},
149149
{
150150
key: 'delete',

frontend/packages/mobile/src/views/opportunity/detail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
{
170170
key: 'transfer',
171171
text: t('common.transfer'),
172-
permission: ['OPPORTUNITY_MANAGEMENT:UPDATE'],
172+
permission: ['OPPORTUNITY_MANAGEMENT:TRANSFER'],
173173
},
174174
];
175175

frontend/packages/mobile/src/views/opportunity/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
{
148148
label: t('common.transfer'),
149149
icon: 'iconicon_jump',
150-
permission: ['OPPORTUNITY_MANAGEMENT:UPDATE'],
150+
permission: ['OPPORTUNITY_MANAGEMENT:TRANSFER'],
151151
action: (item: OpportunityItem) => {
152152
handleTransfer(item.id);
153153
},

frontend/packages/web/src/views/clueManagement/clue/components/clueOverviewDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
{
265265
label: t('common.transfer'),
266266
key: 'transfer',
267-
permission: ['CLUE_MANAGEMENT:UPDATE'],
267+
permission: ['CLUE_MANAGEMENT:TRANSFER'],
268268
text: false,
269269
ghost: true,
270270
class: 'n-btn-outline-primary',

frontend/packages/web/src/views/clueManagement/clue/components/clueTable.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
{
232232
label: t('common.batchTransfer'),
233233
key: 'batchTransfer',
234-
permission: ['CLUE_MANAGEMENT:UPDATE'],
234+
permission: ['CLUE_MANAGEMENT:TRANSFER'],
235235
},
236236
{
237237
label: t('clue.moveIntoCluePool'),
@@ -529,7 +529,7 @@
529529
{
530530
label: t('common.transfer'),
531531
key: 'transfer',
532-
permission: ['CLUE_MANAGEMENT:UPDATE'],
532+
permission: ['CLUE_MANAGEMENT:TRANSFER'],
533533
popConfirmProps: {
534534
loading: transferLoading.value,
535535
title: t('common.transfer'),
@@ -578,7 +578,12 @@
578578
);
579579
},
580580
},
581-
permission: ['CLUE_MANAGEMENT:RECYCLE', 'CLUE_MANAGEMENT:DELETE', 'CLUE_MANAGEMENT:UPDATE'],
581+
permission: [
582+
'CLUE_MANAGEMENT:RECYCLE',
583+
'CLUE_MANAGEMENT:DELETE',
584+
'CLUE_MANAGEMENT:UPDATE',
585+
'CLUE_MANAGEMENT:TRANSFER',
586+
],
582587
hiddenTotal: ref(!!props.hiddenTotal),
583588
readonly: props.readonly,
584589
});

frontend/packages/web/src/views/customer/components/customerOverviewDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
text: false,
170170
ghost: true,
171171
class: 'n-btn-outline-primary',
172-
permission: ['CUSTOMER_MANAGEMENT:UPDATE'],
172+
permission: ['CUSTOMER_MANAGEMENT:TRANSFER'],
173173
popConfirmProps: {
174174
loading: transferLoading.value,
175175
title: t('common.transfer'),

frontend/packages/web/src/views/customer/components/customerTable.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
{
225225
label: t('common.batchTransfer'),
226226
key: 'batchTransfer',
227-
permission: ['CUSTOMER_MANAGEMENT:UPDATE'],
227+
permission: ['CUSTOMER_MANAGEMENT:TRANSFER'],
228228
},
229229
{
230230
label: t('customer.moveToOpenSea'),
@@ -469,7 +469,7 @@
469469
},
470470
popSlotName: 'transferPopTitle',
471471
popSlotContent: 'transferPopContent',
472-
permission: ['CUSTOMER_MANAGEMENT:UPDATE'],
472+
permission: ['CUSTOMER_MANAGEMENT:TRANSFER'],
473473
},
474474
{
475475
label: 'more',
@@ -594,7 +594,12 @@
594594
);
595595
},
596596
},
597-
permission: ['CUSTOMER_MANAGEMENT:RECYCLE', 'CUSTOMER_MANAGEMENT:UPDATE', 'CUSTOMER_MANAGEMENT:DELETE'],
597+
permission: [
598+
'CUSTOMER_MANAGEMENT:RECYCLE',
599+
'CUSTOMER_MANAGEMENT:UPDATE',
600+
'CUSTOMER_MANAGEMENT:DELETE',
601+
'CUSTOMER_MANAGEMENT:TRANSFER',
602+
],
598603
containerClass: '.crm-customer-table',
599604
hiddenTotal: ref(!!props.hiddenTotal),
600605
readonly: props.readonly,

0 commit comments

Comments
 (0)