From 23b1d2c81b82055a2aae61dcf56486a03f2bd49c Mon Sep 17 00:00:00 2001 From: ZJYHX Date: Mon, 21 Apr 2025 15:21:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=80=81=E5=AE=A2=E6=88=B7:=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=A1=B5=E9=9D=A2=E6=8A=98=E7=BA=BF=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E5=8F=98=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/charts/Customer_care_regular.jsx | 7 +++---- src/stores/CustomerStore.js | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/charts/Customer_care_regular.jsx b/src/charts/Customer_care_regular.jsx index a73ca1d..84950a4 100644 --- a/src/charts/Customer_care_regular.jsx +++ b/src/charts/Customer_care_regular.jsx @@ -11,7 +11,6 @@ import { flow } from 'mobx'; const Customer_care_regular = () => { const { orders_store, date_picker_store, customer_store } = useContext(stores_Context); const regular_data = customer_store.regular_data; - const [isCompareLine, setIsCompareLine] = useState(false); // useEffect(() => {}, []); @@ -36,7 +35,7 @@ const Customer_care_regular = () => { customer_store.setSearchValues(obj, form, 'regular_data'); regular_data.data_compare=[]; if (obj.DateDiff1 && obj.DateDiff2){ - setIsCompareLine(true); + regular_data.isCompareLine=true; regular_data.showSum=false; await customer_store.regular_customer_order(); customer_store.regular_customer_order(false,true); @@ -44,7 +43,7 @@ const Customer_care_regular = () => { customer_store.regular_customer_order(true,true,true); } else{ - setIsCompareLine(false); + regular_data.isCompareLine=false; regular_data.showSum=true; customer_store.regular_customer_order(); customer_store.regular_customer_order(true); @@ -117,7 +116,7 @@ const Customer_care_regular = () => { + seriesField='_ylabel' showSUM={regular_data.showSum} solidLineTime={regular_data.solidLineTime} solidLineDash={regular_data.solidLineDash} isCompareLine={regular_data.isCompareLine}/> diff --git a/src/stores/CustomerStore.js b/src/stores/CustomerStore.js index 8b65fef..552cdf5 100644 --- a/src/stores/CustomerStore.js +++ b/src/stores/CustomerStore.js @@ -291,6 +291,7 @@ class CustomerStore { showSum:true, solidLineTime:'', solidLineDash:'老客户推荐', + isCompareLine:false, total_data_tips: '', webcode: 'ALL', site_select_mode: 'multiple',// 站点是否多选