From 92da89d34e555e176912d4f551e4a5cff5679d46 Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Thu, 19 May 2022 10:09:36 +0800 Subject: [PATCH] fix: Fix download share group type 1. Fix download share group type 2. Fix fetch share group params Change-Id: I74cff4d7538e0e90edf655817d5d6f021b9bd8c0 --- src/resources/manila/share-group-type.jsx | 3 +++ src/stores/manila/share-group.js | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/resources/manila/share-group-type.jsx b/src/resources/manila/share-group-type.jsx index 62766c91..d7027990 100644 --- a/src/resources/manila/share-group-type.jsx +++ b/src/resources/manila/share-group-type.jsx @@ -17,6 +17,9 @@ export const shareGroupTypeColumns = [ render: (value) => { return (value || []).map((it) =>
{it.name}
); }, + stringify: (value) => { + return (value || []).map((it) => it.name).join(';') || '-'; + }, }, ]; diff --git a/src/stores/manila/share-group.js b/src/stores/manila/share-group.js index 9cc85946..9f778e83 100644 --- a/src/stores/manila/share-group.js +++ b/src/stores/manila/share-group.js @@ -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; }; }