|
|
|
@ -41,7 +41,8 @@ class Feedback {
|
|
|
|
|
const allGroup = groupBy(json.Result, "EOI_GRI_SN");
|
|
|
|
|
const filterV = Object.keys(allGroup).reduce((r, gsn) => {
|
|
|
|
|
const v2 = allGroup[gsn].filter(v => v.EOI_CII_SN);
|
|
|
|
|
return r.concat(v2.length > 0 ? v2 : allGroup[gsn]);
|
|
|
|
|
const withAllGuide = allGroup[gsn].map(row => ({...row, CityGuide: row.GriName_AsJOSN.map(rg => `${rg.GuideCity}: ${rg.GuideName}`).join(' ; ')}));
|
|
|
|
|
return r.concat(v2.length > 0 ? v2 : withAllGuide);
|
|
|
|
|
}, [])
|
|
|
|
|
runInAction(() => {
|
|
|
|
|
this.feedbackList = filterV;
|
|
|
|
|