Browse Source

Merge branch 'dev_trial' of https://gitea.free-sun.vip/free-sun/FS-IOT into dev_trial

release_0.0.2
巴林闲侠 2 years ago
parent
commit
13524a5cf1
  1. 11
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/remarksModal.jsx

11
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/remarksModal.jsx

@ -21,13 +21,16 @@ function remarksModal (props) {
//
useEffect(() => {
let myScrollList=ScrollList
for (let index = 0; index < cameraRemarks.length; index++) {
myScrollList[index].value=cameraRemarks[index].remark
let sortCameraRemarks =cameraRemarks//
sortCameraRemarks.sort((a,b)=>{return a.id-b.id})
for (let index = 0; index < sortCameraRemarks.length; index++) {
myScrollList[index].value=sortCameraRemarks[index].remark
}
setScrollList(myScrollList)
let mycameraRemarks=[]
for (let index = 0; index < cameraRemarks.length; index++) {
mycameraRemarks.push(cameraRemarks[index].remark)
for (let index = 0; index < sortCameraRemarks.length; index++) {
mycameraRemarks.push(sortCameraRemarks[index].remark)
}
setShowScrollList(mycameraRemarks)
}, []);

Loading…
Cancel
Save