|
@@ -1,9 +1,9 @@
|
|
|
import React from 'react';
|
|
|
-import { SearchOption, Calendar, ConfirmModal, Notify, Add ,DelToast,getCurrentDate} from '@commonComp';
|
|
|
+import { SearchOption, Calendar, ConfirmModal, Notify, Add ,DelToast} from '@commonComp';
|
|
|
import styles from './index.less';
|
|
|
import $ from 'jquery';
|
|
|
import Textarea from './Textarea';
|
|
|
-import { getPageCoordinate } from '@utils/tools';
|
|
|
+import { getPageCoordinate,getCurrentDate } from '@utils/tools';
|
|
|
import close from './img/close.png';
|
|
|
|
|
|
class AddAssistCheck extends React.Component {
|
|
@@ -81,7 +81,7 @@ class AddAssistCheck extends React.Component {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- this.getCurrentDate();
|
|
|
+ getCurrentDate(1);
|
|
|
}
|
|
|
handleSearchShow(e) {
|
|
|
let tmpShow = this.state.show;
|
|
@@ -165,7 +165,7 @@ class AddAssistCheck extends React.Component {
|
|
|
second: tmp2[2]
|
|
|
}
|
|
|
}
|
|
|
- return (<li key={item.questionId} className={`${styles.assistLists} ${styles.clearfix}`}>
|
|
|
+ return (<li className={`${styles.assistLists} ${styles.clearfix}`}>
|
|
|
<span className={styles.assistName} style={{ width: winWidth < 1200 ? '120px' : 'auto' }}>
|
|
|
<span className={styles.tagSpan}>
|
|
|
{item.name}:
|
|
@@ -173,11 +173,18 @@ class AddAssistCheck extends React.Component {
|
|
|
</span>
|
|
|
</span>
|
|
|
<div className={styles.textareaWrap}>
|
|
|
- <Textarea value={item.value} handlePush={handlePush} isRead={isRead} handleChangeAssistValue={handleChangeAssistValue} idx={idx}></Textarea>
|
|
|
+ <Textarea value={item.value} disabled={item.disabled} handlePush={handlePush} isRead={isRead} handleChangeAssistValue={handleChangeAssistValue} idx={idx}></Textarea>
|
|
|
</div>
|
|
|
<div className={styles.pointerFinger}>
|
|
|
- <p onClick={() => this.handleShowDate(idx)}>报告日期:<span>{item.time || this.state.dateTime}</span></p>
|
|
|
- <i onClick={() => this.handleShowDate(idx)}></i>
|
|
|
+ {
|
|
|
+ item.disabled?<React.Fragment>
|
|
|
+ <p>报告日期:<span>{item.time || this.state.dateTime}</span></p>
|
|
|
+ <i></i>
|
|
|
+ </React.Fragment>:<React.Fragment>
|
|
|
+ <p onClick={() => this.handleShowDate(idx)}>报告日期:<span>{item.time || this.state.dateTime}</span></p>
|
|
|
+ <i onClick={() => this.handleShowDate(idx)}></i>
|
|
|
+ </React.Fragment>
|
|
|
+ }
|
|
|
{/*<a href="javascript:void(0);" onClick={() => { this.handleDelClick(idx,item) }}><img src={close} alt="" /></a>*/}
|
|
|
<span className={styles.closeIcon} id="assiClose" onClick={() => { this.handleDelClick(idx,item) }}></span>
|
|
|
{
|