|  | @@ -54,7 +54,7 @@ import { updateWordPack } from "@/utils/i18n";
 | 
											
												
													
														|  |  import { getToken, getConfig } from "@/utils/auth";
 |  |  import { getToken, getConfig } from "@/utils/auth";
 | 
											
												
													
														|  |  import { Base64 } from "js-base64";
 |  |  import { Base64 } from "js-base64";
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -import { TextbookAPI, LearnWebSI } from "@/api/ajax";
 |  | 
 | 
											
												
													
														|  | 
 |  | +import { TextbookAPI, LearnWebSI, getContentFile } from "@/api/ajax";
 | 
											
												
													
														|  |  export default {
 |  |  export default {
 | 
											
												
													
														|  |    name: "TextbookDetailPdf",
 |  |    name: "TextbookDetailPdf",
 | 
											
												
													
														|  |    components: {
 |  |    components: {
 | 
											
										
											
												
													
														|  | @@ -133,15 +133,18 @@ export default {
 | 
											
												
													
														|  |        })
 |  |        })
 | 
											
												
													
														|  |          .then((res) => {
 |  |          .then((res) => {
 | 
											
												
													
														|  |            this.data = res;
 |  |            this.data = res;
 | 
											
												
													
														|  | -          this.loading = false;
 |  | 
 | 
											
												
													
														|  | -          this.attachment =
 |  | 
 | 
											
												
													
														|  | -            `${this.file_preview_url}/onlinePreview?url=` +
 |  | 
 | 
											
												
													
														|  | -            this.$route.query.url;
 |  | 
 | 
											
												
													
														|  | 
 |  | +          let Mname = "file_store_manager-GetFileStoreInfo";
 | 
											
												
													
														|  | 
 |  | +          getContentFile(Mname, {
 | 
											
												
													
														|  | 
 |  | +            file_id: Base64.decode(this.$route.query.fileId),
 | 
											
												
													
														|  | 
 |  | +          }).then((res) => {
 | 
											
												
													
														|  | 
 |  | +            this.attachment =
 | 
											
												
													
														|  | 
 |  | +              `${this.file_preview_url}/onlinePreview?url=` +
 | 
											
												
													
														|  | 
 |  | +              Base64.encode(res.file_url);
 | 
											
												
													
														|  | 
 |  | +            this.loading = false;
 | 
											
												
													
														|  | 
 |  | +          });
 | 
											
												
													
														|  |            // this.attachment =
 |  |            // this.attachment =
 | 
											
												
													
														|  |            //   process.env.VUE_APP_PDF_API +
 |  |            //   process.env.VUE_APP_PDF_API +
 | 
											
												
													
														|  |            //   Base64.decode(this.$route.query.relativePath);
 |  |            //   Base64.decode(this.$route.query.relativePath);
 | 
											
												
													
														|  | -          // this.getNumPages();
 |  | 
 | 
											
												
													
														|  | -          // console.log(this.attachment);
 |  | 
 | 
											
												
													
														|  |          })
 |  |          })
 | 
											
												
													
														|  |          .catch((res) => {
 |  |          .catch((res) => {
 | 
											
												
													
														|  |            this.loading = false;
 |  |            this.loading = false;
 |