fix: Fix download share group type
1. Fix download share group type 2. Fix fetch share group params Change-Id: I74cff4d7538e0e90edf655817d5d6f021b9bd8c0
This commit is contained in:
parent
fb5e589bf4
commit
92da89d34e
@ -17,6 +17,9 @@ export const shareGroupTypeColumns = [
|
||||
render: (value) => {
|
||||
return (value || []).map((it) => <div key={it.id}>{it.name}</div>);
|
||||
},
|
||||
stringify: (value) => {
|
||||
return (value || []).map((it) => it.name).join(';') || '-';
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -30,10 +30,11 @@ export class ShareGroupStore extends Base {
|
||||
get paramsFuncPage() {
|
||||
return (params) => {
|
||||
const { all_projects, current, keywords, ...rest } = params;
|
||||
return {
|
||||
...rest,
|
||||
all_tenants: all_projects ? 1 : 0,
|
||||
};
|
||||
const newParams = { ...rest };
|
||||
if (all_projects) {
|
||||
newParams.all_tenants = 1;
|
||||
}
|
||||
return newParams;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user