瀏覽代碼

打印加回去

Luolei 6 年之前
父節點
當前提交
5a0ce421cd
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/components/PreviewBody/index.jsx

+ 3 - 0
src/components/PreviewBody/index.jsx

@@ -117,6 +117,9 @@ class PreviewBody extends Component {
           </tr>
         </table>
         <p className={style.docName}>医生签名:<span>{baseObj ? baseObj.doctorName : (noData ? '' : preInfo.doctorName)}</span></p>
+        <div onClick={() => { this.surePrint(dataStr) }} className={style.printBtn} style={{
+          display: show ? 'inline-block' : 'none',
+        }}>打印</div>
       </div>
     </div>
   }