Blame view
src/Services/AllApiCalls.js
1.7 KB
6f7cf8cf5
|
1 2 |
import GetApis from "@/Services/GetApis.js"; import PutApis from "@/Services/PutApis.js"; |
3a557c5ae
|
3 |
|
6f7cf8cf5
|
4 5 6 7 |
export default { mixins: [GetApis, PutApis], data() { return { |
de958fcfc
|
8 9 10 11 12 13 14 15 |
// UploadPdf.vue emptyPdf: '', // UploadFiles.vue trigger: '', pptFile: "", pptFileName: "", pdfFile: "", pdfFileName: "" |
6f7cf8cf5
|
16 17 18 19 |
} }, methods: { |
de958fcfc
|
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
/************************** METHODS USED FOR COMMON FILES *********************/ /* METHODS USED FOR UploadPdf.vue */ pdfFileSelected(e, message) { if (message == "uploadPPT") { this.pptFile = e.fileInBase64; this.pptFileName = e.selectedFileName; this.trigger = e.trigger; console.log("ppt file - ", this.pptFile); } if (message == "uploadPDF") { this.pdfFile = e.fileInBase64; this.pdfFileName = e.selectedFileName; this.emptyPdf = e.trigger; console.log("pdf file - ", this.pdfFile); } }, /* METHODS USED FOR UploadFiles.vue */ fileSelected(e, message) { if (message == "uploadPPT") { this.pptFile = e.fileInBase64; this.pptFileName = e.selectedFileName; this.trigger = e.trigger; console.log("ppt file - ", this.pptFile); } if (message == "uploadPDF") { this.pdfFile = e.fileInBase64; this.pdfFileName = e.selectedFileName; this.emptyPdf = e.trigger; console.log("pdf file - ", this.pdfFile); } }, |
6f7cf8cf5
|
52 53 54 55 |
}, } |