|
@@ -3,6 +3,7 @@ import store from '@store';
|
|
|
|
|
|
import { searchList,resetLabel } from '../actions/inspect';
|
|
|
import { SET_TIPS } from '../types/pushMessage';
|
|
|
+import { Notify} from '@commonComp';
|
|
|
|
|
|
export const getSearchList = (val) => {
|
|
|
if(val.trim() == ''){
|
|
@@ -71,11 +72,15 @@ export const getInstroduce = (id,name,type)=>{ //获取化验的提示信息
|
|
|
return (dispatch, getState) =>{
|
|
|
axios.json(url, param)
|
|
|
.then((data)=>{
|
|
|
- dispatch({
|
|
|
- type: SET_TIPS,
|
|
|
- tips: data.data.data,
|
|
|
- tmpFlg:'midPart'
|
|
|
- })
|
|
|
+ if(data.data.code == 0) {
|
|
|
+ dispatch({
|
|
|
+ type: SET_TIPS,
|
|
|
+ tips: data.data.data,
|
|
|
+ tmpFlg:'midPart'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ Notify.info(data.data.msg||'暂无提示信息')
|
|
|
+ }
|
|
|
}).catch((e) => {
|
|
|
console.log(e)
|
|
|
})
|