From 2764916039e76e7002577e78347746172f560c41 Mon Sep 17 00:00:00 2001 From: wanghx Date: Tue, 12 Dec 2023 18:09:59 +0800 Subject: [PATCH] =?UTF-8?q?fix():=20=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/components/Export/ExportBtnNew/index.jsx | 37 ++--------- src/components/Export/ExportBtnNew/index.scss | 5 ++ src/config/character.config.js | 4 +- .../ArrearageAly/ParkArrear/index.jsx | 2 +- .../ParkingIncomeAly/ArrearageAly/loadable.jsx | 3 +- .../ArrearageRecoverAly/loadable.jsx | 2 +- .../ParkingIncomeAly/CityArrearageAly/loadable.jsx | 2 +- .../ParkingIncomeAly/CityIncomeAly/loadable.jsx | 28 +++++++- .../OrderArrearageAly/loadable.jsx | 3 +- .../ParkingIncomeAly/PriceAly/loadable.jsx | 4 +- src/pages/InRoadMgm/EquipmentMgm/BarMgm/index.scss | 8 +++ .../InRoadMgm/EquipmentMgm/BarMgm/loadable.jsx | 16 ++++- .../EquipmentMgm/EquipmentStatus/Device/index.jsx | 76 ++++++++++++++-------- .../EquipmentMgm/EquipmentStatus/Device/index.scss | 8 +++ .../SystemMgm/AreaManage/ModalAreaAdd/index.jsx | 2 +- src/pages/SystemMgm/OrgnizationMgm/loadable.jsx | 33 +++++----- 17 files changed, 145 insertions(+), 89 deletions(-) diff --git a/package.json b/package.json index 7f594ed..45e9876 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "antd": "^4.21.4", "autoprefixer": "^10.4.2", "babel-loader": "^8.2.3", + "bignumber.js": "^9.1.2", "clean-webpack-plugin": "^4.0.0", "copy-webpack-plugin": "^9.1.0", "cross-env": "^7.0.3", diff --git a/src/components/Export/ExportBtnNew/index.jsx b/src/components/Export/ExportBtnNew/index.jsx index fbd18eb..4dd006b 100644 --- a/src/components/Export/ExportBtnNew/index.jsx +++ b/src/components/Export/ExportBtnNew/index.jsx @@ -67,7 +67,7 @@ function ExportBtn(props) { const [percent, setPercent] = useState(0); // 选项 - const [checkedType, setCheckedType] = useState("1"); + const [checkedType, setCheckedType] = useState("2"); // 输入最小值 const [min, setMin] = useState(1); @@ -80,7 +80,7 @@ function ExportBtn(props) { if (val === exportType) return; setMaxExportNum(val === "hasImg" ? 10000 : 100000); setExportType(val); - setCheckedType("1"); + setCheckedType("2"); setMin(1); setMax(1); }; @@ -105,32 +105,7 @@ function ExportBtn(props) { // [导出当前页,导出全部,导出指定条数]----选项 const options = [ - { label: "导出当前页", value: "1" }, - { label: "导出全部 (全部导出需等待较长时间,请耐心等候) ", value: "2" }, - { - label: ( -
- 导出 -
- handleChangeNum(e, "min")} - /> - ~ - handleChangeNum(e, "max")} - /> -
-
{Math.abs(max - min + 1)}条
-
- ), - value: "3", - }, + { label: "导出全部 (全部导出需等待较长时间,请耐心等候) ", value: "2" } ]; // 导出确认 @@ -233,7 +208,7 @@ function ExportBtn(props) { // 重置 const handleReset = () => { setExportType(modalType); - setCheckedType("1"); + setCheckedType("2"); setMin(1); setMax(1); setInProcess("1"); @@ -356,13 +331,13 @@ function ExportBtn(props) { -
+ {/*
分段导出每次最多支持导出 {maxExportNum}
本次查询包含 {totalRecords} 条数据可供导出
-
+
*/} )} diff --git a/src/components/Export/ExportBtnNew/index.scss b/src/components/Export/ExportBtnNew/index.scss index 95a11ac..342384e 100644 --- a/src/components/Export/ExportBtnNew/index.scss +++ b/src/components/Export/ExportBtnNew/index.scss @@ -1,3 +1,8 @@ + +.export-container { + display: flex; + justify-content: flex-end; +} .export { .title { margin: 18px 0 24px; diff --git a/src/config/character.config.js b/src/config/character.config.js index f4d9e3a..3948e76 100644 --- a/src/config/character.config.js +++ b/src/config/character.config.js @@ -935,9 +935,9 @@ export const lineChartOption = { name: '', type: 'line', // stack: 'Total', - symbolSize: 1, + symbolSize: 6, symbol: 'circle', - showSymbol: false, + showSymbol: true, smooth: true, lineStyle: { width: 3 diff --git a/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/ParkArrear/index.jsx b/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/ParkArrear/index.jsx index 9174210..434278d 100644 --- a/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/ParkArrear/index.jsx +++ b/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/ParkArrear/index.jsx @@ -28,7 +28,7 @@ const ParkArrear = forwardRef((props, ref) => { title: "序号", width: 60, align: 'center', - render: (text, record, index) => index + 1, + render: (text, record, index) => (pageInfo.pn - 1) * pageInfo.length + index + 1, }, { title: "停车场名称", diff --git a/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/loadable.jsx index 2dbf53b..d81ef50 100644 --- a/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/loadable.jsx +++ b/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/loadable.jsx @@ -229,11 +229,12 @@ function ArrearageAly(props) { /> */} handleSearchPark(newValue)} onChange={(v) => setFormData({...formData, park_text: v})} - placeholder="" + placeholder="全部" defaultActiveFirstOption={false} filterOption={false} options={(parkList).map((d) => ({ diff --git a/src/pages/DataAnalysisPrediction/ParkingIncomeAly/PriceAly/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingIncomeAly/PriceAly/loadable.jsx index 27359e2..5b8b112 100644 --- a/src/pages/DataAnalysisPrediction/ParkingIncomeAly/PriceAly/loadable.jsx +++ b/src/pages/DataAnalysisPrediction/ParkingIncomeAly/PriceAly/loadable.jsx @@ -324,14 +324,14 @@ function PriceAly(props) { /> */} setFormData({...formData, device_status: v})} + onChange={(v) => { + if (v == 2) { + setFormData({...formData, operate_status: v, device_status: -1}) + } else { + setFormData({...formData, operate_status: v}) + } + }} /> + { + formData.operate_status != 2 ? ( +
+ +