luolei 4 роки тому
батько
коміт
371876b3a9

+ 1 - 1
src/store/async-actions/assistCheck.js

@@ -14,7 +14,7 @@ export const getSearchList = (val) => {
     return (dispatch) => {
         axios.json('/demo/retrieval/index',{
             "age": formatFormParmas('patientAge',baseList.patInfo.patInfoData),
-            "inputStr": val,
+            "inputStr": val.trim(),
             "sex": formatFormParmas('patientSex',baseList.patInfo.patInfoData),
             "type": '3',
             "hospitalId":baseList.homePage.curHos.hosId

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

@@ -33,7 +33,7 @@ export const getSearchList = (val,flag) => {
         json('/demo/retrieval/index',{
             "type":'4',
             "age": formatFormParmas('patientAge',state.patInfo.patInfoData),
-            "inputStr": val,
+            "inputStr": val.trim(),
             "sex": formatFormParmas('patientSex',state.patInfo.patInfoData),
             "hospitalId":baseList.homePage.curHos.hosId
         })

+ 1 - 1
src/store/async-actions/inspect.js

@@ -15,7 +15,7 @@ export const getSearchList = (val) => {
     return (dispatch) => {
         axios.json('/demo/retrieval/index',{
             "age": formatFormParmas('patientAge',baseList.patInfo.patInfoData),
-            "inputStr": val,
+            "inputStr": val.trim(),
             "sex": formatFormParmas('patientSex',baseList.patInfo.patInfoData),
             "hospitalId":baseList.homePage.curHos.hosId,
             "type": type

+ 1 - 1
src/store/async-actions/newAdvice.js

@@ -13,7 +13,7 @@ export const getSearchList = (val) => {
     let type = baseList.newAdvice.shType;
     return (dispatch) => {
         axios.json('/demo/retrieval/index',{
-            "inputStr": val,
+            "inputStr": val.trim(),
             "hospitalId": 2,
             "age": formatFormParmas('patientAge',baseList.patInfo.patInfoData),
             "sex": formatFormParmas('patientSex',baseList.patInfo.patInfoData),

+ 3 - 3
src/utils/config.js

@@ -7,7 +7,7 @@ const { func } = require("prop-types");
 
 
 
-const host='http://192.168.2.241:6060';//后端接口访问地址
+const host='http://192.168.2.236:6060';//后端接口访问地址
 // const host='http://192.168.2.241:5050';//后端接口访问地址
 // const host='http://192.168.3.11:5050';//王宇
 //const host='http://192.168.2.164:8080';
@@ -17,8 +17,8 @@ const imageUrlPrefix = 'http://192.168.2.241:82';
 function geturl(){
     if(window.location.href.indexOf('localhost')>-1){
         return {
-            // gourl:'http://localhost:8083/cdss.html',
-            gourl:'http://192.168.2.241:5654/cdss.html',
+            gourl:'http://localhost:8083/cdss.html',
+            // gourl:'http://192.168.2.241:5654/cdss.html',
             imgurl:host.replace('6060','22')
         }
     }else if(window.location.href.indexOf('192.168.2.236')>-1){