From bc4a79bdf26543f915b2b24b1e7c972dadcddf50 Mon Sep 17 00:00:00 2001 From: YCC Date: Thu, 25 Apr 2024 13:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E7=BB=88=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.js | 2 +- src/stores/Report.js | 12 ++++++------ src/views/report/Index.jsx | 6 +++++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/config.js b/src/config.js index 930f853..acc2de0 100644 --- a/src/config.js +++ b/src/config.js @@ -1,7 +1,7 @@ import React from "react"; import dayjs from "dayjs"; -export const HT_HOST = process.env.NODE_ENV == "production" ? "https://p9axztuwd7x8a7.mycht.cn" :"http://202.103.68.144:890"; //"http://202.103.68.231:889"; +export const HT_HOST = process.env.NODE_ENV == "production" ? "https://p9axztuwd7x8a7.mycht.cn" :"http://202.103.68.231:889"; //"http://202.103.68.144:890"; export const DATE_FORMAT = "YYYY-MM-DD"; export const DATE_FORMAT_MONTH = "YYYY-MM"; export const DATE_PRESETS = [ diff --git a/src/stores/Report.js b/src/stores/Report.js index f2f9528..45e075c 100644 --- a/src/stores/Report.js +++ b/src/stores/Report.js @@ -26,8 +26,8 @@ class Report { }; getHWVendorScores(VEI_SN, StartDate, EndDate) { - this.loading = true; //HT_HOST + - const fetchUrl = prepareUrl("http://202.103.68.231:889/service-cusservice/PTGetHWVendorScores") + this.loading = true; + const fetchUrl = prepareUrl(HT_HOST +"/service-cusservice/PTGetHWVendorScores") .append("VEI_SN", VEI_SN) .append("StartDate", StartDate) .append("EndDate", EndDate) @@ -54,8 +54,8 @@ class Report { } getHWProductScores(VEI_SN, StartDate, EndDate) { - this.loading = true; //HT_HOST + - const fetchUrl = prepareUrl("http://202.103.68.231:889/service-cusservice/PTGetHWProductScores") + this.loading = true; + const fetchUrl = prepareUrl(HT_HOST +"/service-cusservice/PTGetHWProductScores") .append("VEI_SN", VEI_SN) .append("StartDate", StartDate) .append("EndDate", EndDate) @@ -82,8 +82,8 @@ class Report { } getHWCommendScores(VEI_SN, StartDate, EndDate) { - this.loading = true; //HT_HOST + - const fetchUrl = prepareUrl("http://202.103.68.231:889/service-cusservice/PTGetHWCommendScores") + this.loading = true; + const fetchUrl = prepareUrl(HT_HOST +"/service-cusservice/PTGetHWCommendScores") .append("VEI_SN", VEI_SN) .append("StartDate", StartDate) .append("EndDate", EndDate) diff --git a/src/views/report/Index.jsx b/src/views/report/Index.jsx index 7c2e632..e696531 100644 --- a/src/views/report/Index.jsx +++ b/src/views/report/Index.jsx @@ -441,7 +441,7 @@ function Index() { - DMC Services + DMC Services Guide {evaluationScores.FRTGuide} {evaluationScores.FRTText} @@ -455,6 +455,10 @@ function Index() { Food Arrangement {evaluationScores.FRTMeal} + + Activity + {evaluationScores.FRTProduct} + Itinerary Arrangements