Browse Source

修复管理大屏故障

release_0.0.1
dengyinhuan 2 years ago
parent
commit
e999050c8c
  1. 2
      web/client/src/sections/quanju/containers/footer/build/AutoRollComponent.js
  2. 8
      web/client/src/sections/quanju/containers/footer/guanli/index.js
  3. 6
      web/client/src/sections/quanju/containers/footer/guanli/style.less

2
web/client/src/sections/quanju/containers/footer/build/AutoRollComponent.js

@ -111,7 +111,7 @@ export default class AutoRollComponent extends Component {
}
<div id={divId} style={{ overflow: 'hidden', height: divHeight }} onMouseOver={this.onMouseOver} onMouseOut={this.onMouseOut}>
<div style={{height:"100%"}}>
<div>
{content ? content : ''}
{this.state.enabledScroll && content ? content : ''}
{

8
web/client/src/sections/quanju/containers/footer/guanli/index.js

@ -12,8 +12,11 @@ const Guanli = (props) => {
const [rightDatas,setrightDatas] = useState([])
const requestleftDatas = async()=>{
const res = await dispatch(getjiandmanage())
res.payload.data.sort((a,b)=>{
return parseInt(b.total) - parseInt(a.total)
})
setleftDatas(res.payload.data)
// console.log(res,'哈哈哈')
console.log(res.payload.data,'哈哈哈')
}
const requestRightDatas = async()=>{
const res = await dispatch(getjiandetail())
@ -24,7 +27,7 @@ const Guanli = (props) => {
requestleftDatas();
requestRightDatas()
},[])
// let datalist = newArry(35)
// let datalist = newArry(30)
// datalist.fill({licensePlate:"赣A44454",overrunRate:"30%",fine:"200元",processingTime:"2020年4月1日"})
const renderContent = () => {
return <div style={{height:"100%"}}>
@ -41,6 +44,7 @@ const Guanli = (props) => {
</div>
}
const renderLeftContent = ()=>{
// setleftDatas(leftDatas=>leftDatas.sort((a,b)=>b.total - a.total))
return leftDatas && leftDatas.length!==0?leftDatas.map((item,index)=>
<LeftItem key={index} datas={item}></LeftItem>

6
web/client/src/sections/quanju/containers/footer/guanli/style.less

@ -16,7 +16,8 @@
.guanli-left-item{
box-sizing: border-box;
width: 85%;
height: 30%;
// height: 30%;
height: 24vh;
margin: 0 auto 3%;
display: flex;
align-items: center;
@ -141,7 +142,8 @@
}
.guanli-right-item{
width: 90%;
height: 3.333%;
// height: 4%;
height: 3vh;
margin: auto;
display: flex;
align-items: center;

Loading…
Cancel
Save