perf: 反馈表显示城市相应的导游

release
Lei OT 1 year ago
parent 8265514bc8
commit d32e55a636

@ -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;

@ -26,7 +26,7 @@ const feedbackListColumns = [
},
{
title: "Guides",
dataIndex: "GriName",
dataIndex: "CityGuide",
},
{
title: "Post Survey",

Loading…
Cancel
Save