Browse Source

Merge branch 'develop' of http://120.27.195.166:3000/chenglb/PMS_Frontend_v1.0.0.git into develop

tags/PMS_V1.0.0_Alpha5
chenglb 1 year ago
parent
commit
9439d43798
  1. 8
      src/pages/NewEnergy/ChargeDeviceMgm/GroundLockManagement/loadable.jsx
  2. 2
      src/pages/NewEnergy/ChargeDeviceMgm/PhysicalPileManagement/loadable.jsx
  3. 20
      src/pages/NewEnergy/ChargingMgm/BillingRule/index.scss
  4. 6
      src/pages/NewEnergy/ChargingMgm/BillingRule/loadable.jsx
  5. 4
      src/pages/NewEnergy/ChargingMgm/IllegalRuleConfigMgm/loadable.jsx
  6. 18
      src/pages/NewEnergy/ChargingMgm/OrderRuleMgm/index.scss
  7. 4
      src/pages/NewEnergy/ChargingMgm/OrderRuleMgm/loadable.jsx
  8. 13
      src/pages/OffPeak/OffPeakTimeMgm/ManagementTime/loadable.jsx
  9. 7
      src/pages/OperationCenter/OperationSales/CreditScoreMgm/index.scss
  10. 12
      src/pages/OperationCenter/OperationSales/CreditScoreMgm/loadable.jsx
  11. 6
      src/pages/OutRoadMgm/OutRoadOverview/index.scss
  12. 20
      src/pages/OutRoadMgm/OutRoadOverview/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}

20
src/pages/NewEnergy/ChargingMgm/BillingRule/index.scss

@ -270,14 +270,26 @@ $color-primary: var(--color-primary);
height: 96px; height: 96px;
} }
.new-value{ .new-value{
width: 780px;
line-height: 96px;
width: calc(100% - 120px);
// line-height: 96px;
height: 96px; height: 96px;
word-wrap:break-word
word-wrap:break-word;
display: flex;
align-items: center;
justify-content: center;
span{
width: 100%;
max-height: 100%;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
-webkit-line-clamp: 3;
}
} }
} }
} }
} }
} }

6
src/pages/NewEnergy/ChargingMgm/BillingRule/loadable.jsx

@ -243,7 +243,7 @@ function BillingRule() {
<Select <Select
value={modalData.operator_id} value={modalData.operator_id}
style={{ width: 660, marginLeft: 10 }} style={{ width: 660, marginLeft: 10 }}
options={operatorOption}
options={operatorOption.filter(item => item.value != "0")}
onChange={(v) => {setModalData({...modalData,operator_id:v})}} onChange={(v) => {setModalData({...modalData,operator_id:v})}}
/> />
</div> </div>
@ -270,7 +270,6 @@ function BillingRule() {
/> />
</div> </div>
<div className="yisa-search" style={{marginLeft:26}}> <div className="yisa-search" style={{marginLeft:26}}>
<em style={{marginRight:'5px',marginLeft:'-13px',color:'red'}}>*</em>
<label>创建人</label> <label>创建人</label>
<Input <Input
placeholder="请输入创建人" placeholder="请输入创建人"
@ -282,7 +281,6 @@ function BillingRule() {
/> />
</div> </div>
<div className="yisa-search" style={{marginLeft:12}}> <div className="yisa-search" style={{marginLeft:12}}>
<em style={{marginRight:'5px',marginLeft:'-13px',color:'red'}}>*</em>
<label>创建时间</label> <label>创建时间</label>
<Input <Input
placeholder="请输入创建时间" placeholder="请输入创建时间"
@ -354,7 +352,7 @@ function BillingRule() {
<div className="ltc-item rule-description" > <div className="ltc-item rule-description" >
<div className="new-item">规则描述</div> <div className="new-item">规则描述</div>
<div className="new-value"> <div className="new-value">
{detailsData?.rule_description || "--"}
<span>{detailsData?.rule_description || "--"}</span>
</div> </div>
</div> </div>
</div> </div>

4
src/pages/NewEnergy/ChargingMgm/IllegalRuleConfigMgm/loadable.jsx

@ -311,7 +311,7 @@ return (
<Select <Select
value={modalData.operator_id} value={modalData.operator_id}
style={{ width: 660, marginLeft: 10 }} style={{ width: 660, marginLeft: 10 }}
options={operatorOption}
options={operatorOption.filter(item => item.value != "0")}
onChange={(v) => {setModalData({...modalData,operator_id:v})}} onChange={(v) => {setModalData({...modalData,operator_id:v})}}
/> />
</div> </div>
@ -342,7 +342,7 @@ return (
<Select <Select
value={modalData.effective_place} value={modalData.effective_place}
style={{ width: 660, marginLeft: 10 }} style={{ width: 660, marginLeft: 10 }}
options={stationOption}
options={stationOption.filter(item => item.value != "0")}
onChange={(v) => {setModalData({...modalData,effective_place:v})}} onChange={(v) => {setModalData({...modalData,effective_place:v})}}
/> />
</div> </div>

18
src/pages/NewEnergy/ChargingMgm/OrderRuleMgm/index.scss

@ -268,9 +268,23 @@ $color-primary: var(--color-primary);
} }
.new-value{ .new-value{
width: 780px; width: 780px;
line-height: 96px;
// line-height: 96px;
height: 96px; height: 96px;
word-wrap:break-word
word-wrap:break-word;
display: flex;
align-items: center;
justify-content: center;
padding: 5px;
span{
width: 100%;
max-height: 100%;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
-webkit-line-clamp: 3;
}
} }
} }

4
src/pages/NewEnergy/ChargingMgm/OrderRuleMgm/loadable.jsx

@ -295,7 +295,7 @@ return (
<Select <Select
value={modalData.operator_id} value={modalData.operator_id}
style={{ width: 660, marginLeft: 10 }} style={{ width: 660, marginLeft: 10 }}
options={operatorOption}
options={operatorOption.filter(item => item.value != "0")}
onChange={(v) => {setModalData({...modalData,operator_id:v})}} onChange={(v) => {setModalData({...modalData,operator_id:v})}}
/> />
</div> </div>
@ -430,7 +430,7 @@ return (
<div className="ltc-item rule-description" > <div className="ltc-item rule-description" >
<div className="new-item">规则描述</div> <div className="new-item">规则描述</div>
<div className="new-value"> <div className="new-value">
{detailsData?.rule_description || "--"}
<span>{detailsData?.rule_description || "--"}</span>
</div> </div>
</div> </div>

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);

7
src/pages/OperationCenter/OperationSales/CreditScoreMgm/index.scss

@ -478,6 +478,7 @@
width: 84px; width: 84px;
text-align: center; text-align: center;
height: 25px; height: 25px;
line-height: 25px;
background: linear-gradient(180deg, #3aa9ff, #59b7ff); background: linear-gradient(180deg, #3aa9ff, #59b7ff);
border-radius: 4px; border-radius: 4px;
margin-left: 20px; margin-left: 20px;
@ -497,9 +498,11 @@
width: 84px; width: 84px;
text-align: center; text-align: center;
height: 25px; height: 25px;
line-height: 25px;
background: linear-gradient(180deg, #3aa9ff, #59b7ff); background: linear-gradient(180deg, #3aa9ff, #59b7ff);
border-radius: 4px; border-radius: 4px;
margin-left: 20px; margin-left: 20px;
color: #fff;
cursor: pointer; cursor: pointer;
} }
.content { .content {
@ -526,8 +529,8 @@
.del-btn { .del-btn {
color: #fff; color: #fff;
border: 1px solid red;
background: red;
border: 1px solid rgb(245, 67, 67);
background: rgb(245, 67, 67);
} }
} }

12
src/pages/OperationCenter/OperationSales/CreditScoreMgm/loadable.jsx

@ -439,7 +439,7 @@ function CreditScoreMgm() {
item.children.map((res) => { item.children.map((res) => {
if (res.couponId == null || res.couponId == '' || res.num == null || res.num == '') { if (res.couponId == null || res.couponId == '' || res.num == null || res.num == '') {
flag.push(false) flag.push(false)
}else {
} else {
couponArr.push(res.couponId) couponArr.push(res.couponId)
} }
}) })
@ -839,7 +839,7 @@ function CreditScoreMgm() {
><> ><>
{flag > 0 && payData && payData.list?.length != 0 ? {flag > 0 && payData && payData.list?.length != 0 ?
payData.list?.map((item, index) => { payData.list?.map((item, index) => {
console.log(778, item)
//console.log(778, item)
return <div className="pay-box"> return <div className="pay-box">
<div className="title">规则{index + 1}</div> <div className="title">规则{index + 1}</div>
{index > 0 ? <div className="delrule-btn" onClick={() => { {index > 0 ? <div className="delrule-btn" onClick={() => {
@ -855,7 +855,8 @@ function CreditScoreMgm() {
<div className="row-title">充值 <div className="row-title">充值
<InputNumber <InputNumber
className="credit-inputnum" className="credit-inputnum"
min={0}
min={1}
precision={0}
value={payData.list[index]?.recharge} value={payData.list[index]?.recharge}
onChange={(e) => { onChange={(e) => {
let arr = payData let arr = payData
@ -890,7 +891,8 @@ function CreditScoreMgm() {
/> />
<InputNumber <InputNumber
className="credit-inputnum" className="credit-inputnum"
min={0}
min={1}
precision={0}
value={payData.list[index]?.children[index2]?.num} value={payData.list[index]?.children[index2]?.num}
onChange={(e) => { onChange={(e) => {
let arr = payData let arr = payData
@ -929,7 +931,7 @@ function CreditScoreMgm() {
setFlag(flag + 1) setFlag(flag + 1)
setPayData(arr) setPayData(arr)
} }
}>+</div>
}></div>
} }
</div> </div>
) )

6
src/pages/OutRoadMgm/OutRoadOverview/index.scss

@ -70,6 +70,12 @@ $color-primary: var(--color-primary);
} }
.center { .center {
@include Card(); @include Card();
.select-box {
display: inline-block;
width: 200px;
margin-right: 10px;
margin-bottom: 10px;
}
} }
.right { .right {
display: grid; display: grid;

20
src/pages/OutRoadMgm/OutRoadOverview/loadable.jsx

@ -17,6 +17,7 @@ const OutRoadOverview = () => {
const [videoRoad, setVideoRoad] = useState([]) const [videoRoad, setVideoRoad] = useState([])
const [roadId, setRoadId] = useState() const [roadId, setRoadId] = useState()
const [videoDevice, setVideoDevice] = useState([]) const [videoDevice, setVideoDevice] = useState([])
const [todevice, setTodevice] = useState([])
const [videoPlay, setVideoPlay] = useState('') const [videoPlay, setVideoPlay] = useState('')
const [headerNums, setHeaderNums] = useState({ const [headerNums, setHeaderNums] = useState({
park_num: 0, park_num: 0,
@ -297,7 +298,7 @@ const OutRoadOverview = () => {
.then((res) => { .then((res) => {
if (res.status === 20000) { if (res.status === 20000) {
setVideoDevice(res.data); setVideoDevice(res.data);
}else {
} else {
message.error(res.message) message.error(res.message)
} }
}) })
@ -307,14 +308,18 @@ const OutRoadOverview = () => {
} }
// //
function getOutRoadVideoPlay(e) { function getOutRoadVideoPlay(e) {
if (timer) {
clearInterval(timer)
timer = null
}
ajax ajax
.getOutRoadVideoPlay(e) .getOutRoadVideoPlay(e)
.then((res) => { .then((res) => {
if (res.status === 20000) { if (res.status === 20000) {
setVideoPlay("http://122.9.151.13:81/rtp/Play-37021100131110000028-37021100131310000196.live.mp4");
//setVideoPlay("http://122.9.151.13:81/rtp/Play-37021100131110000028-37021100131310000196.live.mp4");
handleFlvPlay(res.data.url); handleFlvPlay(res.data.url);
getOutRoadVideoPlaying(e) // getOutRoadVideoPlaying(e) //
}else {
} else {
message.error(res.message) message.error(res.message)
} }
}) })
@ -411,7 +416,7 @@ const OutRoadOverview = () => {
const handleFlvPlay = (e) => { const handleFlvPlay = (e) => {
videoRef.current.closeVideo() videoRef.current.closeVideo()
setVideoType("mp4") setVideoType("mp4")
console.log(e)
//console.log(e)
videoRef.current.changeUrl(e) videoRef.current.changeUrl(e)
} }
useEffect(() => { useEffect(() => {
@ -555,14 +560,17 @@ const OutRoadOverview = () => {
<div> <div>
<Select <Select
placeholder="请选择停车场" placeholder="请选择停车场"
className="select-box"
value={roadId} value={roadId}
options={videoRoad} options={videoRoad}
onChange={(e) => setRoadId(e)}
onChange={(e) => { setRoadId(e); videoRef.current.closeVideo(); setVideoDevice([]); setTodevice('') }}
/> />
<Select <Select
placeholder="请选择监控设备" placeholder="请选择监控设备"
className="select-box"
options={videoDevice} options={videoDevice}
onChange={(e) => { getOutRoadVideoPlay({ id: e, type: 1 }) }}
value={todevice}
onChange={(e) => { getOutRoadVideoPlay({ id: e, type: 1 }); setTodevice(e) }}
/> />
<div> <div>
<VideoPlay ref={videoRef} videoType={videoType} /> <VideoPlay ref={videoRef} videoType={videoType} />

Loading…
Cancel
Save