|
@@ -8,7 +8,7 @@ import close from "./img/close.png";
|
|
|
import PreviewBody from '@components/PreviewBody';
|
|
|
import Empty from '@components/Empty'
|
|
|
import { pushAllDataList,didPushParamChange } from '@utils/tools';
|
|
|
-import { dragBox } from '@utils/drag';
|
|
|
+// import { dragBox } from '@utils/drag';
|
|
|
import { initItemList, setInitHistory } from '@store/async-actions/historyTemplates';
|
|
|
import HistoryCases from '@containers/HistoryCases';
|
|
|
import $ from 'jquery';
|
|
@@ -61,7 +61,7 @@ class HistoryCaseContainer extends React.Component {
|
|
|
}
|
|
|
componentDidMount(){
|
|
|
const {items} = this.props
|
|
|
- dragBox('hisWrapMove','closeHis','add')
|
|
|
+ // dragBox('hisWrapMove','closeHis','add')
|
|
|
setTimeout(() => {
|
|
|
this.handleCaseClick(0, items[0])
|
|
|
}, 50);
|
|
@@ -116,7 +116,7 @@ class HistoryCaseContainer extends React.Component {
|
|
|
store.dispatch(getHistempDetail(activeHis)); // 获取引用数据
|
|
|
const {handleQuoteClick} = this.props;
|
|
|
handleQuoteClick&&handleQuoteClick();
|
|
|
- dragBox('hisWrapMove','closeHis','del');
|
|
|
+ // dragBox('hisWrapMove','closeHis','del');
|
|
|
}
|
|
|
//确认删除病历
|
|
|
makeSureDel(){
|
|
@@ -337,30 +337,19 @@ class HistoryCaseContainer extends React.Component {
|
|
|
};
|
|
|
const barStyle = { background: '#777', width: '100%' };
|
|
|
return (
|
|
|
- <div style={{height: '80%'}}>
|
|
|
<div className={styles.mainHistory} id="hisWrapMove">
|
|
|
- <div className={`${styles.closeHis} drag-title`} id="closeHis"></div>
|
|
|
- <img className={styles.close} src={close} alt="关闭历史病历" onClick={showHistoryBox}/>
|
|
|
+ <div className={styles.mainTop}>
|
|
|
+ <div className={`${styles.closeHis} drag-title`} id="closeHis"></div>
|
|
|
+ <img className={styles.close} src={close} alt="关闭历史病历" onClick={showHistoryBox} />
|
|
|
+ </div>
|
|
|
<div className={styles.mainHistoryLeft}>
|
|
|
<div className={styles.title}>
|
|
|
<span className={styles.his}>历史病历</span>
|
|
|
<span className={styles.sort} onClick={this.handleSortClick}>排序 <img src={sort} alt="排序"/></span>
|
|
|
</div>
|
|
|
<div className={styles.lists}>
|
|
|
- {/* <ScrollArea speed={0.8}
|
|
|
- key= {items.length}
|
|
|
- // ref={this.$scrollRef}
|
|
|
- horizontal={false}
|
|
|
- // stopScrollPropagation={items.length > 6 ? true : false}
|
|
|
- style={{ maxHeight: '722px' }}
|
|
|
- onScroll={(value) => {}}
|
|
|
- className={styles["area"]}
|
|
|
- verticalContainerStyle={contStyle}
|
|
|
- verticalScrollbarStyle={barStyle}
|
|
|
- contentClassName="content"> */}
|
|
|
<ul id="hislistLeft" style={{ maxHeight: '722px',overflow:'auto' }} >
|
|
|
- {(items && items.length > 0) ? items.map((val,idx)=>{
|
|
|
- // return <li key={val.id} className={val.id == activeHistory.id?styles.bgc:''} onClick={(e)=>{this.handleCaseClick(e,idx)}}>
|
|
|
+ {(items && items.length > 0) ? items.map((val,idx)=>{
|
|
|
return <li key={val.id} onClick={() => { this.handleCaseClick(idx, val) }} onMouseEnter={() => this.handleMouseEnterLi(idx)} onMouseLeave={() => this.handleMouseLeaveLi(idx)}>
|
|
|
<div className={styles.itemLeft}>
|
|
|
<div className={styles.historyTop}>
|
|
@@ -387,9 +376,6 @@ class HistoryCaseContainer extends React.Component {
|
|
|
}):<Empty message={'无历史病历'}></Empty>
|
|
|
}
|
|
|
</ul>
|
|
|
-
|
|
|
- {/* </ScrollArea> */}
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
<div className={styles.mainHistoryRight}>
|
|
@@ -453,7 +439,6 @@ class HistoryCaseContainer extends React.Component {
|
|
|
</div>
|
|
|
</ConfirmModal>
|
|
|
</div>
|
|
|
- </div>
|
|
|
)
|
|
|
}
|
|
|
}
|