From e53f241d1071fe0d4061bb99f0836c6c6dbfb006 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 14 Oct 2024 14:43:03 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=80=81=E5=AE=A2=E6=88=B7:=20?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=90=8C=E6=97=B6=E5=8B=BE=E9=80=89=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE,=20=E5=AD=98=E5=9C=A8=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E8=AE=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/charts/Customer_care_regular.jsx | 22 +++++++++++++++++++--- src/stores/CustomerStore.js | 3 +++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/charts/Customer_care_regular.jsx b/src/charts/Customer_care_regular.jsx index c901415..bf0833e 100644 --- a/src/charts/Customer_care_regular.jsx +++ b/src/charts/Customer_care_regular.jsx @@ -1,5 +1,6 @@ import React, { useContext, useEffect } from 'react'; -import { Row, Col, Divider, Table } from 'antd'; +import { Row, Col, Divider, Table, Tooltip } from 'antd'; +import { InfoCircleOutlined } from '@ant-design/icons'; import { utils, writeFileXLSX } from 'xlsx'; import { stores_Context } from '../config'; import { observer } from 'mobx-react'; @@ -13,7 +14,7 @@ const Customer_care_regular = () => { return (
- + { key: 'ItemName', }, { - title: '订单数', + title: () => ( + <> + 订单数{' '} + + + + + ), dataIndex: 'OrderNum', key: 'OrderNum', + render: (text, record, index) => ( + <> + {text}   + { + {index === 0 && regular_data.total_data_tips!=='' && } + } + + ), }, { title: '成行数', diff --git a/src/stores/CustomerStore.js b/src/stores/CustomerStore.js index b74284e..598263b 100644 --- a/src/stores/CustomerStore.js +++ b/src/stores/CustomerStore.js @@ -125,6 +125,8 @@ class CustomerStore { runInAction(() => { if (get_detail) { this.regular_data.data_detail = json; + const dump_l = json.filter(ele => ele.COLI_IsOld !== '' && ele.COLI_IsCusCommend !== '').length; + this.regular_data.total_data_tips = dump_l > 0 ? `包含 ${dump_l} 条同时勾选的数据` : ''; } else { this.regular_data.data = json; } @@ -157,6 +159,7 @@ class CustomerStore { loading: false, data: [], data_detail: [], + total_data_tips: '', webcode: 'ALL', site_select_mode: 'multiple',// 站点是否多选 group_select_mode: 'multiple',// 是否多选分组