From 9a377c8aa4da0aa244d58ee6cb9a5abdd4aae152 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Fri, 26 Jan 2024 15:28:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=E7=9A=84=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AuthApp.jsx | 22 +++++++------- src/views/OrderFollow.jsx | 54 ++++++++++++++++++----------------- src/views/SalesManagement.jsx | 13 ++------- 3 files changed, 41 insertions(+), 48 deletions(-) diff --git a/src/views/AuthApp.jsx b/src/views/AuthApp.jsx index 245821a..7cddf5d 100644 --- a/src/views/AuthApp.jsx +++ b/src/views/AuthApp.jsx @@ -1,16 +1,16 @@ -import { Outlet, Link, useHref, NavLink } from 'react-router-dom'; -import { Layout, Menu, ConfigProvider, theme, Empty, Row, Col, Avatar, Dropdown, Space, Typography, App as AntApp } from 'antd'; -import { DownOutlined } from '@ant-design/icons'; -import ErrorBoundary from '@/components/ErrorBoundary'; -import zhLocale from 'antd/locale/zh_CN'; -import { useThemeContext } from '@/stores/ThemeContext'; +import { Outlet, Link, useHref, NavLink } from 'react-router-dom' +import { Layout, Menu, ConfigProvider, theme, Empty, Row, Col, Avatar, Dropdown, Space, Typography, App as AntApp } from 'antd' +import { DownOutlined } from '@ant-design/icons' +import ErrorBoundary from '@/components/ErrorBoundary' +import zhLocale from 'antd/locale/zh_CN' +import { useThemeContext } from '@/stores/ThemeContext' import { useAuthContext } from '@/stores/AuthContext' -import 'dayjs/locale/zh-cn'; +import 'dayjs/locale/zh-cn' import 'react-chat-elements/dist/main.css' -import '@/assets/App.css'; -import AppLogo from '@/assets/logo-gh.png'; -import { isEmpty } from '@/utils/commons'; +import '@/assets/App.css' +import AppLogo from '@/assets/logo-gh.png' +import { isEmpty } from '@/utils/commons' const { Header, Footer, Content } = Layout const { Title } = Typography @@ -90,7 +90,7 @@ function AuthApp() { trigger={['click']} > e.preventDefault()} style={{ color: colorPrimary }}> - 廖一军 + 廖一军 diff --git a/src/views/OrderFollow.jsx b/src/views/OrderFollow.jsx index f18ad8c..cc3b7c4 100644 --- a/src/views/OrderFollow.jsx +++ b/src/views/OrderFollow.jsx @@ -1,10 +1,21 @@ -import { memo, useCallback, useEffect, useState } from 'react' -import { - Badge, Divider, Table, Button, Input, - Space, Tag, Radio, Select, Flex, Form, Switch, DatePicker, App -} from 'antd' import { Conditional } from '@/components/Conditional' import { useAuthContext } from '@/stores/AuthContext' +import { + App, + Badge, + Button, + DatePicker, + Divider, + Flex, Form, + Input, + Radio, Select, + Space, + Switch, + Table, + Tag +} from 'antd' +import { memo, useCallback, useEffect, useState } from 'react' +import { NavLink } from 'react-router-dom' const { RangePicker } = DatePicker @@ -17,7 +28,7 @@ const AdvanceSearchForm = memo(function ({ onSubmit }) {
@@ -80,7 +82,7 @@ const AdvanceSearchForm = memo(function ({ onSubmit }) { - + @@ -97,11 +99,11 @@ function OrderList({ formValues }) { title: '订单号', dataIndex: 'COLI_ID', width: 222, - render: (text, record, index) => { - if (record.COLI_LineGrade === 240003) return {text}重点 - else if (record.COLI_LineGrade === 240002) return {text}潜力 - else if (record.COLI_LineGrade === 240001) return {text}休眠 - else return {text} + render: (text, record) => { + if (record.COLI_LineGrade === 240003) return {text}重点 + else if (record.COLI_LineGrade === 240002) return {text}潜力 + else if (record.COLI_LineGrade === 240001) return {text}休眠 + else return {text} } }, { @@ -111,8 +113,8 @@ function OrderList({ formValues }) { let regularText = '' if (record.buytime > 0) regularText = '(R' + record.buytime + ')' return ( - - {text + regularText} + + {text + regularText}