Kaynağa Gözat

评估打印

zhouna 6 yıl önce
ebeveyn
işleme
aecc6adf6e
1 değiştirilmiş dosya ile 11 ekleme ve 0 silme
  1. 11 0
      src/components/DiagnosticList/index.jsx

+ 11 - 0
src/components/DiagnosticList/index.jsx

@@ -16,6 +16,7 @@ import iconRadioActive from '@common/images/icon-radio-active.png'
 import AssessResult from '@containers/AssessResult';
 import tableIcon from '@common/images/table.png';
 import { CONFIRM_TYPE } from "@store/types/typeConfig";
+import $ from "jquery";
 
 class DiagnosticList extends Component {
     constructor(props) {
@@ -45,6 +46,16 @@ class DiagnosticList extends Component {
         this.referCase = this.referCase.bind(this);
         this.handleSaveAssess = this.handleSaveAssess.bind(this);       //评估弹窗确定
         this.handleSavePossible = this.handleSavePossible.bind(this);
+        this.onPrint = this.onPrint.bind(this);
+    }
+    onPrint() {
+      let dom = $("#AssistResult");
+      dom.jqprint({
+        debug: false,
+        importCSS: true,
+        printContainer: true,
+        operaSupport: false,
+      });
     }
     upDiagnostic(index) {
         const { upDiagnostic } = this.props;