<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                >本章介紹pdf實現瀏覽器打印 1、準備步驟 訪問后臺固定接口路徑:/jmreport/exportPdf 如果訪問路徑根據需求加上ip、端口、項目名稱,如:http://127.0.1.1:8080/jeecg-boot/jmreport/exportPdf(本案例直接訪問) 1)前臺調用方案 ``` let params = {} //必傳id,可以在預覽頁面找到,如圖一 params.excelConfigId="587532295753621504" //參數對象,在數據源頁面配置的參數,接受數組為queryParam,如圖二 params.queryParam = {"username":"admin"} //如果有token需要傳遞token let config={ headers:{"token":"token"}, }; this.$http.post("/jmreport/exportPdf",params,config).then(res=>{ //成功 if(res.success){ //獲取base64文件 let file = res.result.file let bstr = atob(file), n = bstr.length, u8arr = new Uint8Array(n); while (n--) { u8arr[n] = bstr.charCodeAt(n); } let blob = new Blob([u8arr], { type: 'application/pdf;chartset=UTF-8' }) //創建url let fileURL = URL.createObjectURL(blob) window.open(fileURL) } }) ``` ![](https://img.kancloud.cn/45/8f/458f659300104787f7c00f9c7e47401f_941x342.png) :-: 圖一 ![](https://img.kancloud.cn/8d/bd/8dbda23da413627a9750fe842ad4803a_1360x644.png) :-: 圖二 ![](https://img.kancloud.cn/ca/ba/caba856280bc89adf811d48ce78f5cd3_991x257.png) 接口返回數據截圖 2、效果展示 ![](https://img.kancloud.cn/ec/46/ec4644caa4207739da26b194b1f1cfe9_1887x982.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看