Przeglądaj źródła

Merge branch 'dev/new' into dev/zhangxc

zhangxc 6 lat temu
rodzic
commit
65a61b65d4
67 zmienionych plików z 391 dodań i 486 usunięć
  1. 2 0
      src/common/components/CheckBox/Select/index.less
  2. 2 0
      src/common/components/CheckBox/index.less
  3. 4 0
      src/common/components/ConfirmModal/index.less
  4. 8 1
      src/common/components/EditableSpan/index.jsx
  5. 1 1
      src/common/components/EditableSpan/index.less
  6. 1 1
      src/common/components/ItemBox/index.less
  7. 3 2
      src/common/components/Loading/index.less
  8. 2 0
      src/common/components/MixCheckBox/index.less
  9. 3 3
      src/common/components/Modal/index.less
  10. 2 0
      src/common/components/Normal/index.less
  11. 2 0
      src/common/components/RadioB/index.less
  12. 0 1
      src/common/components/SearchOption/index.jsx
  13. 1 2
      src/common/components/TailInlineTag/index.less
  14. 9 17
      src/common/components/Textarea/index.jsx
  15. 1 1
      src/common/components/Textarea/index.less
  16. BIN
      src/common/images/Printing.png
  17. 0 0
      src/common/images/printing.png
  18. 1 1
      src/components/AddAssistCheck/index.less
  19. 0 6
      src/components/AddInspect/index.less
  20. 12 4
      src/components/Banner/index.jsx
  21. 3 1
      src/components/Banner/index.less
  22. 1 0
      src/components/CopyRight/index.jsx
  23. 5 1
      src/components/CopyRight/index.less
  24. 1 1
      src/components/DiagnosticList/index.jsx
  25. 1 1
      src/components/HistoryCaseContainer/HistoryList/index.less
  26. 4 4
      src/components/HistoryCaseContainer/index.less
  27. 2 0
      src/components/InfoTitle/index.less
  28. 13 4
      src/components/Inspect/index.jsx
  29. 9 0
      src/components/Inspect/index.less
  30. 17 25
      src/components/MainSuit/index.jsx
  31. 17 3
      src/components/Operation/index.jsx
  32. 3 1
      src/components/Preview/index.less
  33. 2 0
      src/components/PreviewBody/index.less
  34. 3 1
      src/components/PrintPreview/index.less
  35. 146 206
      src/components/PushItems/index.jsx
  36. 9 9
      src/components/PushItems/index.less
  37. 3 1
      src/components/SearchDrop/index.jsx
  38. 2 0
      src/components/SearchDrop/index.less
  39. 3 3
      src/components/SpreadDrop/index.jsx
  40. 1 2
      src/components/TemplateItems/index.jsx
  41. 2 1
      src/containers/CheckBody.js
  42. 2 11
      src/containers/CurrentIll.js
  43. 1 1
      src/containers/EditableSpan.js
  44. 1 1
      src/containers/InlineTag.js
  45. 4 13
      src/containers/MainSuit.js
  46. 1 11
      src/containers/NumberDrop.js
  47. 1 10
      src/containers/NumberUnitDrop.js
  48. 0 7
      src/containers/OtherHistory.js
  49. 1 9
      src/containers/RadioDrop.js
  50. 18 24
      src/containers/SpreadDrop.js
  51. 1 2
      src/containers/eleType.js
  52. 13 0
      src/main.js
  53. 3 3
      src/store/actions/checkBody.js
  54. 2 2
      src/store/actions/mainSuit.js
  55. 6 12
      src/store/actions/otherHistory.js
  56. 1 1
      src/store/actions/pushMessage.js
  57. 1 1
      src/store/async-actions/copyRight.js
  58. 19 2
      src/store/async-actions/fetchModules.js
  59. 1 1
      src/store/async-actions/mainSuit.js
  60. 1 5
      src/store/async-actions/patInfo.js
  61. 1 2
      src/store/async-actions/pushMessage.js
  62. 3 3
      src/store/async-actions/treat.js
  63. 0 1
      src/store/types/checkBody.js
  64. 5 3
      src/utils/ajax.js
  65. 1 1
      src/utils/config.js
  66. 2 55
      src/utils/tools.js
  67. 1 1
      static/pages/hisLib/infomation.js

+ 2 - 0
src/common/components/CheckBox/Select/index.less

@@ -37,6 +37,8 @@
   .nospecialDis{
     color:#000000;
     opacity: 0.3;
+    filter:alpha(opacity=30);
+    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=30);";
     cursor: auto;
   }
 }

+ 2 - 0
src/common/components/CheckBox/index.less

@@ -63,6 +63,8 @@
 .nospecialDis{
   color:#000000;
   opacity: 0.3;
+  filter:alpha(opacity=30);
+  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=30);";
   cursor: auto;
 }
 .firstSel{

+ 4 - 0
src/common/components/ConfirmModal/index.less

@@ -65,6 +65,8 @@
 
 .modal-operator-close:active, .modal-operator-confirm:active {
     opacity: .6;
+    filter:alpha(opacity=60);
+    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=60);";
     transition: opacity .3s;
 }
 
@@ -76,5 +78,7 @@
     bottom: 0;
     background: #000;
     opacity: .6;
+    filter:alpha(opacity=60);
+    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=60);";
     z-index: 9998;
 }

+ 8 - 1
src/common/components/EditableSpan/index.jsx

@@ -1,8 +1,10 @@
 import React,{Component} from 'react';
 import style from './index.less';
 import config from "@config/index";
-import {filterArr,handleEnter} from '@utils/tools.js';
+import {filterArr,handleEnter,isIE} from '@utils/tools.js';
 import Notify from '../Notify/index.js';
+
+import $ from 'jquery';
 /*****
  * author:zn@2018-12-10
  * 自由文本输入组件
@@ -147,6 +149,11 @@ class EditableSpan extends Component{
     if(value){
       this.$span.current.innerText = value||'';
     }
+    if(isIE()){
+      $(this.$span.current).onIe8Input(function(e){
+        this.onChange(e)
+      },this);
+    }
   }
 
   render() {

+ 1 - 1
src/common/components/EditableSpan/index.less

@@ -6,7 +6,7 @@
   // line-height: 2;
   /*height: 20px;*/
   line-height: 16px;
-  /*vertical-align: middle;*/
+  vertical-align: middle;
   text-align: center;
 }
 .full{

+ 1 - 1
src/common/components/ItemBox/index.less

@@ -16,7 +16,7 @@
   }
   .content{
     // height:120px;
-    min-height: 38px;
+    min-height: 44px;
     margin-left: 60px;
     position: relative;
     padding:5px;

+ 3 - 2
src/common/components/Loading/index.less

@@ -9,8 +9,9 @@
     width: 100%;
     height: 100%;
     background: #333;
-    opacity: .4;
-    filter:alpha(opacity=40);
+    opacity: .6;
+    filter:alpha(opacity=60);
+    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=60);";
   }
   .info{
     position: absolute;

+ 2 - 0
src/common/components/MixCheckBox/index.less

@@ -52,6 +52,8 @@
 }
 .disabled{
   opacity: 0.3;
+  filter:alpha(opacity=30);
+  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=30);";
 }
 .multiple-tab{
   // width: 200px;

+ 3 - 3
src/common/components/Modal/index.less

@@ -9,10 +9,10 @@
     left: 0;
     z-index: 1001;
     background-color: #272c36;
-    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; /*IE8*/  
+    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; /*IE8*/
     // filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);//兼容ie8及以下/
-    filter: alpha(opacity=30);  /*IE5、IE5.5、IE6、IE7*/  
-    opacity: .3;
+    filter: alpha(opacity=60);  /*IE5、IE5.5、IE6、IE7*/
+    opacity: .6;
 }
 .content {
     background: #fff;

+ 2 - 0
src/common/components/Normal/index.less

@@ -19,4 +19,6 @@
 }
 .disabled{
   opacity: 0.3;
+  filter:alpha(opacity=30);
+  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=30);";
 }

+ 2 - 0
src/common/components/RadioB/index.less

@@ -18,6 +18,8 @@
   }
   .disabled{
     opacity: 0.3;
+    filter:alpha(opacity=30);
+    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=30);";
   }
 }
 .selected{

+ 0 - 1
src/common/components/SearchOption/index.jsx

@@ -54,7 +54,6 @@ class SearchOption extends React.Component {
                 <input
                     className={this.state.border ?`${styles.border}`:`${styles.borderNone}`}
                     type="text"
-                    maxLength="30"
                     ref={this.textInput}
                     onFocus={()=>{
                         if(this.state.val.trim() != ''){

+ 1 - 2
src/common/components/TailInlineTag/index.less

@@ -5,11 +5,10 @@
   padding: 0 3px 3px;
 }
 .tag-container{
-  margin:5px 2px;
+  margin:5px 0;
   display: inline-block;
   position: relative;
   cursor: pointer;
-  line-height: 14px;
   /* span:hover{
     color: @blue;
   } */

+ 9 - 17
src/common/components/Textarea/index.jsx

@@ -3,14 +3,14 @@ import style from "./index.less";
 import Notify from '../Notify';
 import config from '@config/index';
 import {setLastPosition} from '@common/js/util';
+import {isIE} from '@utils/tools.js';
+import $ from "jquery";
 
 class Textarea extends Component {
   constructor(props) {
     super(props);
     this.state = {
-      timer:null,
-      inpText:'',
-      overFlag:false
+      timer:null
     };
     this.$dom = React.createRef();
     this.handleInput = this.handleInput.bind(this);
@@ -29,31 +29,18 @@ class Textarea extends Component {
   }
   handleInput(e){
     const {handleInput,boxMark,handlePush,hasMain} = this.props;
-    const {inpText,overFlag} = this.state;
     const text = e.target.innerText;
     const stimer = this.state.timer;
     if(boxMark=='1'&&text.length>config.limited){           //主诉字符数限制
-      e.target.innerText = text.substr(0,config.limited); 
+      e.target.innerText = text.substr(0,config.limited);
       e.target.blur();
       Notify.error(config.limitText);
-      if(overFlag){
-        e.target.innerText = inpText;
-        return
-      }
-      this.setState({
-        inpText:text.substr(0,config.limited),
-        overFlag:true
-      })
       return;
     }
     if(boxMark=='3'&&!hasMain){
       e.target.innerText = '';
       return;
     }
-    this.setState({
-      inpText:text,
-      overFlag:false
-    })
 
     //存值到store
     handleInput&&handleInput({text});
@@ -84,6 +71,11 @@ class Textarea extends Component {
     if(value){
       this.$dom.current.innerText = value||'';
     }
+    if(isIE()){
+      $(this.$dom.current).onIe8Input(function(e){
+        this.handleInput(e)
+      },this);
+    }
   }
   render() {
     const { title } = this.props;

+ 1 - 1
src/common/components/Textarea/index.less

@@ -16,7 +16,7 @@
   }
   .content{
     // height:120px;
-    min-height: 38px;
+    min-height: 44px;
     line-height: 22px;
     margin-left: 60px;
     position: relative;

BIN
src/common/images/Printing.png


src/common/images/icon_print_blue.png → src/common/images/printing.png


+ 1 - 1
src/components/AddAssistCheck/index.less

@@ -85,7 +85,7 @@
             display: inline-block;
             height: 18px;
             line-height: 18px;
-            // border-bottom: 1px solid #333;
+            border-bottom: 1px solid #333;
             box-sizing: border-box;
             // margin-right: 8px;
         }

+ 0 - 6
src/components/AddInspect/index.less

@@ -190,10 +190,4 @@
             }
         }
     }
-}
-.center {
-    text-align: center;
-    font-size: 16px;
-    padding-top: 10px;
-    padding-bottom: 50px;
 }

+ 12 - 4
src/components/Banner/index.jsx

@@ -10,7 +10,8 @@ class Banner extends Component {
   constructor(props){
     super(props)
     this.state = {
-      mode: props.typeConfig
+      mode: props.typeConfig,
+      zIndex:40
     };
     this.showConfigModal = this.showConfigModal.bind(this);
     this.closeConfigModal = this.closeConfigModal.bind(this);
@@ -20,13 +21,17 @@ class Banner extends Component {
 
   showConfigModal(){
     this.setState({
-      mode:this.props.typeConfig
+      mode:this.props.typeConfig,
+      zIndex:202
     });
     this.props.showConfigModal()
   }
 
   closeConfigModal(){
     this.props.closeConfigModal();
+    this.setState({
+      zIndex:40
+    })
   }
 
   changeType(typeConfig){
@@ -44,6 +49,9 @@ class Banner extends Component {
     }
     confirmType&&confirmType(mode);
     this.closeConfigModal()
+    this.setState({
+      zIndex:40
+    })
   }
   /*componentDidUpdate(){
     const {failed} = this.props;
@@ -54,11 +62,11 @@ class Banner extends Component {
   }*/
   render() {
     const {visible} = this.props;
-    const {mode} = this.state;
+    const {mode,zIndex} = this.state;
     const {showConfigModal, closeConfigModal, changeType, confirmType} = this;
 
     return (
-      <div className={style["logo"]} >
+      <div className={style["logo"]} style={{zIndex:zIndex}}>
         <img src={logo} />
         <span>|&nbsp;&nbsp;智能辅助临床决策系统</span>
         <div className={style["buon"]} onClick={showConfigModal}>

+ 3 - 1
src/components/Banner/index.less

@@ -42,7 +42,9 @@
         right: 0;
         bottom: 0;
         background: #000;
-        opacity: 0.3;
+        opacity: 0.6;
+        filter:alpha(opacity=60);
+        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=60);";
         z-index: 2000;
       }
       .content {

+ 1 - 0
src/components/CopyRight/index.jsx

@@ -24,6 +24,7 @@ class CopyRight extends Component {
 
   showCopyModal() {
     this.props.showCopyModal();
+    console.log(this.props.copyRight.hasNewVersion)
     if(this.props.copyRight.hasNewVersion) {
       this.props.closeVersionTip()
     }

+ 5 - 1
src/components/CopyRight/index.less

@@ -41,7 +41,9 @@
       right: 0;
       bottom:0;
       background: #000;
-      opacity: 0.2;
+      opacity: 0.6;
+      filter:alpha(opacity=60);
+      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=60);";
     }
     .copyModal {
       .copyContent{
@@ -74,6 +76,8 @@
         }
         .content {
           padding: 10px;
+          max-height: 500px;
+          overflow-y: auto;
         }
       }
     }

+ 1 - 1
src/components/DiagnosticList/index.jsx

@@ -80,7 +80,7 @@ class DiagnosticList extends Component {
         return(
                 <div className={style['diaglist-wrap']}>
                     {list && (list.length > 0) && list.map((item, index) => {
-                        const hasTreat = item.treat.commonTreatment && item.treat.surgeryTreatment && item.treat.treatment.length>0
+                        const hasTreat = item.treat&&item.treat.commonTreatment && item.treat.surgeryTreatment && item.treat.treatment.length>0
                         return (<div draggable={true} className={style['diag-box'] + ' clearfix'}  key={item.id} >
                                     {index === 0 ? '' : <span className={style['diag-up']} onClick={() => {this.upDiagnostic(index)}}><img src={diagUp}/></span>}
                                     {list.length === 1 ? '' : index !== 0 ? '' : <span onClick={() => {this.downDiagnostic(index)}} className={style['diag-down']}><img src={diagDown}/></span>}

+ 1 - 1
src/components/HistoryCaseContainer/HistoryList/index.less

@@ -10,7 +10,7 @@
     top: 70px;
     bottom: 70px;
     background-color: #fff;
-    z-index: 242;
+    z-index: 235;
     .close {
         position: absolute;
         top: 0;

+ 4 - 4
src/components/HistoryCaseContainer/index.less

@@ -3,13 +3,13 @@
     position: fixed;
     left: 0;
     top: 0;
-    z-index: 241;
+    z-index: 230;
     width: 100%;
     height: 100%;
     background-color: #000;
-    opacity:0.5;
-    filter:alpha(opacity=50);  
-    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=50);";
+    opacity:0.6;
+    filter:alpha(opacity=60);
+    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=60);";
 }
 .center {
     text-align: center;

+ 2 - 0
src/components/InfoTitle/index.less

@@ -36,6 +36,8 @@
 .health{
     opacity: 0.3;
     color: rgba(0,0,0,0.6);
+    filter:alpha(opacity=30);
+    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=30);";
 }
 
 

+ 13 - 4
src/components/Inspect/index.jsx

@@ -7,6 +7,7 @@ import Notify from '@commonComp/Notify';
 import store from '@store';
 import $ from 'jquery';
 import { host } from '@utils/config.js';
+import {isIE} from '@utils/tools.js';
 
 
 (function ($) {
@@ -35,7 +36,8 @@ class Inspect extends React.Component {
         this.state = {
             val: '',
             visible:false,
-            dom:[]
+            dom:[],
+            isIE:isIE()
         }
         this.handleImportExcel = this.handleImportExcel.bind(this)
         this.cancel = this.cancel.bind(this)
@@ -65,7 +67,7 @@ class Inspect extends React.Component {
                 if( files.length ){
                     console.log(files[0])
                     FileAPI.upload({
-                        url: 'http://192.168.2.236/api/icss/lisExcelRes/lisExcelAnalysis',
+                        url: '/api/icss/lisExcelRes/lisExcelAnalysis',
                         data:{ hospitalCode:baseData == '{}'? '' : baseData.hospitalCode },
                         files: { uploadfile: files[0] },
                         headers:{
@@ -102,6 +104,13 @@ class Inspect extends React.Component {
     cancel(){
         this.setState({visible:false})
     }
+  getStyle(){
+        if(this.state.isIE){
+            return styles.disabledBtn;
+        }else{
+            return styles.button;
+        }
+  }
     getWarings(lis){
         <ul>
             {
@@ -121,8 +130,8 @@ class Inspect extends React.Component {
 
                 <div className={styles.top}>
                     <span>化验结果数据</span>
-                    <div className={styles.button} onClick={this.handleImportExcel}>
-                        <button>导入化验结果</button>    
+                    <div className={this.getStyle()} onClick={this.state.isIE?null:this.handleImportExcel}>
+                        <button disabled={this.state.isIE?true:false}>导入化验结果</button>
                         <input type="file" name="uploadfile" id="choose" style={{ display: 'none' }} ref={(DOM) => this.inputRef = DOM} />
                     </div>
                 </div>

+ 9 - 0
src/components/Inspect/index.less

@@ -22,6 +22,15 @@
         border: 1px solid @template-color;
         overflow: hidden;
     }
+    .disabledBtn{
+        float: right;
+        border-radius: 5px;
+        border: 1px solid @placeholder-color;
+        overflow: hidden;
+        button{
+            color:@placeholder-color;
+        }
+    }
     button {
         outline: none;
         font-size: 12px;

+ 17 - 25
src/components/MainSuit/index.jsx

@@ -23,8 +23,7 @@ class MainSuit extends Component{
       timer:null,
       blurTimer:null,
       inpText:'',
-      clearTimer:null,
-      overFlag:false
+      clearTimer:null
     };
     this.toggleEditable = this.toggleEditable.bind(this);
     this.handleFocus = this.handleFocus.bind(this);
@@ -58,8 +57,10 @@ class MainSuit extends Component{
 
   handleFocus(e){
     e.stopPropagation();
-    const {getCommonSymptoms} = this.props;
+    const {getCommonSymptoms,reTotalHide,pushMessage} = this.props;
     let innerText = e.target.innerText;
+    pushMessage&&pushMessage();//右侧推送
+    // reTotalHide && reTotalHide();//重置全局隐藏
     if(!innerText.trim()){//有内容就走搜索接口
       getCommonSymptoms && getCommonSymptoms();
       this.setState({
@@ -67,8 +68,7 @@ class MainSuit extends Component{
       })    
     }else{
       this.setState({
-        symptom:false,
-        inpText:innerText
+        symptom:false
       }) 
     }
 
@@ -132,29 +132,22 @@ class MainSuit extends Component{
     })
   }
 
-  handleChange(e){
+  handleChange(e){  
     const data = e.target.innerText;
-    const {getSearchData,searchData,datas,pushMessage,reTotalHide} = this.props;
-    const {overFlag,inpText} = this.state;
+    const {getSearchData,searchData,datas,freeText,saveText,reTotalHide} = this.props;
     reTotalHide && reTotalHide();//重置homePage中的控制项
     const that = this;
-    if(data.length > config.limited){
-      Notify.info(config.limitText);
-      e.target.innerText = text.substr(0,config.limited);  //输入法内输入多个字再按enter的情况
+    if(data.trim().length > config.limited){
+      e.target.innerText = data.substr(0,config.limited);
       e.target.blur();
-      if(overFlag){
-        e.target.innerText = inpText;
-        return
-      }
+      Notify.info(config.limitText);
       this.setState({
-        inpText:data.substr(0,config.limited),
-        overFlag:true
+        inpText:data.substr(0,config.limited),//输入法内输入多个字再按enter的情况
       })
       return false;
     }
     this.setState({
-      inpText:data,
-      overFlag:false
+      inpText:data
     })
     if(datas.length > 0){//使用模板
       return false;
@@ -174,17 +167,16 @@ class MainSuit extends Component{
     const timer = setTimeout(function(){
       //调搜索接口 使用模板走EditableSpan里的搜索方法
       getSearchData && getSearchData({inpStr:data,boxMark:1});
-    },config.delayTime);
+    },config.delayTime)
     this.setState({
       timer
-    });
-
+    });   
   }
 
   handleBlur(e){//隐藏常见症状下拉、存自由输入的值
-    const {freeText,saveText,datas} = this.props;
+    const {freeText,saveText} = this.props;
     const that = this;
-    let data = this.state.inpText;
+    let data = this.state.inpText;  
     e.target.innerText="";
     freeText && freeText(data.trim());
     // 延时关闭常见症状下拉,不延时会影响选中
@@ -214,7 +206,7 @@ class MainSuit extends Component{
       fuzhen={fuzhen} 
       title='主诉' 
       editable={editClear||datas.length==0?true:false} 
-      boxLineHeight="24px"
+      boxLineHeight="22px" 
       handleFocus={this.handleFocus} 
       onchange={(e)=>{this.handleChange(e)}} 
       handleClick={this.handleClick} 

+ 17 - 3
src/components/Operation/index.jsx

@@ -1,6 +1,6 @@
 import React, { Component } from "react";
 import style from "./index.less";
-import printImg from '@common/images/icon_print_blue.png';
+import printImg from '@common/images/printing.png';
 import preview from '@common/images/preview.png';
 import saveHistory from '@common/images/saveHistory.png';
 import PrintPreviewContainer from '@containers/PrintPreviewContainer';
@@ -22,7 +22,8 @@ class Operation extends Component {
       okColor: '',
       oKBg: '',
       msg: '',
-      type: ''
+      type: '',
+      zIndex:40
     }
     this.showPrint = this.showPrint.bind(this);
     this.closePrint = this.closePrint.bind(this);
@@ -35,19 +36,31 @@ class Operation extends Component {
   }
 
   showPrint() {
+    this.setState({
+      zIndex:240
+    })
     this.props.showPrintPreview()
   }
 
   closePrint() {
+    this.setState({
+      zIndex:40
+    })
     this.props.closePrintPreview()
   }
 
 
   showPreview() {
+    this.setState({
+      zIndex:240
+    })
     this.props.showPreview()
   }
 
   closePreview() {
+    this.setState({
+      zIndex:40
+    })
     this.props.closePreview()
   }
 
@@ -244,8 +257,9 @@ class Operation extends Component {
   render() {
     const { showPrint, closePrint, showPreview, closePreview } = this;
     const { visible, preVisible } = this.props.print;
+    const {zIndex} = this.state;
 
-    return <div className={style['container']} >
+    return <div className={style['container']} style={{zIndex:zIndex}}>
       <button className={style['button']} onClick={showPrint}><img src={printImg} /> 打印病历</button>
       <button className={style['preButton']} onClick={showPreview}><img src={preview} /> 预览</button>
       <button className={style['preButton']} onClick={() => { this.saveHis(3) }}><img src={saveHistory} /> 保存病历模板</button>

+ 3 - 1
src/components/Preview/index.less

@@ -8,7 +8,9 @@
     right: 0;
     bottom: 0;
     background-color: #000;
-    opacity: 0.2;
+    opacity: 0.6;
+    filter:alpha(opacity=60);
+    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=60);";
   }
   .modal {
     width: 820px;

+ 2 - 0
src/components/PreviewBody/index.less

@@ -18,6 +18,8 @@
 
     .line{
       opacity: 0.2;
+      filter:alpha(opacity=20);
+      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=20);";
       background: #FFFFFF;
       border: 1px solid #979797;
       margin:  45px 0px 15px 0px;

+ 3 - 1
src/components/PrintPreview/index.less

@@ -8,7 +8,9 @@
       right: 0;
       bottom: 0;
       background-color: #000;
-      opacity: 0.2;
+      opacity: 0.6;
+      filter:alpha(opacity=60);
+      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=60);";
     }
     .modal {
       width: 820px;

+ 146 - 206
src/components/PushItems/index.jsx

@@ -7,12 +7,11 @@ import tipsImg from "../../common/images/tips.png";
 import vigilantImg from "../../common/images/vigilant.png";
 import showImg from "../../common/images/show.png";
 import hideImg from "../../common/images/close.png";
+import closeImg from "./img/close.png";
 import CopyRightContainer from "@containers/CopyRightContainer";
 import PushDiag from "./PushDiag";
-import DiagnosticItem from "@containers/DiagnosticItem";
+import DiagnosticItem from '@containers/DiagnosticItem';
 import $ from "jquery";
-import { getWindowInnerHeight } from "@common/js/func";
-import {windowEventHandler} from '@utils/tools'
 
 class PushItems extends Component {
   constructor(props) {
@@ -20,7 +19,7 @@ class PushItems extends Component {
 
     this.state = {
       moreAssay: false,
-      moreCheck: false
+      moreCheck: false,
     };
 
     this.showMore = this.showMore.bind(this);
@@ -29,7 +28,6 @@ class PushItems extends Component {
     this.changeAssay = this.changeAssay.bind(this);
     this.changeCheck = this.changeCheck.bind(this);
     this.showTips = this.showTips.bind(this);
-    this.$cont = React.createRef();
   }
 
   showMore(type) {
@@ -45,11 +43,11 @@ class PushItems extends Component {
     const checkedAssay = assay.filter(item => item.checked);
     const checkedCheck = check.filter(item => item.checked);
     this.props.billing(checkedAssay, checkedCheck);
-    const Height = $(".src-components-BodyContainer-2SgEx").height();
-    const adviceHeight = $(".src-common-components-ItemBox-1Bpz3").height();
+    const Height = $('.src-components-BodyContainer-2SgEx').height()
+    const adviceHeight = $('.src-common-components-ItemBox-1Bpz3').height()
     const winHeight = window.innerHeight;
-    const scrollTop = Height;
-    document.documentElement.scrollTop = 10000;
+    const scrollTop = Height 
+    document.documentElement.scrollTop = scrollTop;
   }
 
   changeAssay(item) {
@@ -64,28 +62,23 @@ class PushItems extends Component {
     const { getTipsDetails } = this.props;
     getTipsDetails && getTipsDetails();
   }
-  componentDidMount() {
-    const height = getWindowInnerHeight() - 200;
-    this.$cont.current.style.height = height + "px";
 
-    windowEventHandler('resize', ()=>{
-      const height = getWindowInnerHeight() - 200;
-      this.$cont.current.style.height = height + "px";
-    });
-  }
 
   render() {
     const {
-      vigilant,
-      determine,
+	  vigilant,
+	  determine,
       doubt,
       possible,
       assay,
       check,
-      tips
+      tips,
     } = this.props.pushMessage;
     const { tipsDiscalimer } = this.props;
-    const { moreAssay, moreCheck } = this.state;
+    const {
+      moreAssay,
+      moreCheck,
+    } = this.state;
     const {
       showMore,
       closeMore,
@@ -105,7 +98,7 @@ class PushItems extends Component {
         return (
           <span>
             <input
-              id={item.id + item.name}
+              id = {item.id + item.name}
               onChange={() => changeAssay(item)}
               type="checkbox"
               checked={item.checked}
@@ -120,7 +113,7 @@ class PushItems extends Component {
       return (
         <span>
           <input
-            id={item.id + item.name}
+            id = {item.id + item.name}
             onChange={() => changeAssay(item)}
             type="checkbox"
             checked={item.checked}
@@ -139,7 +132,7 @@ class PushItems extends Component {
         return (
           <span>
             <input
-              id={item.id + item.name}
+              id = {item.id + item.name}
               onChange={() => changeCheck(item)}
               type="checkbox"
               checked={item.checked}
@@ -154,7 +147,7 @@ class PushItems extends Component {
       return (
         <span>
           <input
-            id={item.id + item.name}
+            id = {item.id + item.name}
             onChange={() => changeCheck(item)}
             type="checkbox"
             checked={item.checked}
@@ -165,199 +158,146 @@ class PushItems extends Component {
     });
 
     const vigilants = vigilant.map((item, index) => {
-      return <DiagnosticItem item={item} />;
+        return (
+          <DiagnosticItem item={item}/>
+        );
     });
 
     return (
-      <div className={style["push-content-wrapper"]}>
-        <div className={style["push-content"]} ref={this.$cont}>
-          <div style = {{width: '420px'}}>
-            {vigilant && vigilant.length > 0 && (
-              <div className={style["vigilant"]}>
-                <div className={style["title"]}>
-                  <img src={vigilantImg} />
-                  警惕
-                </div>
-                <div className={style["vigilantContent"]}>{vigilants}</div>
-              </div>
-            )}
-            {/* 不展示确诊 */}
-            {/* {determine && determine.length>0 && <PushDiag titleBg='#FAEBEC' icon={possibleImg} title='确诊' diagList={determine} maxShowNum={28}/>} */}
-            {doubt && doubt.length > 0 && (
-              <PushDiag
-                titleBg="#FAEBEC"
-                icon={doubtImg}
-                title="疑似诊断"
-                diagList={doubt}
-                maxShowNum={28}
-              />
-            )}
-            {possible && possible.length > 0 && (
-              <PushDiag
-                titleBg="#FAEBEC"
-                icon={possibleImg}
-                title="可能诊断"
-                diagList={possible}
-                maxShowNum={28}
-              />
-            )}
-            <div className={style["diagnose"]}>
-              {vigilant.length === 0 &&
-                determine.length === 0 &&
-                doubt.length === 0 &&
-                possible.length === 0 && (
-                  <div className={style["doubt"]}>
-                    <h1>
-                      <img src={doubtImg} />
-                      疑似诊断
-                    </h1>
-                    <div className={style["no-push"]}>无</div>
-                  </div>
-                )}
+      <div className={style["content"]}>
+        {vigilant && vigilant.length > 0 &&
+           (<div className={style["vigilant"]}>
+            <div className={style["title"]}>
+              <img src={vigilantImg} />
+              警惕
             </div>
-
-            <div className={style["recommend"]}>
-              <h1>
-                <img src={recommendImg} />
-                推荐检验检查<div onClick={billing}>开单</div>
-              </h1>
-              <div>
-                {assay.length === 0 && check.length === 0 ? (
-                  "无"
-                ) : (
-                  <ul>
-                    <li className={style["firstLi"]}>
-                      <div className={style["title"]}>化验:</div>
-                      <div className={style["content"]}>
-                        {assay.length === 0
-                          ? "无"
-                          : moreAssay
-                          ? assays
-                          : assayHide}
-                        {assayNum > 28 ? (
-                          <span
-                            style={
-                              moreAssay
-                                ? { display: "none" }
-                                : { display: "inline-block" }
-                            }
-                            className={style["show"]}
-                            onClick={() => showMore("moreAssay")}
-                          >
-                            更多
-                            <img src={showImg} />
-                          </span>
-                        ) : (
-                          ""
-                        )}
-                        <span
-                          style={
-                            moreAssay
-                              ? { display: "inline-block" }
-                              : { display: "none" }
-                          }
-                          className={style["close"]}
-                          onClick={() => closeMore("moreAssay")}
-                        >
-                          收起
-                          <img src={hideImg} />
-                        </span>
-                      </div>
-                    </li>
-                    <li className={style["lastLi"]}>
-                      <div className={style["title"]}>检查:</div>
-                      <div className={style["content"]}>
-                        {check.length === 0
-                          ? "无"
-                          : moreCheck
-                          ? checks
-                          : checkHide}
-                        {checkNum > 28 ? (
-                          <span
-                            style={
-                              moreCheck
-                                ? { display: "none" }
-                                : { display: "inline-block" }
-                            }
-                            className={style["show"]}
-                            onClick={() => showMore("moreCheck")}
-                          >
-                            更多
-                            <img src={showImg} />
-                          </span>
-                        ) : (
-                          ""
-                        )}
-                        <span
-                          style={
-                            moreCheck
-                              ? { display: "inline-block" }
-                              : { display: "none" }
-                          }
-                          className={style["close"]}
-                          onClick={() => closeMore("moreCheck")}
-                        >
-                          收起
-                          <img src={hideImg} />
-                        </span>
-                      </div>
-                    </li>
-                  </ul>
-                )}
-              </div>
-            </div>
-            <div className={style["tips"]}>
-              <h1>
-                <img src={tipsImg} />
-                提示信息
-              </h1>
-              <div className={style["content"]}>
-                {tips && tips.introduceDetailList ? (
-                  <div>
-                    <div className={style["title"]}>
-                      {tips.tagName}
+            <div className={style["vigilantContent"]}>{vigilants}</div>
+          </div>
+    )}
+    {/* 不展示确诊 */}
+		{/* {determine && determine.length>0 && <PushDiag titleBg='#FAEBEC' icon={possibleImg} title='确诊' diagList={determine} maxShowNum={28}/>} */}
+		{doubt && doubt.length>0 && <PushDiag titleBg='#FAEBEC' icon={doubtImg} title='疑似诊断' diagList={doubt} maxShowNum={28}/>}
+		{possible && possible.length>0 && <PushDiag titleBg='#FAEBEC' icon={possibleImg} title='可能诊断' diagList={possible} maxShowNum={28}/>}
+        <div className={style["diagnose"]}>
+			{ vigilant.length === 0 && determine.length === 0 && doubt.length === 0 && possible.length === 0 && (<div className={style["doubt"]}>
+				<h1>
+				<img src={doubtImg} />
+				疑似诊断
+				</h1>
+				<div className={style['no-push']}>无</div>
+			</div>)}
+        </div>
+        <div className={style["recommend"]}>
+          <h1>
+            <img src={recommendImg} />
+            推荐检验检查<div onClick={billing}>开单</div>
+          </h1>
+          <div>
+            {assay.length === 0 && check.length === 0 ? (
+              "无"
+            ) : (
+              <ul>
+                <li className={style["firstLi"]}>
+                  <div className={style["title"]}>化验:</div>
+                  <div className={style["content"]}>
+                    {assay.length === 0 ? "无" : moreAssay ? assays : assayHide}
+                    {assayNum > 28 ? (
                       <span
-                        className={style["tips-details"]}
-                        onClick={() => showTips(tips)}
+                        style={
+                          moreAssay ? { display: "none" } : { display: "inline-block" }
+                        }
+                        className={style["show"]}
+                        onClick={() => showMore("moreAssay")}
                       >
-                        详情
+                        更多
+                        <img src={showImg} />
                       </span>
-                    </div>
-                    {tips.introduceDetailList &&
-                      tips.introduceDetailList.map((item, index) => {
-                        return (
-                          item.position.indexOf("1") > -1 && (
-                            <div>
-                              <div
-                                dangerouslySetInnerHTML={{
-                                  __html: item.title
-                                }}
-                              />
-                              <div
-                                dangerouslySetInnerHTML={{
-                                  __html: item.content
-                                }}
-                              />
-                              {item.isReason === 1 && (
-                                <div className={style["warn"]}>
-                                  {tipsDiscalimer.data.data[0].description}
-                                </div>
-                              )}
-                            </div>
-                          )
-                        );
-                      })}
+                    ) : (
+                      ""
+					)}
+					<span  style={
+                        moreAssay ? { display: "inline-block" } : { display: "none" }
+                      }
+                      className={style["close"]}
+                      onClick={() => closeMore("moreAssay")}>收起
+                      <img src={hideImg} />
+					</span>
                   </div>
-                ) : (
-                  "无"
-                )}
+                </li>
+                <li className={style["lastLi"]}>
+                  <div className={style["title"]}>检查:</div>
+                  <div className={style["content"]}>
+                    {check.length === 0 ? "无" : moreCheck ? checks : checkHide}
+                    {checkNum > 28 ? (
+                      <span
+                        style={
+                          moreCheck ? { display: "none" } : { display: "inline-block" }
+                        }
+                        className={style["show"]}
+                        onClick={() => showMore("moreCheck")}
+                      >
+                        更多
+                        <img src={showImg} />
+                      </span>
+                    ) : (
+                      ""
+					)}
+					<span style={
+                        moreCheck ? { display: "inline-block" } : { display: "none" }
+                      }
+                      className={style["close"]}
+                      onClick={() => closeMore("moreCheck")}>
+						 收起
+                      <img src={hideImg} />
+					</span>
+                  </div>
+                </li>
+              </ul>
+            )}
+          </div>
+        </div>
+        <div className={style["tips"]}>
+          <h1>
+            <img src={tipsImg} />
+            提示信息
+          </h1>
+          <div className={style["content"]}>
+            {tips ? (
+              tips.introduceDetailList&&<div>
+                <div className={style["title"]}>
+                  {tips.name}
+                  <span
+                    className={style["tips-details"]}
+                    onClick={() => showTips(tips)}
+                  >
+                    详情
+                  </span>
+                </div>
+                {tips.introduceDetailList&&tips.introduceDetailList.map((item, index) => {
+                  return (
+                    item.position.indexOf("1") > -1 && (
+                      <div>
+                        <div dangerouslySetInnerHTML={{ __html: item.title }} />
+                        <div
+                          dangerouslySetInnerHTML={{ __html: item.content }}
+                        />
+                        {item.isReason === 1 && (
+                          <div className={style["warn"]}>
+                            {tipsDiscalimer.data.data[0].description}
+                          </div>
+                        )}
+                      </div>
+                    )
+                  );
+                })}
               </div>
-            </div>
+            ) : (
+              "无"
+            )}
           </div>
         </div>
-
         <CopyRightContainer />
-      </div>
+    </div>
     );
   }
 }

+ 9 - 9
src/components/PushItems/index.less

@@ -1,14 +1,8 @@
 @import "~@less/variables.less";
-.push-content-wrapper{
+.content{
   // padding-top: 50px;
   padding: 0px 20px;
-  line-height: 20px; 
-  width: 460px;
-  overflow: hidden;
-  .push-content {
-    width: 480px;
-    overflow-y: scroll;
-  }
+  line-height: 20px;
   .vigilant{
     background: #FF8D54;
     overflow: hidden;
@@ -185,6 +179,8 @@
     .content{
       font-size: 12px;
       padding:6px 15px;
+      max-height: 220px;
+      overflow: auto;
       .title {
         font-size: 14px;
         line-height: 18px;
@@ -234,6 +230,8 @@
       bottom: 0;
       background: #000;
       opacity: 0.3;
+      filter:alpha(opacity=30);
+      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=30);";
       z-index: 3000;
     }
     .content {
@@ -299,7 +297,9 @@
       right:0;
       bottom: 0;
       background: #000;
-      opacity: 0.3;
+      opacity: 0.6;
+      filter:alpha(opacity=60);
+      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=60);";
       z-index: 2000;
     }
     .message{

+ 3 - 1
src/components/SearchDrop/index.jsx

@@ -52,10 +52,12 @@ class SearchDrop extends Component{
     // onShow&&onShow(e,false);
   }
   render(){
+    let litext = '';
     return <div className={this.getClass()} contenteditable="false" id="searchBox" style={this.getStyle()}>
       <ul>
         {this.props.data&&this.props.data.map((it)=>{
-          return <li onClick={(e)=>this.handleSelect(e,it)}>{it.showType==1?it.name:it.name+'('+it.retrievalName+')'}</li>
+          litext = it.showType==1?it.name:it.name+'('+it.retrievalName+')';
+          return <li onClick={(e)=>this.handleSelect(e,it)} title={litext}>{litext}</li>
         })}
       </ul>
     </div>

+ 2 - 0
src/components/SearchDrop/index.less

@@ -9,6 +9,8 @@
     border:1px #fff solid;
     padding: 0 20px 0 30px;
     white-space: nowrap;
+    text-overflow: ellipsis;
+    overflow: hidden;
     cursor: pointer;
   }
   li:hover{

+ 3 - 3
src/components/SpreadDrop/index.jsx

@@ -152,8 +152,8 @@ class SpreadDrop extends Component{
   }
   handleConfirm(e){
     e.stopPropagation();
-    const {handleConfirm,ikey,type,tagType,order,mainSaveText,copyType} = this.props;
-    const params = Object.assign({},this.state,{ikey,type,tagType,order,mainSaveText,copyType});
+    const {handleConfirm,ikey,type,tagType,order,mainSaveText} = this.props;
+    const params = Object.assign({},this.state,{ikey,type,tagType,order,mainSaveText});
     handleConfirm&&handleConfirm(params);
 	this.btnClickFlag = true;
     //点确定后隐藏弹窗
@@ -231,7 +231,7 @@ class SpreadDrop extends Component{
       })
       exists = existsData;
     }else if(noneIds.includes(id)){
-      nones = nones.replace(name+'、','');
+      nones = nones.replace(name,'');
       noneIds.splice(noneIds.indexOf(id),1);
     }else if(withsIds.includes(id)){
       let withsData = withs;

+ 1 - 2
src/components/TemplateItems/index.jsx

@@ -6,7 +6,6 @@ import check_circle from './TemplateItem/img/check-circle.png';
 import check_right from './TemplateItem/img/check-right.png';
 import Empty from '@components/Empty';
 import {getWindowInnerHeight} from '@common/js/func';
-import {windowEventHandler} from '@utils/tools'
 
 
 class TemplateItems extends React.Component {
@@ -18,7 +17,7 @@ class TemplateItems extends React.Component {
     componentDidMount(){
         const height = getWindowInnerHeight()-172;
         this.$cont.current.style.height = height+"px";
-        windowEventHandler('resize', ()=>{
+        window.addEventListener('resize', ()=>{
             const height = getWindowInnerHeight()-172;
             this.$cont.current.style.height = height+"px";
         });

+ 2 - 1
src/containers/CheckBody.js

@@ -1,7 +1,8 @@
 import {connect} from 'react-redux';
 import CheckBody from '@components/CheckBody';
 import {getModule,getInitData} from '@store/async-actions/fetchModules.js';
-import {HIDE,RESET,SETDROPSHOW} from '@store/types/homePage.js';
+import {SETDROPSHOW} from '@types/homePage.js';
+import {HIDE,RESET} from '@store/types/homePage.js';
 import {SELECTSEARCHDATA} from "@store/types/checkBody";
 import {billing} from '@store/async-actions/pushMessage';
 

+ 2 - 11
src/containers/CurrentIll.js

@@ -6,10 +6,9 @@ import {SET_CURRENT_ILL} from '@store/types/fillInfo'
 import {pushMessage} from '../store/async-actions/pushContainer';
 import {getModules} from '../store/async-actions/fetchModules.js';
 import {SETDROPSHOW} from '@types/homePage.js';
-import {HIDE,RESET,CLICKCOUNT,ISREAD} from '@store/types/homePage.js';
+import {HIDE,RESET,CLICKCOUNT} from '@store/types/homePage.js';
 import {billing} from '@store/async-actions/pushMessage';
 import {getModule} from '@store/async-actions/fetchModules.js';
-import {didPushParamChange} from '@utils/tools.js';
 
 
 function mapStateToProps(state) {
@@ -55,12 +54,10 @@ function mapDispatchToProps(dispatch) {
         });
         dispatch({
           type:INSERT_PROCESS,
-        });
-        dispatch({
-          type:ISREAD
         })
        },
        async setData(info){//设置现病史使用模板
+        dispatch(billing);//右侧推送
         let idsArr = info.mainIds;
         let ids = idsArr.join(",");
         let labelModule = await getModules(ids);
@@ -74,12 +71,6 @@ function mapDispatchToProps(dispatch) {
           type:SET_CURRENT_DATA,
           info
         })
-         //右侧推送
-         setTimeout(function(){      //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
-           if(didPushParamChange()){     //操作后内容有变化才推送
-             dispatch(billing);
-           }
-         },500);
        },
         setCurrentIll: value => {
           dispatch({type: SET_CURRENT_ILL, value})

+ 1 - 1
src/containers/EditableSpan.js

@@ -167,7 +167,7 @@ function mapDispatchToProps(dispatch,state) {
       //右侧推送
       clearTimeout(timer);
       let timer = setTimeout(function(){      //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
-        if(didPushParamChange()){     //操作后内容有变化才推送
+        if(didPushParamChange&&didPushParamChange()){     //操作后内容有变化才推送
           dispatch(billing);
           clearTimeout(timer);
         }

+ 1 - 1
src/containers/InlineTag.js

@@ -25,7 +25,7 @@ function mapDispatchToProps(dispatch,store){
       const type = params.ikey.substr(0,1);    //当前所在的项目
       const {ikey,text,prefix,suffix} = params;
       const i = getLabelIndex(ikey);
-      const inner = params.ikey.substr(params.ikey.length-1);
+      const inner = params.ikey.substr(-1);
       dispatch({
         type:tagInpActions[+type],
         i,

+ 4 - 13
src/containers/MainSuit.js

@@ -2,12 +2,12 @@ import React from 'react';
 import { connect } from 'react-redux';
 import MainSuit from '@components/MainSuit';
 import {CLEAR_COMSYMPTOMS,SHOW_TAIL,INSERT_MAIN,CLEAR_SEARCH,SET_SEARCH,SAVE_FREE,SET_DATA,INSERT_SEARCH,SETTEXTMODEVALUE} from '@store/types/mainSuit';
-import {RESET,CLICKCOUNT,ISREAD} from '@store/types/homePage.js';
+import {RESET,CLICKCOUNT} from '@store/types/homePage.js';
 import {getCommSymptoms,getCommSymptomPush} from '@store/async-actions/mainSuit.js'
 import {SET_MAIN_SUIT} from '@store/types/fillInfo';
 import {getSearch} from '@store/async-actions/fetchModules';
 import {billing} from '@store/async-actions/pushMessage';
-import {filterArr,didPushParamChange} from '@utils/tools.js';
+import {filterArr} from '@utils/tools.js';
 import config from '@config/index.js';
 import {Notify} from '@commonComp';
 
@@ -67,21 +67,12 @@ function mapDispatchToProps(dispatch) {
             type: SHOW_TAIL,
             info:obj.questionMapping
           })
-          dispatch({
-            type:ISREAD
-          })
         },
         insertMain:(item)=>{//将选中的常见症状插入
           dispatch({
             type: INSERT_MAIN,
             item
-          });
-          //右侧推送
-          setTimeout(function(){      //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
-            if(didPushParamChange()){     //操作后内容有变化才推送
-              dispatch(billing);
-            }
-          },500);
+          })
         },
         getData(){//主诉使用模板
           dispatch({
@@ -93,7 +84,7 @@ function mapDispatchToProps(dispatch) {
       },
       pushMessage() {//结构模式右侧推送
         console.log("右侧推送接口");
-        dispatch(billing);
+        // dispatch(billing);
       },
       getSearchData:(item)=>{
         getSearch(item).then((res)=>{

+ 1 - 11
src/containers/NumberDrop.js

@@ -7,9 +7,8 @@ import {SETDROPSHOW,CLICKCOUNT,HIDE,RESET,HIDEDROP} from '@types/homePage.js';
 import {NUMBER_SELECT,CHANGE_LABELVAL} from '@store/types/mainSuit.js';
 import {getLabelIndex} from '@common/js/func.js';
 import {CURRENT_NUMBER,CURRENT_TEXT_LABEL} from '@store/types/currentIll.js';
-import {billing} from '@store/async-actions/pushMessage';
 import {Notify} from '@commonComp';
-import {filterArr,didPushParamChange} from '@utils/tools.js';
+import {filterArr} from '@utils/tools.js';
 import config from '@config/index.js';
 
 function mapStateToProps(state){
@@ -116,15 +115,6 @@ function mapDispatchToProps(dispatch,store){
   return {
     handleSelect(params){
       handleModuleDiff(dispatch,params);
-
-      //右侧推送
-      clearTimeout(timer);
-      let timer = setTimeout(function(){      //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
-        if(didPushParamChange()){     //操作后内容有变化才推送
-          dispatch(billing);
-          clearTimeout(timer);
-        }
-      },config.delayPushTime);
     },
     handleDbclick(obj){
       dispatch({

+ 1 - 10
src/containers/NumberUnitDrop.js

@@ -8,8 +8,7 @@ import {NUMBER_SELECT,CHANGE_LABELVAL} from '@store/types/mainSuit.js';
 import {getLabelIndex} from '@common/js/func.js';
 import {CURRENT_NUMBER,CURRENT_TEXT_LABEL} from '@store/types/currentIll.js';
 import {Notify} from '@commonComp';
-import {filterArr,didPushParamChange} from '@utils/tools.js';
-import {billing} from '@store/async-actions/pushMessage';
+import {filterArr} from '@utils/tools.js';
 import config from '@config/index.js';
 
 function mapStateToProps(state){
@@ -116,14 +115,6 @@ function mapDispatchToProps(dispatch,store){
   return {
     handleSelect(params){
       handleModuleDiff(dispatch,params);
-      //右侧推送
-      clearTimeout(timer);
-      let timer = setTimeout(function(){      //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
-        if(didPushParamChange()){     //操作后内容有变化才推送
-          dispatch(billing);
-          clearTimeout(timer);
-        }
-      },config.delayPushTime);
     },
     handleDbclick(obj){
       dispatch({

+ 0 - 7
src/containers/OtherHistory.js

@@ -6,7 +6,6 @@ import {HIDE,RESET} from '@store/types/homePage.js';
 import {getModule} from '@store/async-actions/fetchModules.js';
 import {billing} from '@store/async-actions/pushMessage';
 import {fullfillText} from '@common/js/func';
-import {didPushParamChange} from '@utils/tools.js';
 
 function mapStateToProps(state){
   const {otherHistory,homePage,typeConfig,mainSuit} = state;
@@ -45,12 +44,6 @@ function mapDispatchToProps(dispatch,store){
           save:listObj.saveText
         });
       });
-      //右侧推送
-      setTimeout(function(){      //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
-        if(didPushParamChange()){     //操作后内容有变化才推送
-          dispatch(billing);
-        }
-      },500);
     },
     fetchModules(param){
       const {id,name,index,span} = param;

+ 1 - 9
src/containers/RadioDrop.js

@@ -7,8 +7,7 @@ import {SETDROPSHOW,HIDE,RESET,HIDEDROP,CLICKCOUNT} from '@types/homePage.js';
 import {RADIO_SELECT,CHANGE_LABELVAL} from '@store/types/mainSuit.js';
 import {CURRENT_RADIO,CURRENT_TEXT_LABEL} from '@store/types/currentIll.js';
 import {Notify} from '@commonComp';
-import {filterArr,didPushParamChange} from '@utils/tools.js';
-import {billing} from '@store/async-actions/pushMessage';
+import {filterArr} from '@utils/tools.js';
 import {getLabelIndex,fullfillText} from '@common/js/func.js';
 import config from '@config/index.js';
 
@@ -103,13 +102,6 @@ function mapDispatchToProps(dispatch,store){
       dispatch({
         type: HIDEDROP
       });
-
-      //右侧推送
-      setTimeout(function(){      //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
-        if(didPushParamChange()){     //操作后内容有变化才推送
-          dispatch(billing);
-        }
-      },500);
     },
     handleDbclick(obj){//双击统计
       dispatch({

+ 18 - 24
src/containers/SpreadDrop.js

@@ -10,9 +10,8 @@ import {GET_BIGDATAPUSH,MIX_CONFIRM,COMM_CONFIRM,CHANGE_LABELVAL} from '@store/t
 import {SETCHECKBOX,CHANGECHECKTEXTLABEL} from '@types/checkBody';
 import {CURRENT_CONFIRM,SETMAINCHECKBOX,CURRENT_TEXT_LABEL,CURRENT_GET_BIGDATAPUSH} from '@types/currentIll';
 import {getLabelIndex,fullfillText,getIds} from '@common/js/func.js';
-import {billing} from '@store/async-actions/pushMessage';
 import {Notify} from '@commonComp';
-import {filterArr,didPushParamChange} from '@utils/tools.js';
+import {filterArr} from '@utils/tools.js';
 import config from '@config/index.js';
 
 function mapStateToProps(state) {
@@ -111,30 +110,20 @@ function currentIll(dispatch,store,params){
 
 //其他史多选标签确定事件
 function otherHisConfirm(dispatch,store,params){
-  const {nones,exists,withs,exclusion,excluName,copyType} = params;
+  const {nones,exists,withs,exclusion,excluName} = params;
   // const ikey = params.ikey.substr(1,1);
   const index = params.ikey;
   let ikey = getLabelIndex(index);
   if(params.exclusion){
     dispatch({
       type: CONFIRMSELECTED,
-      data:{exclusion,excluName,ikey,copyType}
+      data:{exclusion,excluName,ikey}
     });
     return ;
   }
   let existsId = getIds(exists);
   let withsId = getIds(withs);
   const ids = existsId.join(",")+withsId.join(",");
-  if(!ids&&nones){      //只有无的项目
-    dispatch({
-      type: CONFIRMSELECTED,
-      data: {exists:[],withs:[],nones:nones,ikey,copyType}
-    });
-    dispatch({
-      type:ISREAD
-    });
-    return;
-  }
   // const ids = exists.join(",")+withs.join(",");
   let has = [],wes=[];
   //获取选中项目模板
@@ -142,14 +131,25 @@ function otherHisConfirm(dispatch,store,params){
     if(+res.data.code===0){
       const list = res.data.data;
       existsId.map((i)=>{
-        has.push(list[i]);
+        if(+list[i].tagType===4){
+          has.push(...list[i].questionMapping);
+        }else{
+          has.push(list[i]);
+        }
       });
       withsId.map((i)=>{
-        wes.push(list[i]);
+        if(+list[i].tagType===4){
+          wes.push(...list[i].questionMapping);
+        }else{
+          wes.push(list[i]);
+        }
       });
       dispatch({
         type: CONFIRMSELECTED,
-        data: {exists:fullfillText(has,false,false).newArr,withs:fullfillText(wes,false,false).newArr,nones:nones,ikey,copyType}
+        data: {exists:fullfillText(has,true,false).newArr,withs:fullfillText(wes,true,false).newArr,nones:nones,ikey}
+      });
+      dispatch({
+        type:ISREAD
       });
     }
   });
@@ -336,13 +336,7 @@ function mapDispatchToProps(dispatch,store){
         handleModuleDiff(dispatch,store,obj);
       }else if(obj.tagType == 2){//普通多选
         handleCheckBox(dispatch,store,obj);
-      }
-      //右侧推送
-      setTimeout(function(){      //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
-        if(didPushParamChange()){     //操作后内容有变化才推送
-          dispatch(billing);
-        }
-      },500);
+      }  
     },
     handleHide(){
       dispatch({

+ 1 - 2
src/containers/eleType.js

@@ -94,8 +94,7 @@ function multCheckLabels(params,tagType){
                      ikey={showInx}
                      placeholder={data.name}
                      value={data.value}
-                     copyType={data.copyType}
-                     selecteds={selecteds ?selecteds[i]:[]}
+                     selecteds={selecteds ?selecteds[i]:{}}
                      show={showArr&&showArr[showInx]}
                      order={data.textGenerate}
                      type={boxMark}

+ 13 - 0
src/main.js

@@ -15,6 +15,19 @@ const render = (Component) => {
       = c.clear = c.exception = c.trace = c.assert = function () { };
     return c;
   })();
+  //ie8 onInput替代函数
+  $.fn.onIe8Input = function (fn,thisVal) {
+    return this.each(function () {
+      var $this = $(this);
+      var htmlold = $this.html();
+      $this.bind('blur keyup paste cut mouseup', function (e) {
+        var htmlnew = $this.html();
+        if (htmlold !== htmlnew) {
+          fn.call(thisVal,e);
+        }
+      })
+    })
+  };
     ReactDOM.render(
         <AppContainer>
             <Provider store={store}>

+ 3 - 3
src/store/actions/checkBody.js

@@ -14,7 +14,7 @@ export function setNumberValue(state,action){
   const param = action.params;
   const ikey = param.ikey;
   let labelInx = getLabelIndex(ikey);
-  const subInx = ikey.substr(ikey.length-1);
+  const subInx = ikey.substr(-1,1);
   let item = res.data[labelInx];
   if(+item.tagType===1){
     item.value = param.text;
@@ -35,11 +35,11 @@ export function setNumberValue(state,action){
 }
 
 //查体单选下拉选中
-export function setRadioValue(state,action){
+export function setRadioValue(state,action){console.log(221)
   let res = Object.assign({},state);
   const {ikey,id,text} = action;
   let labelInx = getLabelIndex(ikey);
-  const subInx = ikey.substr(ikey.length-1);
+  const subInx = ikey.substr(-1,1);
   let item = res.data[labelInx];
   if(typeof text != 'string'){    //需要展开项--有无治疗类型
     const len = +item.copyType === 0?1:0;

+ 2 - 2
src/store/actions/mainSuit.js

@@ -277,7 +277,7 @@ export function setNumberValue(state,action){
   const param = action.params;
   const index = param.ikey;
   let labelInx = getLabelIndex(index);
-  const subInx = index.substr(index.length-1);
+  const subInx = index.substr(-1,1);
   let item = res.data[labelInx];
   if(+item.tagType===1){
     item.value = param.text;
@@ -304,7 +304,7 @@ export function setRadioValue(state,action){
   let res = Object.assign({},state);
   const {ikey,id,text} = action;
   let labelInx = getLabelIndex(ikey);
-  const subInx = ikey.substr(ikey.length-1);
+  const subInx = ikey.substr(-1,1);
   let item = res.data[labelInx];
   if(typeof text != 'string'){    //需要展开项--有无治疗类型
     const len = +item.copyType === 0?1:0;

+ 6 - 12
src/store/actions/otherHistory.js

@@ -5,7 +5,7 @@ import {getLabelIndex,fullfillText} from '@common/js/func.js';
 export const confirm = (state,action) =>{
   let res = Object.assign({},state);
   let arr = res.data;
-  const {nones,exists,withs,ikey,exclusion,excluName,copyType} = action.data;
+  const {nones,exists,withs,ikey,exclusion,excluName} = action.data;
   //选中互斥项
   if(exclusion){
     arr[ikey].value = excluName;
@@ -17,8 +17,8 @@ export const confirm = (state,action) =>{
   //只有无的项目选中
   if(arr[ikey].value)  arr[ikey].value= '';
   if([...exists,...withs].length==0&&nones){
-    const newPreText = arr[ikey-1].name+nones;//console.log(arr[ikey-1],newPreText)
-    arr[ikey-1].value = newPreText;
+    const newPreText = arr[ikey-1].name+nones;
+    arr[ikey-1] = Object.assign({},arr[ikey-1],{name:newPreText});
     res.saveText[ikey-1] = newPreText;
     res.update=Math.random();
     return res;
@@ -30,13 +30,7 @@ export const confirm = (state,action) =>{
     withDatas[0].value=withs.length>0?"伴":'';
   }*/
   //const text = Object.assign({},JSON.parse(config.textLabel),{value:"伴"}):undefined;
-  if(+copyType===1){       //原标签保留
-    arr.splice(ikey-1,0,...exists,...withs);
-  }else{                 //替换原标签
-    arr.splice(ikey,1);
-    arr.splice(ikey-1,1,...exists,...withs);
-  }
-
+  arr.splice(ikey,0,...exists,...withs);
   res.update=Math.random();         //用于触发组件更新(data变化了因在对象中无法被组件检测到)
   return res;
 };
@@ -46,7 +40,7 @@ export function setRadioValue(state,action){
   let res = Object.assign({},state);
   const {ikey,id,text} = action;
   let labelInx = getLabelIndex(ikey);
-  const subInx = ikey.substr(ikey.length-1);
+  const subInx = ikey.substr(-1,1);
   let item = res.data[labelInx];
   if(typeof text != 'string'){    //需要展开项--有无治疗类型
     const len = +item.copyType === 0?1:0;
@@ -93,7 +87,7 @@ export function setNumberValue(state,action){
   const param = action.params;
   const ikey = param.ikey;
   let labelInx = getLabelIndex(ikey);
-  const subInx = ikey.substr(ikey.length-1);
+  const subInx = ikey.substr(-1,1);
   let item = res.data[labelInx];
   if(+item.tagType===1){
     item.value = param.text;

+ 1 - 1
src/store/actions/pushMessage.js

@@ -72,7 +72,7 @@ export const addScheme = (state, action) => {
 				treatmentStr = treatmentStr + treatment[i].medicitionsList[j].medicitionName + ', '
 			}
 	}
-	treatment[i].treatmentStr = treatmentStr.substring(0,treatmentStr.length-2)
+	treatment[i].treatmentStr = treatmentStr.substring(0,treatmentStr.length-1)
   }
   treatItem.treatment = treatment;
   for (let i = 0; i < scheme.length; i++) {

+ 1 - 1
src/store/async-actions/copyRight.js

@@ -5,7 +5,7 @@ import { storageLocal } from "@utils/tools"
 export const getMessage = (dispatch, getState) => {
     const state = getState();
     // 请求地址
-    post('http://192.168.2.236/api/icss/versionInfo/getVersionInfoAlls')
+    post('/api/icss/versionInfo/getVersionInfoAlls')
     .then((data) => {
         
         const versionInfo = JSON.parse(storageLocal.get('versionInfo'));

+ 19 - 2
src/store/async-actions/fetchModules.js

@@ -3,7 +3,6 @@ import {SET} from '@types/checkBody.js';
 import {fullfillText} from '@common/js/func';
 import {SETDATA} from '@store/types/otherHistory';
 import store from '@store';
-import {getEMRParams} from '@utils/tools.js';
 import {Notify} from '@commonComp';
 import {SETOTHERHISTORY} from "../types/homePage";
 
@@ -15,6 +14,24 @@ const api={
   getBigPush:'/api/icss/push/pushInner',
   saveMode:'/api/icss/doctorPageMode/saveDoctorPageModes',
 };
+//获取病例输入的内容
+export const getEMRParams = ()=>{
+  const state = store.getState();
+  const {message} = state.patInfo;
+  const {mainSuit,currentIll,otherHistory,checkBody,inspect,assistCheck,diagnosticList} = state;
+  const main = mainSuit.saveText.join(",")||'',
+    current=currentIll.saveText.join(",")||'',
+    other = otherHistory.saveText.join(",")||'',
+    vital = checkBody.saveText.join(",")||'',
+    lis = inspect.pushItem,    //化验推送所需数据
+    pacs = assistCheck.dataString||'',
+    dis=diagnosticList.diagnosticStr||'',
+    advice = '',
+    diseaeId = [];
+  const age = message.patientAge;
+  const sex = message.sex;
+    return {main,current,other,vital,lis,pacs,dis,advice,diseaeId,sex,age};
+};
 
 //获取模板,多个
 export const getModules = (ids)=>{
@@ -95,7 +112,7 @@ export function getInitData(){
       pacs: emrData.pacs,
       sex: emrData.sex,
       vital:emrData.vital,
-      symptom: emrData.current||emrData.main
+      symptom: emrData.current + emrData.main
     };
     json(api.getBigPush,param).then((res)=>{
       if(+res.data.code === 0){

+ 1 - 1
src/store/async-actions/mainSuit.js

@@ -1,6 +1,6 @@
 import {json} from '@utils/ajax.js';
 import {COMM_SYMPTOMS,SET_SEARCH,GET_BIGDATAPUSH} from '../types/mainSuit'
-import {getEMRParams} from '@utils/tools';
+import {getEMRParams} from '@store/async-actions/fetchModules';
 
 const host = '/api/icss/';
 const api = {

+ 1 - 5
src/store/async-actions/patInfo.js

@@ -5,7 +5,6 @@ import {getInfos} from '@store/actions/getInfoByUuid';
 import {getUrlArgObject,pushAllDataList} from '@utils/tools';
 import {getInitModules} from '@store/async-actions/homePage.js';
 import store from '@store'
-import {ISREAD} from "../types/homePage";
 
 const api = {
     getPatInfo: '/api/icss/patientInfo/getTopPatientInfo',
@@ -42,10 +41,7 @@ export const initHistoryDetails = (dispatch) => {
             const data = res.data;
             if (data.code == 0) {
                 const detail = data.data;
-                pushAllDataList(detail.sign,'push',detail,'history');
-                dispatch({
-                  type:ISREAD
-                });
+                pushAllDataList(detail.sign,'push',detail,'history')
                 // 设置初始模式
                 if(detail.sign == 1){
                     dispatch({

+ 1 - 2
src/store/async-actions/pushMessage.js

@@ -1,7 +1,7 @@
 import { get, post, json } from "@utils/ajax";
 import { BILLING_ADVICE, SET_TIPS } from '../types/pushMessage';
 import { SET_CLICK_DIAG } from '../types/diagnosticList';
-import {storageLocal,getEMRParams} from '@utils/tools';
+import { getEMRParams } from '@store/async-actions/fetchModules';
 
 const api={
   push:'/api/icss/push/pushInner',
@@ -27,7 +27,6 @@ export const billing = (dispatch, getState) => {
     vital:emrData.vital,
     symptom: emrData.current + emrData.main
   };
-  storageLocal.set('emrParam',params);      //推送数据存储,用作推送前对比是否有变,有变才推送
     json(url, params).then((data) => {
         let {dis, lab, pacs} = data.data.data||{};
         lab = lab||[];

+ 3 - 3
src/store/async-actions/treat.js

@@ -2,7 +2,7 @@ import { json } from "@utils/ajax";
 import { SET_TREAT } from '@store/types/diagnosticList';
 import { ADD_DIAGNOSTIC} from '@store/types/diagnosticList'; 
 import { SET_DRUG_INFO, SET_TREATMENT, SET_RECOMMEND_BASIC } from '@store/types/treat';
-import {getEMRParams} from  '@utils/tools';
+import {getEMRParams} from '@store/async-actions/fetchModules';
 const api={
     push:'/api/icss/push/pushInner',
     textPush:'/api/icss/push/pushText'
@@ -42,7 +42,7 @@ export const addDiagnostic = (item) => {
                 "other": emrData.other,
                 "pacs": emrData.pacs,
                 "sex": emrData.sex,
-                "symptom": emrData.current||emrData.main,
+                "symptom": emrData.current + emrData.main,
                 "vital": emrData.vital
             };
             
@@ -102,7 +102,7 @@ export const getTreatResult = (item) =>{
             "other": emrData.other,
             "pacs": emrData.pacs,
             "sex": emrData.sex,
-            "symptom": emrData.current||emrData.main,
+            "symptom": emrData.current + emrData.main,
             "vital": emrData.vital
         };
         

+ 0 - 1
src/store/types/checkBody.js

@@ -6,7 +6,6 @@ export const SETCHECKTEXT = 'set_check_text';
 export const SETCHECKBOX = 'set_check_checkbox_drop';
 export const SETSEARCHDATA = 'set_check_search_data';
 export const SELECTSEARCHDATA = 'select_check_search_data';
-//export const CHANGE_LABELVAL = 'change_check_text';
 export const CHANGECHECKTEXTLABEL = 'change_check_text';
 export const CLEARCHECKBODY = 'clear_check_body';
 export const CHECK_FOCUS_INDEX = 'check_focus_text_index';

+ 5 - 3
src/utils/ajax.js

@@ -4,6 +4,8 @@ const $ = require('jquery');
 $.support.cors = true;
 const axios=require('axios');
 const qs=require('querystring');
+const isLocal = window.location.hostname.indexOf('localhost')!=-1;
+const qhost = isLocal?host:'';
 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
 axios.defaults.baseURL = host;       //默认地址
 // axios.defaults.timeout = 60000;       //请求超时
@@ -51,7 +53,7 @@ const post=(url,data)=>{
 
   return axios({
     method:'post',
-    url:host+url,
+    url:qhost+url,
     data
   });
 };
@@ -62,7 +64,7 @@ const json=(url,data)=>{
   return new Promise((resolve,reject)=>{
     $.ajax({
       method:'post',
-      url:host+url,
+      url:qhost+url,
       data:JSON.stringify(data),
       contentType:"application/json; charset=UTF-8",
       success:function(res){
@@ -76,7 +78,7 @@ const json=(url,data)=>{
 };
 
 const get=(url)=>{
-  return axios.get(host+url).then(data=>data.data);
+  return axios.get(qhost+url).then(data=>data.data);
 };
 
 module.exports={

+ 1 - 1
src/utils/config.js

@@ -1,5 +1,5 @@
 // const host='http://192.168.3.100:5050';//王峰
-const host='http://192.168.2.241:5050';//后端接口访问地址
+const host='http://192.168.2.236:5050';//后端接口访问地址
 // const host='http://192.168.2.236:5050';//后端接口访问地址
 //const host='http://192.168.2.164:8080';
 // const host='http://192.168.3.117:8080'; //周铁刚

+ 2 - 55
src/utils/tools.js

@@ -8,6 +8,7 @@ import {clearAllLabel} from '@store/actions/inspect';
 import {CLEAR_ALL_DIAG} from '@store/types/diagnosticList';
 import {CLEAR_ALL_PUSH_MESSAGE, SET_TIPS} from '@store/types/pushMessage';
 import {ISREAD, SETREADDITEMS} from "../store/types/homePage";
+/*import {Notify} from '@commonComp';*/
 
 /***
  * 工具函数
@@ -501,62 +502,11 @@ function preventDefault(event) {
         event.returnValue = false;
     }
 }
-
-//ie8添加解除事件兼容
-function windowEventHandler(type,func){
-    if(window.addEventListener){
-      window.addEventListener(type, func);
-    }else{
-      window.attachEvent('on'+type,func);
-    }
-}
-
-
 //禁止回车事件
 function handleEnter(event){
-    event = event?event:window.event;
     if(event.keyCode==13){return false;}
 }
 
-//获取病例输入的内容
-function getEMRParams(){
-  const state = store.getState();
-  const {message} = state.patInfo;
-  const {mainSuit,currentIll,otherHistory,checkBody,inspect,assistCheck,diagnosticList} = state;
-  const main = filterDataArr(mainSuit.saveText)||'',
-    current=filterDataArr(currentIll.saveText)||'',
-    other = filterDataArr(otherHistory.saveText)||'',
-    vital = filterDataArr(checkBody.saveText)||'',
-    lis = inspect.pushItem,    //化验推送所需数据
-    pacs = assistCheck.dataString||'',
-    dis=diagnosticList.diagnosticStr||'',
-    advice = '',
-    diseaeId = [];
-  const age = message.patientAge;
-  const sex = message.sex;
-  return {main,current,other,vital,lis,pacs,dis,advice,diseaeId,sex,age};
-};
-
-function didPushParamChange(){
-  const emrData = getEMRParams();
-  const oldParams = storageLocal.get('emrParam');
-  const newParams = JSON.stringify({
-    age: emrData.age,
-    featureType: "5,6,7",
-    diag: emrData.dis,
-    lis: emrData.lis,
-    other: emrData.other,
-    pacs: emrData.pacs,
-    sex: emrData.sex,
-    vital:emrData.vital,
-    symptom: emrData.current + emrData.main
-  });
-  if(newParams == oldParams){
-      return false;
-  }
-  return true;
-}
-
 module.exports = {
     checkType: Type.checkType,
     regexp,
@@ -575,8 +525,5 @@ module.exports = {
     filterArr,
     filterDataArr,
     preventDefault,
-    handleEnter,
-    didPushParamChange,
-    getEMRParams,
-    windowEventHandler
+    handleEnter
 };

+ 1 - 1
static/pages/hisLib/infomation.js

@@ -28,7 +28,7 @@
                     return;
                 }
                 var list  = res.data.introduceDetailList;
-                $("h1").html(res.data.tagName);
+                $("h1").html(res.data.name);
                 //list.map((item,i) =>{
                 for(var i=0;i<list.length;i++) {
                     item = list[i];