fix:老客户:切换页面折线颜色变换

main
ZJYHX 2 months ago
parent 2fae92fa2a
commit 23b1d2c81b

@ -11,7 +11,6 @@ import { flow } from 'mobx';
const Customer_care_regular = () => { const Customer_care_regular = () => {
const { orders_store, date_picker_store, customer_store } = useContext(stores_Context); const { orders_store, date_picker_store, customer_store } = useContext(stores_Context);
const regular_data = customer_store.regular_data; const regular_data = customer_store.regular_data;
const [isCompareLine, setIsCompareLine] = useState(false);
// useEffect(() => {}, []); // useEffect(() => {}, []);
@ -36,7 +35,7 @@ const Customer_care_regular = () => {
customer_store.setSearchValues(obj, form, 'regular_data'); customer_store.setSearchValues(obj, form, 'regular_data');
regular_data.data_compare=[]; regular_data.data_compare=[];
if (obj.DateDiff1 && obj.DateDiff2){ if (obj.DateDiff1 && obj.DateDiff2){
setIsCompareLine(true); regular_data.isCompareLine=true;
regular_data.showSum=false; regular_data.showSum=false;
await customer_store.regular_customer_order(); await customer_store.regular_customer_order();
customer_store.regular_customer_order(false,true); customer_store.regular_customer_order(false,true);
@ -44,7 +43,7 @@ const Customer_care_regular = () => {
customer_store.regular_customer_order(true,true,true); customer_store.regular_customer_order(true,true,true);
} }
else{ else{
setIsCompareLine(false); regular_data.isCompareLine=false;
regular_data.showSum=true; regular_data.showSum=true;
customer_store.regular_customer_order(); customer_store.regular_customer_order();
customer_store.regular_customer_order(true); customer_store.regular_customer_order(true);
@ -117,7 +116,7 @@ const Customer_care_regular = () => {
<Col span={24}> <Col span={24}>
<LineWithAvg dataSource={regular_data.pivotData} loading={regular_data.detail_loading} xField={regular_data.pivotX} yField={regular_data.pivotY} <LineWithAvg dataSource={regular_data.pivotData} loading={regular_data.detail_loading} xField={regular_data.pivotX} yField={regular_data.pivotY}
seriesField='_ylabel' showSUM={regular_data.showSum} solidLineTime={regular_data.solidLineTime} solidLineDash={regular_data.solidLineDash} isCompareLine={isCompareLine}/> seriesField='_ylabel' showSUM={regular_data.showSum} solidLineTime={regular_data.solidLineTime} solidLineDash={regular_data.solidLineDash} isCompareLine={regular_data.isCompareLine}/>
</Col> </Col>
<Col span={24}> <Col span={24}>

@ -291,6 +291,7 @@ class CustomerStore {
showSum:true, showSum:true,
solidLineTime:'', solidLineTime:'',
solidLineDash:'老客户推荐', solidLineDash:'老客户推荐',
isCompareLine:false,
total_data_tips: '', total_data_tips: '',
webcode: 'ALL', webcode: 'ALL',
site_select_mode: 'multiple',// 站点是否多选 site_select_mode: 'multiple',// 站点是否多选

Loading…
Cancel
Save