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 (
导入辅检结果
导入辅检结果
this.inputRef = DOM} />导入辅检结果
导入辅检结果
{ importLis?