瀏覽代碼

急诊流程显示问题

Luolei 6 年之前
父節點
當前提交
af5d81ed2b

+ 0 - 1
src/components/CheckBody/index.jsx

@@ -101,7 +101,6 @@ class CheckBody extends Component{
     //有主诉时且本身无数据,第一次点击获取数据,(不论获取成功与否)再点击不获取(直到刷新成空白页或清空)
     if(hasMain&&isEmpty!=false){
       this.props.getInit();
-
     }
   }
   showHide(){

+ 4 - 2
src/components/EmergencyProcedure/index.jsx

@@ -2,6 +2,7 @@ import styles from './index.less';
 import right from './img/right.png';
 import EmergencyModal from './EmergencyModal';
 import $ from 'jquery';
+import ReactDom from "react-dom";
 
 class EmergencyProcedure extends React.Component {
   constructor(props){
@@ -34,7 +35,8 @@ class EmergencyProcedure extends React.Component {
   }
   render(){
     const {data,setDataIdx,idx} = this.props;
-    return <div className={styles.emergencyProdureWrap}>
+    const domNode = document.getElementById('root');
+    return ReactDom.createPortal(<div className={styles.emergencyProdureWrap}>
       <div id="emergencyWrap" className={styles.emergencyWrap}>
         <span id="emergency" className={`${styles.emergency}`} onClick={()=>this.slideToggle(0)}>急</span>
         <span id="emergencys" onClick={()=>this.slideToggle(1)} className={styles.emergency}>急</span>
@@ -44,7 +46,7 @@ class EmergencyProcedure extends React.Component {
       {
         <EmergencyModal idx={idx} handleShow={()=>this.handleShow()} setDataIdx={setDataIdx} show={this.state.show} data={data}></EmergencyModal>
       }
-    </div>
+    </div>,domNode)
   }
 }
 

+ 271 - 271
src/components/PushContainer/index.jsx

@@ -1,297 +1,297 @@
 import React, { Component } from 'react';
 import style from './index.less';
-import { Tab ,ConfirmModal,Notify } from '@commonComp';
-import { tabChange,allChecked,changeVisible,keepPushData,allCheckedShow} from '@store/actions/tabTemplate';
-import { initItemList,delItem,delBatchItem,changeTitleAsync,saveTemplateDetail } from '@store/async-actions/tabTemplate';
+import { Tab, ConfirmModal, Notify } from '@commonComp';
+import { tabChange, allChecked, changeVisible, keepPushData, allCheckedShow } from '@store/actions/tabTemplate';
+import { initItemList, delItem, delBatchItem, changeTitleAsync, saveTemplateDetail } from '@store/async-actions/tabTemplate';
 import { CHANGE_TYPE } from "@store/types/typeConfig";
 import { connect } from "react-redux";
 import store from '@store';
-import {billing} from '@store/async-actions/pushMessage';
+import { billing } from '@store/async-actions/pushMessage';
 import TemplateContainer from '@components/TemplateContainer';
 import TemplateItems from '@components/TemplateItems';
 import PushItemsContainer from '@containers/PushItemsContainer';
-import { pushAllDataList,getWindowInnerHeight,didPushParamChange } from '@utils/tools';
+import { pushAllDataList, getWindowInnerHeight, didPushParamChange } from '@utils/tools';
 import CopyRightContainer from "@containers/CopyRightContainer";
 import MedicalInfoContainer from '@containers/MedicalInfoContainer';
 import ScaleSearchContainer from '@containers/ScaleSearchContainer';
 class PushContainer extends Component {
-    constructor(props) {
-        super(props);
-        this.state = {
-            data: null,
-            tabs: [{
-                title: '辅助信息',
-                disabled: true
-            }, {
-                title: '模板',
-            },
-            {
-                title: '医学知识',
-            },
-            {
-              title: '全部量表',
-            }
-            ],
-            visible:false,
-            message:'',                 //提示的内容
-            type:'',                    //1:删除模板 2:批量删除   3.修改标题   4.引用  
-            id:'',                      //单个删除
-            obj:{},                     //修改模板标题      
-            title:'',                   //修改后的标题
-            okText:'确定',              //确认按钮
-            okBorderColor:'red',
-            oKBg:'',
-            okColor:'red',
-            num:0,          //计数
-        }
-        this.$cont = React.createRef();
-        this.itemList = null;
-        this.handleActiveClick = this.handleActiveClick.bind(this)
-        this.handleContentClick = this.handleContentClick.bind(this)
-        this.handleTemplateDel = this.handleTemplateDel.bind(this)
-        this.handleTitleChange = this.handleTitleChange.bind(this)
-        this.handleAllCheckbox=this.handleAllCheckbox.bind(this)
-        this.handleMangerTemplate=this.handleMangerTemplate.bind(this)
-        this.handleDelList=this.handleDelList.bind(this)
-        this.makeSure=this.makeSure.bind(this)
-        this.handleClose = this.handleClose.bind(this);
-    }
-    componentDidMount(){
-        // const height = getWindowInnerHeight()-160;
-        // this.$cont.current.style.height = height+"px";
-    }
-    /**
-     * 
-     * @param {tab组件切换id} id
-     */
-    handleActiveClick(id) {
-        if(id == '1'){
-            store.dispatch(initItemList());
-        }
-        store.dispatch(tabChange(id))
-    }
-    /**
-     * 引用模板id
-     * @param {模板id} id 
-     */
-    handleContentClick(id,sex) {
-        let baseSex = store.getState().patInfo.message.sex
-        this.setState({
-            message:this.content(sex,baseSex),
-            type:4,
-            id:id,
-            okText:'引用',
-            okBorderColor:'#3B9ED0',
-            okColor:'#fff',
-            oKBg:'#3B9ED0'
-        },()=>{
-            store.dispatch(changeVisible(true))
-        })
-    }
-    content(sex,baseSex){
-        if(sex != 3 && sex != baseSex){
-          return <p className={style['center']}>确认引用该模板?<p style={{fontSize:'12px',color:'#6b6969',marginTop:'10px'}}>引用该模版可能显示有误</p></p>
-        }else{
-          return <p className={style['center']}>确认引用该模板?</p>
-        }
-    }
-    /**
-     * 删除模板
-     * @param {模板id} id 
-     */
-    handleTemplateDel(id) {
-        this.setState({
-            message:this.delDiv(),
-            type:1,
-            id:id,
-            okText:'删除',
-            okBorderColor:'red',
-            okColor:'red',
-            oKBg:'#fff'
-        },()=>{
-            store.dispatch(changeVisible(true))
-        })
-    }
-    delDiv(){
-        return <p className={style['center']}>确认删除模板?</p>
-    }
-    onchange(value){
-        this.setState({
-            title: value
-        },()=>{
-            this.setState({
-                message:this.changeTitle(),
-            })
-        })
-    }
-    keypress(event){
-        let e = event?event:window.event;
-        if(e.keyCode == 13) {
-            this.makeSure()
-        }
-    }
-    handleInput(e){
-      let val = e.target.value
-      if(e.target.value.length > 30){
-          e.target.value = val.substring(0,30)
-          this.onchange(val.substring(0,30))
-      }else{
-          this.onchange(e.target.value)
+  constructor(props) {
+    super(props);
+    this.state = {
+      data: null,
+      tabs: [{
+        title: '辅助信息',
+        disabled: true
+      }, {
+        title: '模板',
+      },
+      {
+        title: '医学知识',
+      },
+      {
+        title: '全部量表',
       }
+      ],
+      visible: false,
+      message: '',                 //提示的内容
+      type: '',                    //1:删除模板 2:批量删除   3.修改标题   4.引用  
+      id: '',                      //单个删除
+      obj: {},                     //修改模板标题      
+      title: '',                   //修改后的标题
+      okText: '确定',              //确认按钮
+      okBorderColor: 'red',
+      oKBg: '',
+      okColor: 'red',
+      num: 0,          //计数
     }
-    changeTitle(){
-        return <div className={style['box']}>
-            <input className={style['ipt']} 
-                placeholder="请输入模板名称"    
-                type="text" 
-                value={this.state.title}
-                maxLength='30'
-                onInput={(e) => {
-                  this.handleInput(e)
-                }}
-                onPropertyChange={(e) => {  // 兼容ie
-                  this.handleInput(e)
-                }}
-                onKeyPress={e=>this.keypress(e)}
-            />
-            <div className={style['line']}></div>
-        </div>
-    }
-    /**
-     * 改变模板标题
-     * @param {模板id和模板title} obj
-     */
-    handleTitleChange(id,text) {
-        store.dispatch(changeVisible(true))
-        this.setState({
-            type:3,
-            currId:id,
-            title:text,
-            text:text,
-            okText:'保存',
-            okBorderColor:'#3B9ED0',
-            okColor:'#fff',
-            oKBg:'#3B9ED0'
-        },()=>{
-            this.setState({
-                message:this.changeTitle(),
-            })
-        })
+    this.$cont = React.createRef();
+    this.itemList = null;
+    this.handleActiveClick = this.handleActiveClick.bind(this)
+    this.handleContentClick = this.handleContentClick.bind(this)
+    this.handleTemplateDel = this.handleTemplateDel.bind(this)
+    this.handleTitleChange = this.handleTitleChange.bind(this)
+    this.handleAllCheckbox = this.handleAllCheckbox.bind(this)
+    this.handleMangerTemplate = this.handleMangerTemplate.bind(this)
+    this.handleDelList = this.handleDelList.bind(this)
+    this.makeSure = this.makeSure.bind(this)
+    this.handleClose = this.handleClose.bind(this);
+  }
+  componentDidMount() {
+    // const height = getWindowInnerHeight()-160;
+    // this.$cont.current.style.height = height+"px";
+  }
+  /**
+   * 
+   * @param {tab组件切换id} id
+   */
+  handleActiveClick(id) {
+    if (id == '1') {
+      store.dispatch(initItemList());
     }
-    
-    handleAllCheckbox(){        //全.反选
-        let tmpFlg = this.props.allChecked;
-        if(this.props.checkItems.length < this.props.items.length && this.props.allChecked){
-            tmpFlg = false;
-        }else if(this.props.checkItems.length == this.props.items.length && !this.props.allChecked){
-            tmpFlg = true;
-        }  //两种特殊情况处理
-        store.dispatch(allChecked(!tmpFlg))
+    store.dispatch(tabChange(id))
+  }
+  /**
+   * 引用模板id
+   * @param {模板id} id 
+   */
+  handleContentClick(id, sex) {
+    let baseSex = store.getState().patInfo.message.sex
+    this.setState({
+      message: this.content(sex, baseSex),
+      type: 4,
+      id: id,
+      okText: '引用',
+      okBorderColor: '#3B9ED0',
+      okColor: '#fff',
+      oKBg: '#3B9ED0'
+    }, () => {
+      store.dispatch(changeVisible(true))
+    })
+  }
+  content(sex, baseSex) {
+    if (sex != 3 && sex != baseSex) {
+      return <p className={style['center']}>确认引用该模板?<p style={{ fontSize: '12px', color: '#6b6969', marginTop: '10px' }}>引用该模版可能显示有误</p></p>
+    } else {
+      return <p className={style['center']}>确认引用该模板?</p>
     }
-    
-    handleMangerTemplate(){      //管理
-        let tmpFlg = this.props.allCheckShow;
-        store.dispatch(allChecked(false))
-        store.dispatch(allCheckedShow(!tmpFlg))
+  }
+  /**
+   * 删除模板
+   * @param {模板id} id 
+   */
+  handleTemplateDel(id) {
+    this.setState({
+      message: this.delDiv(),
+      type: 1,
+      id: id,
+      okText: '删除',
+      okBorderColor: 'red',
+      okColor: 'red',
+      oKBg: '#fff'
+    }, () => {
+      store.dispatch(changeVisible(true))
+    })
+  }
+  delDiv() {
+    return <p className={style['center']}>确认删除模板?</p>
+  }
+  onchange(value) {
+    this.setState({
+      title: value
+    }, () => {
+      this.setState({
+        message: this.changeTitle(),
+      })
+    })
+  }
+  keypress(event) {
+    let e = event ? event : window.event;
+    if (e.keyCode == 13) {
+      this.makeSure()
     }
-    handleDelList(){          //批量删除
-        this.setState({
-            type:2,
-            message:this.delDiv(),
-            okText:'删除',
-            okBorderColor:'red',
-            okColor:'red',
-            oKBg:'#fff'
-        })
-        store.dispatch(changeVisible(true))
+  }
+  handleInput(e) {
+    let val = e.target.value
+    if (e.target.value.length > 30) {
+      e.target.value = val.substring(0, 30)
+      this.onchange(val.substring(0, 30))
+    } else {
+      this.onchange(e.target.value)
     }
-    makeSure(){
-        if(this.state.type == 1) {
-            store.dispatch(delItem(this.state.id))
-            store.dispatch(changeVisible(false))
-        }else if(this.state.type == 2){
-            store.dispatch(delBatchItem(this.props.checkItems))
-            store.dispatch(changeVisible(false))
-        }else if(this.state.type == 3){
-            if(this.state.title == this.state.text){
-                store.dispatch(changeVisible(false))
-                Notify.success('标题修改成功');
-                return;
-            }
-            let tempObj = {
-                id:this.state.currId,
-                title:this.state.title
-            }
-            store.dispatch(changeTitleAsync(tempObj))
-        }else if(this.state.type == 4){        //模板引入
-            const {items} = this.props;
-            items && items.map((part)=>{
-                if(this.state.id == part.id){
-                    let typeConfig = part.type;
-                    store.dispatch(keepPushData(part,'part'))                 //引用数据的存储,用于保存模板是判断数据是否变化
-                    pushAllDataList(typeConfig,'push',part,'template')       //引用
-                    if(didPushParamChange()){
-                      store.dispatch(billing())
-                    }
-                }
-            })
-            store.dispatch(changeVisible(false))
+  }
+  changeTitle() {
+    return <div className={style['box']}>
+      <input className={style['ipt']}
+        placeholder="请输入模板名称"
+        type="text"
+        value={this.state.title}
+        maxLength='30'
+        onInput={(e) => {
+          this.handleInput(e)
+        }}
+        onPropertyChange={(e) => {  // 兼容ie
+          this.handleInput(e)
+        }}
+        onKeyPress={e => this.keypress(e)}
+      />
+      <div className={style['line']}></div>
+    </div>
+  }
+  /**
+   * 改变模板标题
+   * @param {模板id和模板title} obj
+   */
+  handleTitleChange(id, text) {
+    store.dispatch(changeVisible(true))
+    this.setState({
+      type: 3,
+      currId: id,
+      title: text,
+      text: text,
+      okText: '保存',
+      okBorderColor: '#3B9ED0',
+      okColor: '#fff',
+      oKBg: '#3B9ED0'
+    }, () => {
+      this.setState({
+        message: this.changeTitle(),
+      })
+    })
+  }
+
+  handleAllCheckbox() {        //全.反选
+    let tmpFlg = this.props.allChecked;
+    if (this.props.checkItems.length < this.props.items.length && this.props.allChecked) {
+      tmpFlg = false;
+    } else if (this.props.checkItems.length == this.props.items.length && !this.props.allChecked) {
+      tmpFlg = true;
+    }  //两种特殊情况处理
+    store.dispatch(allChecked(!tmpFlg))
+  }
+
+  handleMangerTemplate() {      //管理
+    let tmpFlg = this.props.allCheckShow;
+    store.dispatch(allChecked(false))
+    store.dispatch(allCheckedShow(!tmpFlg))
+  }
+  handleDelList() {          //批量删除
+    this.setState({
+      type: 2,
+      message: this.delDiv(),
+      okText: '删除',
+      okBorderColor: 'red',
+      okColor: 'red',
+      oKBg: '#fff'
+    })
+    store.dispatch(changeVisible(true))
+  }
+  makeSure() {
+    if (this.state.type == 1) {
+      store.dispatch(delItem(this.state.id))
+      store.dispatch(changeVisible(false))
+    } else if (this.state.type == 2) {
+      store.dispatch(delBatchItem(this.props.checkItems))
+      store.dispatch(changeVisible(false))
+    } else if (this.state.type == 3) {
+      if (this.state.title == this.state.text) {
+        store.dispatch(changeVisible(false))
+        Notify.success('标题修改成功');
+        return;
+      }
+      let tempObj = {
+        id: this.state.currId,
+        title: this.state.title
+      }
+      store.dispatch(changeTitleAsync(tempObj))
+    } else if (this.state.type == 4) {        //模板引入
+      const { items } = this.props;
+      items && items.map((part) => {
+        if (this.state.id == part.id) {
+          let typeConfig = part.type;
+          store.dispatch(keepPushData(part, 'part'))                 //引用数据的存储,用于保存模板是判断数据是否变化
+          pushAllDataList(typeConfig, 'push', part, 'template')       //引用
+          if (didPushParamChange()) {
+            store.dispatch(billing())
+          }
         }
+      })
+      store.dispatch(changeVisible(false))
     }
-    handleClose(){
-      store.dispatch(changeVisible(false));
-    }
-    render() {
-        const {activeId,checkItems,visible,showMsg,items,allCheckShow} = this.props;
-        return <div className={style["container"]} ref={this.$cont} >
-            <Tab tabs={this.state.tabs}
-                activeId={activeId}
-                handleActiveClick={this.handleActiveClick}
-            >
-                <TemplateContainer activeId={activeId}>
-                    <PushItemsContainer></PushItemsContainer>
-                    <TemplateItems
-                        items={items}
-                        checkItems={checkItems}
-                        allCheckShow={allCheckShow}
-                        handleContentClick={this.handleContentClick}
-                        handleTemplateDel={this.handleTemplateDel}
-                        handleTitleChange={this.handleTitleChange}
-                        handleDelList={this.handleDelList}
-                        handleMangerTemplate={this.handleMangerTemplate}
-                        handleAllCheckbox={this.handleAllCheckbox}
-                    ></TemplateItems>
-                    <MedicalInfoContainer></MedicalInfoContainer>
-                    <ScaleSearchContainer></ScaleSearchContainer>
-                </TemplateContainer>
-            </Tab>
-            <ConfirmModal 
-                visible={visible}
-                confirm={this.makeSure}
-                close={this.handleClose}
-                cancel={this.handleClose}
-                okText={this.state.okText}
-                okBorderColor={this.state.okBorderColor}
-                okColor={this.state.okColor}
-                oKBg={this.state.oKBg}
-            >
-                {this.state.message}
-            </ConfirmModal>
-            <CopyRightContainer />
-        </div>  
-    }
+  }
+  handleClose() {
+    store.dispatch(changeVisible(false));
+  }
+  render() {
+    const { activeId, checkItems, visible, showMsg, items, allCheckShow } = this.props;
+    return <div className={style["container"]} ref={this.$cont} >
+      <Tab tabs={this.state.tabs}
+        activeId={activeId}
+        handleActiveClick={this.handleActiveClick}
+      >
+        <TemplateContainer activeId={activeId}>
+          <PushItemsContainer></PushItemsContainer>
+          <TemplateItems
+            items={items}
+            checkItems={checkItems}
+            allCheckShow={allCheckShow}
+            handleContentClick={this.handleContentClick}
+            handleTemplateDel={this.handleTemplateDel}
+            handleTitleChange={this.handleTitleChange}
+            handleDelList={this.handleDelList}
+            handleMangerTemplate={this.handleMangerTemplate}
+            handleAllCheckbox={this.handleAllCheckbox}
+          ></TemplateItems>
+          <MedicalInfoContainer></MedicalInfoContainer>
+          <ScaleSearchContainer></ScaleSearchContainer>
+        </TemplateContainer>
+      </Tab>
+      <ConfirmModal
+        visible={visible}
+        confirm={this.makeSure}
+        close={this.handleClose}
+        cancel={this.handleClose}
+        okText={this.state.okText}
+        okBorderColor={this.state.okBorderColor}
+        okColor={this.state.okColor}
+        oKBg={this.state.oKBg}
+      >
+        {this.state.message}
+      </ConfirmModal>
+      <CopyRightContainer />
+    </div>
+  }
 }
 
 const mapStateToProps = (state) => {
-    return {
-        items: state.tabTemplate.items,
-        activeId:state.tabTemplate.activeId,
-        checkItems:state.tabTemplate.checkItems,
-        allChecked:state.tabTemplate.allChecked,
-        visible:state.tabTemplate.visible,
-        showMsg:state.tabTemplate.showMsg,
-        allCheckShow:state.tabTemplate.allCheckShow,
-    }
+  return {
+    items: state.tabTemplate.items,
+    activeId: state.tabTemplate.activeId,
+    checkItems: state.tabTemplate.checkItems,
+    allChecked: state.tabTemplate.allChecked,
+    visible: state.tabTemplate.visible,
+    showMsg: state.tabTemplate.showMsg,
+    allCheckShow: state.tabTemplate.allCheckShow,
+  }
 }
 
 export default connect(mapStateToProps, null)(PushContainer);

+ 15 - 3
src/components/PushItems/index.jsx

@@ -17,6 +17,8 @@ import {ConfirmModal} from '@commonComp';
 import ChronicInfo from '@containers/ChronicInfo';//慢病推送模块
 import RecommendInspect from './RecommendInspect';
 import TipsMsg from './TipsMsg'
+import dataLis from '@components/EmergencyProcedure/emergency';
+import EmergencyProcedure from '@components/EmergencyProcedure';
 
 class PushItems extends Component {
   constructor(props) {
@@ -26,7 +28,8 @@ class PushItems extends Component {
       moreAssay: false,
       moreCheck: false,
       show:true,
-      showAssess:false      //评估弹窗
+      showAssess:false,      //评估弹窗
+      idx:''
     };
 
     this.showMore = this.showMore.bind(this);
@@ -37,6 +40,7 @@ class PushItems extends Component {
     this.showTips = this.showTips.bind(this);
     this.hideTips = this.hideTips.bind(this);
     this.$cont = React.createRef();
+    this.setDataIdx = this.setDataIdx.bind(this)
   }
 
   showMore(type) {
@@ -137,6 +141,11 @@ class PushItems extends Component {
     });
   }
 
+  setDataIdx(index){
+    this.setState({
+      idx:index+''
+    })
+  }
   render() {
     const {
       vigilant,
@@ -151,7 +160,7 @@ class PushItems extends Component {
       tipsDetails,
       tmpFlg,
     } = this.props.pushMessage;
-    const { tipsDiscalimer,chronicPushItems,wholeIndexs} = this.props;
+    const { tipsDiscalimer,chronicPushItems,wholeIndexs,setPushEmergencyIdx,sysConfig} = this.props;
     const {
       billing,
       changeCheck,
@@ -162,7 +171,6 @@ class PushItems extends Component {
     const vigilants = vigilant.map((item, index) => {
       return <div key={item.id} className={style['push-diag-item']}><DiagnosticItem item={item} type='disSelect'/></div>;
     });
-
     return (
       <div className={style["push-content-wrapper"]}>
         <div className={style["push-content"]} ref={this.$cont}>
@@ -269,6 +277,10 @@ class PushItems extends Component {
             showTipsDetails = {showTipsDetails}
             hideTips = {this.hideTips}
             tipsDetails = {tipsDetails}/>}
+            
+            {
+              (setPushEmergencyIdx+'')&&(sysConfig.emergency_show==1)&&<EmergencyProcedure data={dataLis[this.state.idx]||dataLis[setPushEmergencyIdx]} idx={this.state.idx||setPushEmergencyIdx} setDataIdx={this.setDataIdx}></EmergencyProcedure>
+            }
       </div>
     );
   }

+ 2 - 0
src/containers/PushItemsContainer.js

@@ -16,6 +16,8 @@ function mapStateToProps(state) {
         tableList: pushMessage.tableList,
         showList: pushMessage.showList,
         chronicPushItems: pushMessage.chronicPushItems,
+        setPushEmergencyIdx: state.pushMessage.setPushEmergencyIdx || '',  
+        sysConfig:state.homePage.sysConfig
     }
 }
 

+ 2 - 17
src/modules/HomePage/index.jsx

@@ -3,13 +3,11 @@ import { connect } from "react-redux";
 import BannerContainer from '@containers/TypeConfigContainer';
 //  引入组件
 import BodyContainer from "@components/BodyContainer";
-import EmergencyProcedure from '@components/EmergencyProcedure';
 
 import {HIDEDROP,SETMINSCREEN,SETSYSTEMCONFIG} from '@store/types/homePage.js';
 import style from './index.less';
 import {getInitModules,getChronic,getSystemConfig} from '@store/async-actions/homePage.js';
 import { getUrlArgObject,parseNameVal } from "@utils/tools";
-import dataLis from '@components/EmergencyProcedure/emergency';
 import $ from 'jquery';
 import loading from '@common/images/loading.gif';
 class HomePage extends Component {
@@ -17,10 +15,7 @@ class HomePage extends Component {
         super();
         this.state={
             timer:null,
-            dataEmergency:{},
-            idx:''
         }
-        this.setDataIdx = this.setDataIdx.bind(this)
     }
     componentDidMount(){
         const {setWindow,getChronicList,getConfig} = this.props;
@@ -48,20 +43,12 @@ class HomePage extends Component {
             } 
         })
     }
-    setDataIdx(index){
-      this.setState({
-        idx:index+''
-      })
-    }
     render() {
-        const {flag,setPushEmergencyIdx,sysConfig} = this.props;
+        const {flag} = this.props;
         return <div className={style['home-page']} onClick={this.props.hideAllDrop}>
             <BannerContainer />
             {/* <InfoTitle /> */}
             <BodyContainer></BodyContainer>
-            {
-              (setPushEmergencyIdx+'')&&(sysConfig.emergency_show==1)?<EmergencyProcedure data={dataLis[this.state.idx]||dataLis[setPushEmergencyIdx]} idx={this.state.idx||setPushEmergencyIdx} setDataIdx={this.setDataIdx}></EmergencyProcedure>:null
-            }
           {flag?<div className={style['mask']}>
                 <img src={loading} className={style['load']}/>
             </div>:""}
@@ -71,9 +58,7 @@ class HomePage extends Component {
 
 const mapStateToProps = function (state) {
   return {
-    flag:state.homePage.loadingFlag,
-    setPushEmergencyIdx: state.pushMessage.setPushEmergencyIdx || '',  
-    sysConfig:state.homePage.sysConfig
+    flag:state.homePage.loadingFlag
   }
 };
 const mapDispatchToProps = function (dispatch) {