|
@@ -183,7 +183,7 @@ class AddAssistCheck extends React.Component {
|
|
|
}
|
|
|
|
|
|
getAssistLabel() {
|
|
|
- const { assistLabel,checkedListImport, handleChangeAssistValue, handleChangeDate, isRead, handlePush, winWidth,getInfomation,assistList } = this.props;
|
|
|
+ const { assistLabel,checkedListImport, handleChangeAssistValue,checkOnOff, handleChangeDate, isRead, handlePush, winWidth,getInfomation,assistList } = this.props;
|
|
|
const { visible,activeName,id,date } = this.state;
|
|
|
//出现滚动条时阻止滚动冒泡,未出现时不阻止,否则外部滚动条滚不动
|
|
|
const showedBar = $("#datePick .scrollbar-container").length===1;
|
|
@@ -196,42 +196,6 @@ class AddAssistCheck extends React.Component {
|
|
|
background:'#f1f1f1'};
|
|
|
const barStyle={background:'#777',width:'100%'};
|
|
|
return <React.Fragment>
|
|
|
- {
|
|
|
- checkedListImport.map((part,index)=>{
|
|
|
- return <ul className={`${styles.labelWrap} ${styles.labelWrapSpec} ${styles.labelWrapSpecs}`}>
|
|
|
- {
|
|
|
- part.map((item, idx) => {
|
|
|
- return (<li className={`${styles.assistLists} ${styles.clearfix}`}>
|
|
|
- <AssistName name={item.name} winWidth={winWidth} getInfomation={getInfomation} normal={true}></AssistName>
|
|
|
- <div className={`${styles.textareaWrap} ${setFontColorSize(2,1)}`}>
|
|
|
- <ScrollArea speed={0.8}
|
|
|
- horizontal={false}
|
|
|
- stopScrollPropagation={showedBar?true:false}
|
|
|
- style={{maxHeight:'100px'}}
|
|
|
- className={styles["area"]}
|
|
|
- verticalContainerStyle={contStyle}
|
|
|
- verticalScrollbarStyle={barStyle}
|
|
|
- contentClassName="content">
|
|
|
- <Textarea value={item.value} disabled={item.disabled} handlePush={handlePush} isRead={isRead} handleChangeAssistValue={handleChangeAssistValue} idx={idx}></Textarea>
|
|
|
- </ScrollArea>
|
|
|
- </div>
|
|
|
- <div className={`${styles.pointerFinger} ${setFontColorSize(2,2)}`}>
|
|
|
- <p>报告日期:<span>{item.time || this.state.dateTime}</span></p>
|
|
|
- </div>
|
|
|
- </li>)
|
|
|
- })
|
|
|
- }
|
|
|
- <DelToast show={index==id&&part.name==activeName?visible:false}
|
|
|
- name="该导入项"
|
|
|
- right={'-34px'}
|
|
|
- top={'22px'}
|
|
|
- cancel={this.handleCancel}
|
|
|
- confirm={()=>this.delConfirm(0)}/>
|
|
|
- <span className={`${styles.closeIcon} ${styles.closeIcons}`} id="assiClose" onClick={()=>{ this.handleDelClick(index,part)}}></span>
|
|
|
- </ul>
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
<ul className={styles.labelWrap} id="datePick">
|
|
|
{
|
|
|
assistLabel.map((item, idx) => {
|
|
@@ -256,7 +220,7 @@ class AddAssistCheck extends React.Component {
|
|
|
<span className={styles.imgInfo} title='点击i图标可查看详细说明' onClick={()=>getInfomation({name: item.name, position: 1, type: 6})}></span>
|
|
|
</span>
|
|
|
</span> */}
|
|
|
- <AssistName name={item.name} winWidth={winWidth} getInfomation={getInfomation}></AssistName>
|
|
|
+ <AssistName item={item} checkOnOff={checkOnOff} name={item.name} winWidth={winWidth} getInfomation={getInfomation}></AssistName>
|
|
|
<div className={`${styles.textareaWrap} ${setFontColorSize(2,1)}`}>
|
|
|
<ScrollArea speed={0.8}
|
|
|
horizontal={false}
|