Browse Source

fix():修改物理桩管理页面新增下拉数据

tags/PMS_V1.0.0_Alpha5
何欢 1 year ago
parent
commit
df4c04d8e5
  1. 8
      src/pages/NewEnergy/ChargeDeviceMgm/GroundLockManagement/loadable.jsx
  2. 2
      src/pages/NewEnergy/ChargeDeviceMgm/PhysicalPileManagement/loadable.jsx
  3. 13
      src/pages/OffPeak/OffPeakTimeMgm/ManagementTime/loadable.jsx

8
src/pages/NewEnergy/ChargeDeviceMgm/GroundLockManagement/loadable.jsx

@ -281,7 +281,7 @@ function GroundLockManagement() {
/> />
<FormSelect <FormSelect
yisaLabel="设备类型" yisaLabel="设备类型"
yisaData={selectData.model}
yisaData={selectData.model.filter(item => item.value != "0")}
defaultValue={rowData.model || null} defaultValue={rowData.model || null}
placeholder="请选择设备类型" placeholder="请选择设备类型"
hasUnlimited={false} hasUnlimited={false}
@ -291,7 +291,7 @@ function GroundLockManagement() {
/> />
<FormSelect <FormSelect
yisaLabel="设备供应商" yisaLabel="设备供应商"
yisaData={selectData.supplier}
yisaData={selectData.supplier.filter(item => item.value != "0")}
defaultValue={rowData.supplier || null} defaultValue={rowData.supplier || null}
placeholder="请选择设备供应商" placeholder="请选择设备供应商"
hasUnlimited={false} hasUnlimited={false}
@ -301,7 +301,7 @@ function GroundLockManagement() {
/> />
<FormSelect <FormSelect
yisaLabel="设备状态" yisaLabel="设备状态"
yisaData={selectData.status}
yisaData={selectData.status.filter(item => item.value != "0")}
defaultValue={rowData.status || null} defaultValue={rowData.status || null}
placeholder="请选择设备状态" placeholder="请选择设备状态"
hasUnlimited={false} hasUnlimited={false}
@ -313,7 +313,7 @@ function GroundLockManagement() {
<FormSelect <FormSelect
yisaLabel="所属物理桩" yisaLabel="所属物理桩"
yisaData={selectData.pile_id}
yisaData={selectData.pile_id.filter(item => item.value != "0")}
defaultValue={rowData.pile_id || null} defaultValue={rowData.pile_id || null}
placeholder="请选择所属物理桩" placeholder="请选择所属物理桩"
hasUnlimited={false} hasUnlimited={false}

2
src/pages/NewEnergy/ChargeDeviceMgm/PhysicalPileManagement/loadable.jsx

@ -230,7 +230,7 @@ function PhysicalPileManagement() {
</div> </div>
<FormSelect <FormSelect
yisaLabel="所在充电站" yisaLabel="所在充电站"
yisaData={selectData}
yisaData={selectData.filter(item => item.value != "0")}
defaultValue={rowData.charging_station_id || null} defaultValue={rowData.charging_station_id || null}
placeholder="请选择所在充电站" placeholder="请选择所在充电站"
hasUnlimited={false} hasUnlimited={false}

13
src/pages/OffPeak/OffPeakTimeMgm/ManagementTime/loadable.jsx

@ -5,9 +5,11 @@ import { TableModule ,FormInput,FormSelect,FormDatePicker} from "@/components";
import { useSelector, useDispatch } from "react-redux" import { useSelector, useDispatch } from "react-redux"
import "./index.scss"; import "./index.scss";
// import errorImg from "@/assets/images/layout/error.png" // import errorImg from "@/assets/images/layout/error.png"
import { useNavigate, useLocation } from "react-router-dom"
import { useParams } from "react-router-dom"; import { useParams } from "react-router-dom";
const { TextArea } = Input; const { TextArea } = Input;
function ManagementTime(props) { function ManagementTime(props) {
const navigate = useNavigate()
const id = new URLSearchParams(location.href).get("id"); const id = new URLSearchParams(location.href).get("id");
const columns = [ const columns = [
{ {
@ -148,7 +150,16 @@ function ManagementTime(props) {
}); });
} }
function addButton() { function addButton() {
return ([<Button
return ([
<Button
type="primary"
onClick={() => {
navigate(`/offPeak/timeRule`)
}}
>
返回
</Button>,
<Button
type="primary" type="primary"
onClick={() => { onClick={() => {
setVisible(true); setVisible(true);

Loading…
Cancel
Save