Browse Source

备注修改

release_0.0.2
deartibers 3 years ago
parent
commit
c15990cd60
  1. 5
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/remarksModal.jsx

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

@ -18,7 +18,7 @@ function remarksModal (props) {
const [roll,setroll] = useState(false); const [roll,setroll] = useState(false);
const [showValueNum,setShowValueNum] = useState(0); const [showValueNum,setShowValueNum] = useState(0);
const valueNum = useRef(0); const valueNum = useRef(0);
//
useEffect(() => { useEffect(() => {
let myScrollList=ScrollList let myScrollList=ScrollList
for (let index = 0; index < cameraRemarks.length; index++) { for (let index = 0; index < cameraRemarks.length; index++) {
@ -47,6 +47,7 @@ function remarksModal (props) {
close(); close();
// //
} }
//
function onChange(value,num){ function onChange(value,num){
valueNum.current=0 valueNum.current=0
let myScrollList=ScrollList let myScrollList=ScrollList
@ -60,10 +61,12 @@ function remarksModal (props) {
} }
setShowValueNum(valueNum.current); setShowValueNum(valueNum.current);
} }
//
function onFocus(num){ function onFocus(num){
setShowScrollList([ScrollList[num].value]) setShowScrollList([ScrollList[num].value])
setroll(true) setroll(true)
} }
//
function onBlur(){ function onBlur(){
setShowScrollList([]) setShowScrollList([])
let myScrollList = [] let myScrollList = []

Loading…
Cancel
Save