|
@@ -54,12 +54,12 @@ class DiagnosticItem extends Component{
|
|
|
// visible: false,
|
|
|
// },()=>{
|
|
|
const { diagnosticList, addDiagnostic, clearInput, hideSearch } = this.props;
|
|
|
- for (let i = 0; i < diagnosticList.length; i++) {
|
|
|
- if(diagnosticList[i].id === item.id && diagnosticList[i].name === item.name) {
|
|
|
- Notify.info('该诊断已存在');
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
+ // for (let i = 0; i < diagnosticList.length; i++) {
|
|
|
+ // if(diagnosticList[i].id === item.id && diagnosticList[i].name === item.name) {
|
|
|
+ // Notify.info('该诊断已存在');
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // }
|
|
|
addDiagnostic&&addDiagnostic(item);
|
|
|
clearInput&&clearInput();
|
|
|
hideSearch&&hideSearch()
|