Explorar o código

修改不同文件actionm type名称重复枪口

zhangxc %!s(int64=6) %!d(string=hai) anos
pai
achega
6e5a02a9cb

+ 1 - 2
src/components/MedicalInfo/index.jsx

@@ -14,6 +14,7 @@ class MedicalInfo extends Component {
         this.search = this.search.bind(this);
         this.handleChange = this.handleChange.bind(this);
         this.clear = this.clear.bind(this);
+        this.getSearchList = this.getSearchList.bind(this);
     }
     getSearchList() {
         const { getAllConceptDetail,searchResult } = this.props;
@@ -26,10 +27,8 @@ class MedicalInfo extends Component {
             });
     }
     search(){
-      console.log('val1')
       const {handleChangeValue} = this.props;
       const val = this.$inp.current.value;
-      console.log('val',val)
       handleChangeValue&&handleChangeValue(val);
     }
   handleChange(){

+ 4 - 4
src/store/async-actions/diagnosticSearch.js

@@ -6,13 +6,13 @@ import { GET_SEARCH } from '@store/types/emergencyHis';
 export const getSearchList = (val,flag) => {
     if(val.trim() == ''){
         // const data = [];
-        if(flag){//ÀúÊ·²¡Àú
+        if(flag){//��ʷ����
             return (dispatch) =>  dispatch({
                 type: GET_SEARCH,
                 searchResult: []
             })
         }
-        return (dispatch) =>  dispatch({//Õï¶Ï
+        return (dispatch) =>  dispatch({//���
             type: GET_SEARCH_RESULT,
             searchResult: []
         })
@@ -36,12 +36,12 @@ export const getSearchList = (val,flag) => {
         })
         .then((res)=>{
             const data = res.data.data;
-            if(flag){ //ÀúÊ·²¡Àú
+            if(flag){ //��ʷ����
                 dispatch({
                     type: GET_SEARCH,
                     searchResult: data
                 })
-            }else{//Õï¶Ï
+            }else{//���
                 dispatch({
                     type: GET_SEARCH_RESULT,
                     searchResult: data

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

@@ -1,2 +1,2 @@
 export const SET_SEARCH_VALUE = 'SET_SEARCH_VALUE';
-export const GET_SEARCH_RESULT = 'GET_SEARCH_RESULT';
+export const GET_SEARCH_RESULT = Symbol('GET_SEARCH_RESULT');