浏览代码

火狐2293/2304/2297/2295/bug修改

luolei 5 年之前
父节点
当前提交
4eae464270

+ 2 - 1
src/components/AddAssistCheck/Textarea/index.jsx

@@ -18,7 +18,8 @@ class Textarea extends Component {
   }
   }
   handleInput(e){
   handleInput(e){
     const {handleChangeAssistValue,idx,handlePush} = this.props;
     const {handleChangeAssistValue,idx,handlePush} = this.props;
-    const text = e.target.innerText || e.target.innerHTML;
+    const text = (e.target.innerHTML || e.target.innerText);
+    // e.target.innerHTML = e.target.textContent
     const stimer = this.state.timer;
     const stimer = this.state.timer;
     handleChangeAssistValue&&handleChangeAssistValue(text,idx);
     handleChangeAssistValue&&handleChangeAssistValue(text,idx);
     //右侧推送--延时推送
     //右侧推送--延时推送

+ 1 - 0
src/components/Emergency/index.less

@@ -49,6 +49,7 @@
     vertical-align: top;
     vertical-align: top;
     position: relative;
     position: relative;
     padding-top: 57px;
     padding-top: 57px;
+    padding-bottom:70px;
     .no-data{
     .no-data{
       font-size: 18px;
       font-size: 18px;
       position: absolute;
       position: absolute;

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

@@ -11,6 +11,7 @@
     height: 86%;
     height: 86%;
     background-color: #fff;
     background-color: #fff;
     overflow: hidden;
     overflow: hidden;
+    padding-bottom:20px;
     .close {
     .close {
         position: absolute;
         position: absolute;
         top: 0;
         top: 0;

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

@@ -23,6 +23,7 @@
     bottom: 7%;
     bottom: 7%;
     height: 86%;
     height: 86%;
     overflow: hidden;
     overflow: hidden;
+    padding-bottom: 20px;
     padding-top: 45px;
     padding-top: 45px;
   }
   }
   .close { 
   .close { 

+ 2 - 5
src/components/PreviewBody/ItemPart/index.jsx

@@ -9,11 +9,8 @@ const ItemPart = (props) => {
       type === 2?
       type === 2?
       <td className={style['patInfoSec']}>
       <td className={style['patInfoSec']}>
         {
         {
-          dataStr && dataStr != '' && dataStr.split(';').map((item) => {
-            // return <div className={style.checkAssist} dangerouslySetInnerHTML={{__html:item}}></div>
-            // return <pre className={style.checkAssist} dangerouslySetInnerHTML={{__html:item}}></pre>
-            // return <pre className={style.checkAssist}>{item}</pre>
-            return <div className={style.checkAssist}>{item}</div>
+          dataStr && dataStr != '' && dataStr.split('^;').map((item) => {
+            return <div className={style.checkAssist} dangerouslySetInnerHTML={{__html:item}}></div>
           })
           })
         }
         }
       </td>:
       </td>:

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

@@ -5,7 +5,6 @@
   height: 100%;
   height: 100%;
   top:0px;
   top:0px;
   width: 820px;
   width: 820px;
-  padding-bottom: 100px;
   box-sizing: border-box;
   box-sizing: border-box;
   .contents {
   .contents {
     position: relative;
     position: relative;

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

@@ -24,6 +24,7 @@
       height: 86%;
       height: 86%;
       overflow: hidden;
       overflow: hidden;
       padding-top: 45px;
       padding-top: 45px;
+      padding-bottom: 20px;
     }
     }
     .close { 
     .close { 
       padding:  0 15px;
       padding:  0 15px;

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

@@ -219,7 +219,7 @@ class InputComp extends Component{
   }
   }
   handleBlur(e){
   handleBlur(e){
     e.stopPropagation();
     e.stopPropagation();
-    const text = e.target.innerText;
+    const text = e.target.innerText||e.target.textContent;//单选输入预览拿不到值innerHTML会有空格
     const {handleInp,index,value} = this.props;
     const {handleInp,index,value} = this.props;
     e.target.innerText = '';
     e.target.innerText = '';
     handleInp(index,text);
     handleInp(index,text);

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

@@ -30,7 +30,7 @@
         cursor: pointer;
         cursor: pointer;
         .check-box {
         .check-box {
             height: 18px;
             height: 18px;
-            width: 18px;
+            // width: 18px;
             margin-top: 10px;
             margin-top: 10px;
             padding-right: 10px;
             padding-right: 10px;
             
             

+ 1 - 1
src/utils/tools.js

@@ -1351,7 +1351,7 @@ function getAllString(checkedListImport,assistLabel){
   let tempArr = tmpImportLis.concat(assistLabel)
   let tempArr = tmpImportLis.concat(assistLabel)
   for (let i = 0; i < tempArr.length; i++) {
   for (let i = 0; i < tempArr.length; i++) {
     let tmpVal = tempArr[i].value ? tempArr[i].value.trim() : tempArr[i].value;
     let tmpVal = tempArr[i].value ? tempArr[i].value.trim() : tempArr[i].value;
-    tmpString += (tempArr[i].name + (tmpVal ? (':' + tmpVal) + ', ' : ': ') + (tempArr[i].time ? '报告日期:' + tempArr[i].time : '') + ';')
+    tmpString += (tempArr[i].name + (tmpVal ? (':' + tmpVal) + ', ' : ': ') + (tempArr[i].time ? '报告日期:' + tempArr[i].time : '') + '^;')
   }
   }
   return tmpString;
   return tmpString;
 }
 }