Blame view
src/Services/AllApiCalls.js
1.22 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 |
/************************** METHODS USED FOR COMMON FILES *********************/ /* METHODS USED FOR UploadPdf.vue */ pdfFileSelected(e, message) { |
34a2a2609
|
23 24 25 26 |
this.pdfFile = e.fileInBase64; this.pdfFileName = e.selectedFileName; this.emptyPdf = e.emptyPdf; |
de958fcfc
|
27 28 29 30 31 32 33 34 |
}, /* METHODS USED FOR UploadFiles.vue */ fileSelected(e, message) { if (message == "uploadPPT") { this.pptFile = e.fileInBase64; this.pptFileName = e.selectedFileName; this.trigger = e.trigger; |
de958fcfc
|
35 36 37 38 39 |
} if (message == "uploadPDF") { this.pdfFile = e.fileInBase64; this.pdfFileName = e.selectedFileName; this.emptyPdf = e.trigger; |
de958fcfc
|
40 41 |
} }, |
6f7cf8cf5
|
42 43 44 45 |
}, } |