Jelajahi Sumber

药品计量使用

luolei 5 tahun lalu
induk
melakukan
bc7ffe4127

+ 1 - 0
src/components/AddAssistCheck/index.less

@@ -12,6 +12,7 @@
   position: relative;
   top: 2px;
   margin: 0 3px 0 0px;
+  cursor: pointer;
 }
 .pointerFinger {
   cursor: default;

+ 1 - 0
src/components/AddInspect/SlidePic/index.less

@@ -63,6 +63,7 @@
         position: relative;
         top: 2px;
         margin: 0 3px 0 5px;
+        cursor: pointer;
     }
 }
 .slideLi:hover{

+ 1 - 0
src/components/AddNewInspect/SlidePic/index.less

@@ -71,6 +71,7 @@
         position: relative;
         top: 2px;
         margin: 0 3px 0 5px;
+        cursor: pointer;
     }
 }
 .slideLi:hover{

+ 6 - 7
src/store/reducers/newAdvice.js

@@ -81,15 +81,14 @@ export default (state = initSearchList, action) => {
     if (action.type == SET_TIP) {    
         const newState = Object.assign({}, state);
         let tempArr = newState.labelListBig;
-        let tempArrs = newState.labelListSmall;
         let tmpLis = action.item
-        tempArrs = tempArrs.filter((item)=>{
-            if(item.time == tmpLis.time){
-                item.value = action.value
+
+        for(let i= 0;i < tempArr.length;i++){
+            if(tmpLis.time == tempArr[i].time){
+                tempArr[i].value = action.value
             }
-            return item
-        })
-        newState.labelListSmall = [...tempArrs]
+        }
+        newState.labelListBig = [...tempArr]
         return newState;
     }
     if (action.type == SEARCH_TYPE_NEW) {