浏览代码

删除多余文件

zhouna 6 年之前
父节点
当前提交
d49848ce25

+ 2 - 2
src/components/BodyContainer/index.jsx

@@ -1,4 +1,4 @@
-import SaveDataAll from "@containers/BodyContainer";
+import EMRContainer from "@components/EMRContainer";
 import PushContainer from '@components/PushContainer';
 
 import style from './index.less';
@@ -6,7 +6,7 @@ import style from './index.less';
 const BodyContainer = (props) =>{
   const { saveDateAll } = props;
   return <div className={style['container'] + ' clearfix'}>
-      <SaveDataAll saveDateAll={saveDateAll}></SaveDataAll>
+      <EMRContainer saveDateAll={saveDateAll}></EMRContainer>
       <PushContainer></PushContainer>
   </div>;
 }

+ 0 - 36
src/containers/BodyContainer.js

@@ -1,36 +0,0 @@
-import React from 'react';
-import {connect} from 'react-redux';
-import EMRContainer from '@components/EMRContainer';
-import {saveTemplateDetail} from '@store/async-actions/tabTemplate';
-import {initPersonInfo} from '@store/async-actions/getInfoByUuid';
-import {initHistoryDetails} from '@store/async-actions/patInfo';
-import {getAllDataList} from '@utils/tools';
-import store from '@store';
-
-function mapStateToProps(state) {
-    return {
-        
-    }
-}
-
-function mapDispatchToProps(dispatch,getStore) { 
-    return {
-        /*initHospital(){
-            dispatch(initPersonInfo())
-        },*/
-        saveDataAll(val){
-            dispatch(saveTemplateDetail(val))
-        },
-        isVisible(bool){
-            dispatch(changeVisible(bool))
-        },
-        initHistoryLastest(){
-            dispatch(initHistoryDetails())
-        }
-    }
-}
-
-
-const SaveDataAll = connect(mapStateToProps, mapDispatchToProps)(EMRContainer);
-
-export default SaveDataAll;

+ 0 - 20
src/store/async-actions/getInfoByUuid.js

@@ -1,20 +0,0 @@
-
-import axios from '@utils/ajax'
-import Notify from '@commonComp/Notify';
-import { getInfos } from '@store/actions/getInfoByUuid';
-import { getUrlArgObject } from '@utils/tools';
-
-export const initPersonInfo = () => {        //初始化数据
-    return (dispatch) => {
-        axios.json('/tranFieldInfo/getInfoByUuid',{
-            "uuid":getUrlArgObject('hospitalId'),
-        }).then((res)=>{
-            const data =res.data;
-            if(data.code == 0){
-                dispatch(getInfos(data.data));
-            }else{
-                console.log(res)
-            }
-        })
-    }
-};

+ 1 - 16
src/utils/tools.js

@@ -142,22 +142,7 @@ const deepClone = (data)=>{
     return JSON.parse(JSON.stringify(data)||null)||{};
 };
 
-const getUrlArgObject = (parm) => {  
-    /*let args=new Object();  
-    let query=window.location.href;//获取查询串  
-    let pairs,arr;
-    if(query.indexOf("?") != -1){
-      pairs=query.split("?")[1].split("&");
-      for(let i=0;i<pairs.length;i++){  
-         let pos=pairs[i].indexOf('=');//查找name=value  
-         if(pos==-1){//如果没有找到就跳过  
-             continue;  
-         }  
-         let argname=pairs[i].substring(0,pos);//提取name  
-         let value=decodeURIComponent(pairs[i].substring(pos+1));//提取value  
-         args[argname]=unescape(value);//存为属性  
-     }  
-    }*/
+const getUrlArgObject = (parm) => {
     let query = window.location.search;
     let args = qs.parse(query.substr(1));
     return args[parm];//返回对象