From d4a5ded6c4732733b495d8ad2cd29c38b70f3722 Mon Sep 17 00:00:00 2001 From: mhy <2624196756@qq.com> Date: Thu, 5 Dec 2024 19:31:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 13 +- .../BasicsInput/BasicsInput.module.less | 10 + src/components/BasicsInput/BasicsInput.tsx | 24 +++ src/components/BasicsModal/BasicsModal.tsx | 3 +- .../BasicsSelect/BasicsSelect.module.less | 26 +++ src/components/BasicsSelect/BasicsSelect.tsx | 20 ++ .../BasicsTable/BasicsTable.module.less | 54 +++++ src/components/BasicsTable/BasicsTable.tsx | 122 +++++++++++ src/components/Modal1/Modal1.tsx | 2 +- src/index.css | 31 --- src/index.less | 36 ++++ src/main.tsx | 2 +- .../DataReport/DataReport.module.less | 3 + .../CompletePeriod/DataReport/DataReport.tsx | 106 +++++++++ .../pages/CompletePeriod/index.tsx | 204 ++++++++++-------- .../IntegratedCommand/pages/Map/index.tsx | 1 - 16 files changed, 526 insertions(+), 131 deletions(-) create mode 100644 src/components/BasicsInput/BasicsInput.module.less create mode 100644 src/components/BasicsInput/BasicsInput.tsx create mode 100644 src/components/BasicsSelect/BasicsSelect.module.less create mode 100644 src/components/BasicsSelect/BasicsSelect.tsx create mode 100644 src/components/BasicsTable/BasicsTable.module.less create mode 100644 src/components/BasicsTable/BasicsTable.tsx delete mode 100644 src/index.css create mode 100644 src/index.less create mode 100644 src/pages/IntegratedCommand/pages/CompletePeriod/DataReport/DataReport.module.less create mode 100644 src/pages/IntegratedCommand/pages/CompletePeriod/DataReport/DataReport.tsx diff --git a/src/api/index.ts b/src/api/index.ts index 054985a..cc58c6c 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -54,4 +54,15 @@ export async function rubbishStatisc(dateType: 'day' | 'month') { // 违规驾驶报警统计 export async function outLineStatisc() { return request.post(handleGateway('/supervisoryCommand/drivingAlarmMonth', '/element')) -} \ No newline at end of file +} + +// 获取垃圾车类型 +export async function carTypeOptions(id: string) { + return request.post(handleGateway('/supervisoryCommand/findGarbageCarTypeOptions?garbageTypeIds=' + id, '/element')) +} + +// 获取垃圾列表 +export async function rubbishPageList(data: any) { + return request.postForm(handleGateway('/supervisoryCommand/garbageWeightChangeForCar', '/element'), data) +} + diff --git a/src/components/BasicsInput/BasicsInput.module.less b/src/components/BasicsInput/BasicsInput.module.less new file mode 100644 index 0000000..9d922f0 --- /dev/null +++ b/src/components/BasicsInput/BasicsInput.module.less @@ -0,0 +1,10 @@ +.inp { + height: 80px; + border-radius: 15px; + background-color: rgba(38, 99, 156, 0.3); + color: #fff; + + &::placeholder { + color: gray; + } +} \ No newline at end of file diff --git a/src/components/BasicsInput/BasicsInput.tsx b/src/components/BasicsInput/BasicsInput.tsx new file mode 100644 index 0000000..53c0751 --- /dev/null +++ b/src/components/BasicsInput/BasicsInput.tsx @@ -0,0 +1,24 @@ +import { Input, InputProps, ConfigProvider } from "antd" +import styles from './BasicsInput.module.less' +import { FC } from "react" + +type BasicsInputProps = InputProps +const BasicsInput: FC = ({ className, ...props }) => { + return + + +} + +export default BasicsInput \ No newline at end of file diff --git a/src/components/BasicsModal/BasicsModal.tsx b/src/components/BasicsModal/BasicsModal.tsx index b99eaf5..8e0c566 100644 --- a/src/components/BasicsModal/BasicsModal.tsx +++ b/src/components/BasicsModal/BasicsModal.tsx @@ -15,11 +15,12 @@ const BasicsModal: FC = (props) => { style={{ minWidth: modalProps.width }} - destroyOnClose getContainer={() => document.querySelector('#root') as HTMLElement} classNames={{ content: styles.content }} + destroyOnClose + centered {...modalProps} > {children} diff --git a/src/components/BasicsSelect/BasicsSelect.module.less b/src/components/BasicsSelect/BasicsSelect.module.less new file mode 100644 index 0000000..9da2a31 --- /dev/null +++ b/src/components/BasicsSelect/BasicsSelect.module.less @@ -0,0 +1,26 @@ +.select { + height: 80px; + + + :global { + .ant-select-selector { + background: rgba(38, 99, 156, 0.3) !important; + color: #fff; + font-size: 30px; + border-radius: 15px; + + .ant-select-selection-search { + .ant-select-selection-search-input { + height: 100%; + font-size: inherit; + } + } + + &::placeholder, + .ant-select-selection-placeholder { + color: gray; + + } + } + } +} \ No newline at end of file diff --git a/src/components/BasicsSelect/BasicsSelect.tsx b/src/components/BasicsSelect/BasicsSelect.tsx new file mode 100644 index 0000000..2344901 --- /dev/null +++ b/src/components/BasicsSelect/BasicsSelect.tsx @@ -0,0 +1,20 @@ +import { ConfigProvider, Select, SelectProps } from "antd" +import styles from './BasicsSelect.module.less' +import { FC } from "react" + +type BasicsSelectProps = SelectProps +const BasicsSelect: FC = ({ className, ...props }) => { + return +