Browse Source

遗嘱删除bug6161

luolei 4 years ago
parent
commit
d866590c0d
3 changed files with 5 additions and 5 deletions
  1. 2 2
      src/store/actions/newAdvice.js
  2. 2 2
      src/store/reducers/newAdvice.js
  3. 1 1
      src/store/types/newAdvice.js

+ 2 - 2
src/store/actions/newAdvice.js

@@ -1,4 +1,4 @@
-import {HANDLESELECTSHOW,SELECTJITYPE,SET_CONTEXT,CHECK_OFF_ON_NEW,DEL_ONE_PIC,ADD_LABEL,SEARCH_LIST,SET_LABEL,SET_TIP_ADVICE,FILL_ACTIVE,FILL_ACTIVE_DETAIL,GET_EXCEL,CHECK_VALUE_IS_CHANGE,CLEAR_LABEL,RESET_LABEL_NEW,CLEAR_ALL_LABEL,DEL_PART_ITEM_NEW,DEL_EXCEL_LIST,SEARCH_TYPE_NEW} from '../types/newAdvice';
+import {HANDLESELECTSHOW,SELECTJITYPE,SET_CONTEXT,CHECK_OFF_ON_NEW,DEL_ONE_PIC_NEW,ADD_LABEL,SEARCH_LIST,SET_LABEL,SET_TIP_ADVICE,FILL_ACTIVE,FILL_ACTIVE_DETAIL,GET_EXCEL,CHECK_VALUE_IS_CHANGE,CLEAR_LABEL,RESET_LABEL_NEW,CLEAR_ALL_LABEL,DEL_PART_ITEM_NEW,DEL_EXCEL_LIST,SEARCH_TYPE_NEW} from '../types/newAdvice';
 
 export const setLabel = (idx,sign) => ({          //搜索后点击选中的结果
     type:SET_LABEL,
@@ -75,7 +75,7 @@ export const searchTypeNew = (value) => ({
 })
 
 export const delOnePic = (item,tip) => ({
-    type:DEL_ONE_PIC,
+    type:DEL_ONE_PIC_NEW,
     item,tip
 })
 export const checkOffOn = (item,tip) => ({

+ 2 - 2
src/store/reducers/newAdvice.js

@@ -12,7 +12,7 @@ import {
   ADD_LABEL,
   SET_CONTEXT,
   SET_TIP_ADVICE,
-  DEL_ONE_PIC,
+  DEL_ONE_PIC_NEW,
   SEARCH_TYPE_NEW,
   CHECK_OFF_ON_NEW,
   RENEWADVICEDATA,
@@ -115,7 +115,7 @@ export default (state = initSearchList, action) => {
         newState.transfusionOrder=[...tempBloodOrder]
         return newState;
     }
-    if (action.type == DEL_ONE_PIC) {
+    if (action.type == DEL_ONE_PIC_NEW) {
         const newState = Object.assign({}, state);
         let tempArr = newState.labelListBig;
         let tempArrs = newState.labelListSmall;

+ 1 - 1
src/store/types/newAdvice.js

@@ -14,7 +14,7 @@ export const ADD_LABEL = 'ADD_LABEL';
 export const SET_CONTEXT = 'SET_CONTEXT';
 export const SET_TIP_ADVICE = 'SET_TIP';
 export const SEARCH_TYPE_NEW = 'SEARCH_TYPE_NEW';
-export const DEL_ONE_PIC = 'DEL_ONE_PIC';
+export const DEL_ONE_PIC_NEW = 'DEL_ONE_PIC_NEW';
 export const CHECK_OFF_ON_NEW = 'CHECK_OFF_ON_NEW';