diff --git a/src/stores/Feedback.js b/src/stores/Feedback.js index ba0f7c1..38b561d 100644 --- a/src/stores/Feedback.js +++ b/src/stores/Feedback.js @@ -18,6 +18,7 @@ class Feedback { feedbackRate = []; //反馈评分 feedbackReview = []; //站外好评 feedbackInfo = []; //地接社反馈的信息 + feedbackServiceRate = {}; // 反馈评分, 含细项的版本 onDateRangeChange = dates => { console.log(dates); @@ -98,8 +99,7 @@ class Feedback { const cityName = json.group[0]?.cityName || ''; runInAction(() => { - this.feedbackRate = {...serviceItem, OtherThoughts, PhotoPermission, signatureData, cityName }; - // this.feedbackReview = json.Result1; + this.feedbackServiceRate = {...serviceItem, OtherThoughts, PhotoPermission, signatureData, cityName }; }); }) .catch(error => { diff --git a/src/views/feedback/CustomerDetail.jsx b/src/views/feedback/CustomerDetail.jsx index 3a1ff64..dc39bc7 100644 --- a/src/views/feedback/CustomerDetail.jsx +++ b/src/views/feedback/CustomerDetail.jsx @@ -12,13 +12,14 @@ function Detail() { const navigate = useNavigate(); const { GRI_SN, RefNo, CII_SN } = useParams(); const { feedbackStore, authStore } = useStore(); - const { feedbackRate, feedbackReview, feedbackImages, feedbackInfo } = feedbackStore; + const { feedbackReview, feedbackImages, feedbackInfo, feedbackServiceRate: feedbackRate } = feedbackStore; const desc = ["none", "Unacceptable", "Poor", "Fair", "Very Good", "Excellent"]; const { notification } = App.useApp(); const [form] = Form.useForm(); useEffect(() => { console.info("Detail.useEffect: " + GRI_SN); + feedbackStore.getFeedbackDetail(authStore.login.travelAgencyId, GRI_SN); feedbackStore.getCustomerFeedbackDetail(authStore.login.travelAgencyId, GRI_SN, CII_SN); feedbackStore.getFeedbackImages(authStore.login.travelAgencyId, GRI_SN); feedbackStore.getFeedbackInfo(authStore.login.travelAgencyId, GRI_SN).then(v => { @@ -82,7 +83,7 @@ function Detail() { - Post Survey {RefNo} for {cityName}}> + Post Survey {RefNo} in {cityName}}>
How satisfied were you with your tour guide? {HWO_Guide.map(ele => (