|
@@ -38,8 +38,9 @@ class Inspect extends React.Component {
|
|
this.handleSearchShow = this.handleSearchShow.bind(this)
|
|
this.handleSearchShow = this.handleSearchShow.bind(this)
|
|
}
|
|
}
|
|
delConfirm(){//弹窗确定
|
|
delConfirm(){//弹窗确定
|
|
- const{delPartItem,handleCloseExcel} = this.props;
|
|
|
|
- const{type,id} = this.state;
|
|
|
|
|
|
+ const {delPartItem,handleCloseExcel} = this.props;
|
|
|
|
+ const {type,id} = this.state;
|
|
|
|
+ console.log(id)
|
|
if(type==1){
|
|
if(type==1){
|
|
delPartItem(id)
|
|
delPartItem(id)
|
|
}else if(type==2){
|
|
}else if(type==2){
|
|
@@ -58,6 +59,7 @@ class Inspect extends React.Component {
|
|
id:idx,
|
|
id:idx,
|
|
visible:true
|
|
visible:true
|
|
})
|
|
})
|
|
|
|
+ console.log(idx)
|
|
if(type==1){//单项
|
|
if(type==1){//单项
|
|
this.setState({
|
|
this.setState({
|
|
toastText:'是否删除该化验项?'
|
|
toastText:'是否删除该化验项?'
|
|
@@ -102,7 +104,7 @@ class Inspect extends React.Component {
|
|
let date = info.year+'-'+(info.month<10?'0'+info.month:info.month)+'-'+(info.day<10?'0'+info.day:info.day);
|
|
let date = info.year+'-'+(info.month<10?'0'+info.month:info.month)+'-'+(info.day<10?'0'+info.day:info.day);
|
|
this.setState({dateTime:date,date:false})
|
|
this.setState({dateTime:date,date:false})
|
|
}
|
|
}
|
|
- handleSearchShow(e) {console.log(666);
|
|
|
|
|
|
+ handleSearchShow(e) {
|
|
let tmpShow = this.state.show;
|
|
let tmpShow = this.state.show;
|
|
this.setState({ show: !tmpShow })
|
|
this.setState({ show: !tmpShow })
|
|
// e.stopPropagation();
|
|
// e.stopPropagation();
|
|
@@ -267,11 +269,11 @@ class Inspect extends React.Component {
|
|
<div className={styles.wrapper}>
|
|
<div className={styles.wrapper}>
|
|
<div className={styles.check}>
|
|
<div className={styles.check}>
|
|
{
|
|
{
|
|
- getExcelDataList.length > 0 && getExcelDataList.map((items,idx)=>{
|
|
|
|
|
|
+ getExcelDataList.length > 0 && getExcelDataList.map((items,index)=>{
|
|
return <div style={{marginTop:'10px'}}>
|
|
return <div style={{marginTop:'10px'}}>
|
|
{
|
|
{
|
|
items && items.lisExcelRes.length > 0 ? <ul className={styles.excelDataLists}>
|
|
items && items.lisExcelRes.length > 0 ? <ul className={styles.excelDataLists}>
|
|
- <img className={styles.close} src={close} alt="关闭导入excel数据" onClick={(idx)=>{this.handleDelClick(2,idx)}}/>
|
|
|
|
|
|
+ <img className={styles.close} src={close} alt="关闭导入excel数据" onClick={()=>{this.handleDelClick(2,index)}}/>
|
|
{
|
|
{
|
|
items.lisExcelRes.map((item,idx)=>{
|
|
items.lisExcelRes.map((item,idx)=>{
|
|
return <li className={styles.excelDataLis} style={{border:items.lisExcelRes.length-1 == idx? 0:''}}>
|
|
return <li className={styles.excelDataLis} style={{border:items.lisExcelRes.length-1 == idx? 0:''}}>
|
|
@@ -370,7 +372,7 @@ class Inspect extends React.Component {
|
|
: null
|
|
: null
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
- <img className={styles.partDel} src={close} alt="删除项" onClick={(idx)=>{this.handleDelClick(1,idx)}}/>
|
|
|
|
|
|
+ <img className={styles.partDel} src={close} alt="删除项" onClick={()=>{this.handleDelClick(1,idx)}}/>
|
|
</li>
|
|
</li>
|
|
})
|
|
})
|
|
}
|
|
}
|