diff --git a/src/api/index.ts b/src/api/index.ts index 054985a9fd8b3af1c34c5ad6e9fb6f69c0dd8d95..cc58c6c9bb0707e17ff8f42aa10f02bec4804936 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 0000000000000000000000000000000000000000..9d922f07995337efad291707b45efb781d02b65c --- /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 0000000000000000000000000000000000000000..53c0751416ddc21406188f39e2347b05cc53aeac --- /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 b99eaf582c8d241363a16b86d687599a62374f25..8e0c566c83287d21fc22b7bc816e8b1f34593b6a 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 0000000000000000000000000000000000000000..9da2a31e183e3cbfa15291fd8125fb26a950362a --- /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 0000000000000000000000000000000000000000..2344901eb83b4468e16640e5743a4f629164cef3 --- /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 +