diff --git a/src/App.jsx b/src/App.jsx index 5d8f884..d6c2687 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -27,6 +27,7 @@ import ProtectedRoute from './views/ProtectedRoute'; import Customer_care_inchina from './charts/Customer_care_inchina'; import Customer_care_potential from './charts/Customer_care_potential'; import Customer_care_regular from './charts/Customer_care_regular'; +import Customer_care_regular_pivot from './charts/Customer_care_regular_pivot'; import Wechat_session from './charts/Wechat_session'; import WhatsApp_session from './charts/WhatsApp_session'; import AgentGroupCount from './views/AgentGroupCount'; @@ -48,7 +49,6 @@ import DataPivot from './views/DataPivot'; import Welcome from './views/Welcome'; import Meeting2024GH from './views/Meeting2024-GH'; import Meeting2025GH from './views/Meeting2025-GH'; -import SalesCustomerCareRegular from './views/SalesCustomerCareRegular'; import { stores_Context, APP_VERSION } from './config'; import { WaterMark } from '@ant-design/pro-components'; import CooperationIcon from './components/icons/CooperationIcon'; @@ -128,7 +128,7 @@ const App = () => { key: 32, label: 老客户, }, - { key: 'customer_care_regular_sales', label: 老客户-分析 }, + { key: 'customer_care_regular_pivot', label: 老客户-分析 }, { key: 33, label: 在华客户, @@ -257,7 +257,7 @@ const App = () => { }> } /> } /> - } /> + } /> } /> } /> } /> diff --git a/src/views/SalesCustomerCareRegular.jsx b/src/charts/Customer_care_regular_pivot.jsx similarity index 95% rename from src/views/SalesCustomerCareRegular.jsx rename to src/charts/Customer_care_regular_pivot.jsx index 158e140..e748422 100644 --- a/src/views/SalesCustomerCareRegular.jsx +++ b/src/charts/Customer_care_regular_pivot.jsx @@ -3,8 +3,8 @@ import { observer } from 'mobx-react'; import { stores_Context } from '../config'; import { Table, Row, Col, Divider, Switch, Space, Tabs } from 'antd'; import SearchForm from '../components/search/SearchForm'; -import { TableExportBtn, VSTag } from './../components/Data'; -import { fixTo2Decimals, isEmpty } from './../utils/commons'; +import { TableExportBtn, VSTag } from '../components/Data'; +import { fixTo2Decimals, isEmpty } from '../utils/commons'; // 注意TdCell要提到DataTable作用域外声明 const TdCell = (tdprops) => { @@ -13,7 +13,7 @@ const TdCell = (tdprops) => { return ; }; -const SalesCustomerCareRegular = (props) => { +const CustomerCareRegularPivot = (props) => { const { date_picker_store: searchFormStore, customer_store } = useContext(stores_Context); const { formValues, formValuesToSub, siderBroken } = searchFormStore; const { pivotData: pageData } = customer_store.sales_regular_data; @@ -199,4 +199,4 @@ const SalesCustomerCareRegular = (props) => { ); }; -export default observer(SalesCustomerCareRegular); +export default observer(CustomerCareRegularPivot);