import React from 'react'; import AddAssistCheck from '../AddAssistCheck'; import { ItemBox, ConfirmModal, WrapModalContainer } from '@commonComp'; import styles from './index.less'; import Notify from '@commonComp/Notify'; import $ from 'jquery'; import { isIE, getUrlArgObject } from '@utils/tools.js'; import { dragBox } from '@utils/drag'; import WrapModalBodyPac from '@containers/WrapModalBodyPac'; import { getExcelList } from '@store/actions/inspect'; import { host, prefix } from '@utils/config.js'; class AssistCheck extends React.Component { constructor(props){ super(props); this.state={ val: '', visible: false, dom: [], isIE: isIE(), ieVersion: null, height: '-1', hide: false, importLis:false } this.showSlideImport=this.showSlideImport.bind(this) // this.handleBindFileApi=this.handleBindFileApi.bind(this) this.checkSystemIpt=this.checkSystemIpt.bind(this) this.closeInIcss=this.closeInIcss.bind(this) this.onClose=this.onClose.bind(this) this.handleImportExcel=this.handleImportExcel.bind(this) this.refreshScroller = this.refreshScroller.bind(this); } handleImportExcel() { this.inputRef.click(); } showSlideImport(){ let flg = this.state.importLis this.setState({ importLis:!flg }) } onClose() { this.setState({ hide: false }) dragBox('previewWrapper', 'previewStatic', 'del') } checkSystemIpt() { this.setState({ hide: true }) } closeInIcss(){ this.setState({ hide: false }) } refreshScroller(){ //更新滚动条状态,解决容器变大滚动条不更新bug return this.context.scrollArea; //this.context.scrollArea.scrollBottom(); } render(){ const {setHighter,checkedListImport,list,getInfomation,windowHeight,hospitalMsg,assistLabel,assistVal,handleChangeValue,handleSign,fetchPushInfos,handleDelAssist,handleChangeAssistValue,handleChangeDate,isRead,winWidth,assistList} = this.props; const {showSlideImport,checkSystemIpt,onClose,closeInIcss} = this; const {importLis,ieVersion,hide} = this.state; // if(JSON.stringify(hospitalMsg) != {} && document.getElementById("choose")){//动态绑定只绑定一次 // ++numFlg // numFlg == 1?handleBindFileApi():null // } return (
辅检结果数据 {/*
9 ? true : false} onClick={checkSystemIpt}>

导入辅检结果

*/} { hospitalMsg.import_way_pacs == 1 ?
9 ? true : false} onClick={ieVersion && ieVersion <= 9 ? null : this.handleImportExcel}>

导入辅检结果

this.inputRef = DOM} />
: hospitalMsg.import_way_pacs == 2 ?
9 ? true : false} onClick={checkSystemIpt}>

导入辅检结果

: hospitalMsg.import_way_pacs == 3 ?

导入辅检结果

{ importLis?
  • 本地导入
    this.inputRef = DOM} />
  • 从设备导入
:null }
: null } { hide ? : null }
) } } AssistCheck.contextTypes = { scrollArea: React.PropTypes.object }; export default AssistCheck;