|
@ -109,21 +109,30 @@ const Left = props => { |
|
|
// {id:1,issueHandleCount:11,patrolRecordCount:7},
|
|
|
// {id:1,issueHandleCount:11,patrolRecordCount:7},
|
|
|
// {id:1,issueHandleCount:19,patrolRecordCount:9}]
|
|
|
// {id:1,issueHandleCount:19,patrolRecordCount:9}]
|
|
|
const data=res.payload.data |
|
|
const data=res.payload.data |
|
|
if(data.length>2){ |
|
|
if(data.length>4){ |
|
|
let problemstop = 0 |
|
|
let problemstop = 0 |
|
|
let problemsId = document.getElementById('left1'); |
|
|
let problemsId = document.getElementById('left1'); |
|
|
if (problems) clearInterval(problems) |
|
|
if (problems) clearInterval(problems) |
|
|
if (problemsId) { |
|
|
if (problemsId) { |
|
|
function problemstart () { |
|
|
let problems; |
|
|
|
|
|
let problemstop = 0; |
|
|
|
|
|
|
|
|
|
|
|
function problemstart() { |
|
|
problems = setInterval(() => { |
|
|
problems = setInterval(() => { |
|
|
problemstop += 5 |
|
|
problemstop += 5; |
|
|
problemsId.scrollTop = problemstop |
|
|
problemsId.scrollTop = problemstop; |
|
|
if (problemsId.scrollTop >= problemsId.scrollHeight / 2) problemstop = 0, problemsId.scrollTop = problemstop |
|
|
if (problemsId.scrollTop >= (problemsId.scrollHeight - 90) / 2) { |
|
|
|
|
|
problemstop = 0; |
|
|
|
|
|
problemsId.scrollTop = problemstop; |
|
|
|
|
|
} |
|
|
}, 500); |
|
|
}, 500); |
|
|
problemsId.onmouseover = () => clearInterval(problems) |
|
|
|
|
|
|
|
|
problemsId.onmouseover = () => clearInterval(problems); |
|
|
} |
|
|
} |
|
|
problemsId.onmouseout = () => problemstart() |
|
|
|
|
|
setTimeout(problemstart(), 1000); |
|
|
problemsId.onmouseout = () => problemstart(); |
|
|
|
|
|
|
|
|
|
|
|
setTimeout(problemstart, 1000); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(data.length>10){ |
|
|
if(data.length>10){ |
|
@ -445,7 +454,7 @@ const Left = props => { |
|
|
<div className='index1'> |
|
|
<div className='index1'> |
|
|
<div>{index+1}</div> |
|
|
<div>{index+1}</div> |
|
|
</div> |
|
|
</div> |
|
|
<div className='name1'>{item.name}</div> |
|
|
<div className='name1' title={item.name}>{item.name}</div> |
|
|
<div className='num1'>{item.patrolRecordCount}</div> |
|
|
<div className='num1'>{item.patrolRecordCount}</div> |
|
|
<div className='quests1' style={{ ...normalFontColor }}> |
|
|
<div className='quests1' style={{ ...normalFontColor }}> |
|
|
{item.issueHandleCount} |
|
|
{item.issueHandleCount} |
|
|