AllApiCalls.js
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
import GetApis from "@/Services/GetApis.js";
import PutApis from "@/Services/PutApis.js";
export default {
mixins: [GetApis, PutApis],
data() {
return {
// UploadPdf.vue
emptyPdf: '',
// UploadFiles.vue
trigger: '',
pptFile: "",
pptFileName: "",
pdfFile: "",
pdfFileName: "",
courseData: [],
teachersList: [],
schoolEvents: [],
particularEvent: {},
}
},
methods: {
/************************** METHODS USED FOR COMMON FILES *********************/
/* METHODS USED FOR UploadPdf.vue */
pdfFileSelected(e, message) {
this.pdfFile = e.fileInBase64;
this.pdfFileName = e.selectedFileName;
this.emptyPdf = e.emptyPdf;
},
/* METHODS USED FOR UploadFiles.vue */
fileSelected(e, message) {
if (message == "uploadPPT") {
this.pptFile = e.fileInBase64;
this.pptFileName = e.selectedFileName;
this.trigger = e.trigger;
}
if (message == "uploadPDF") {
this.pdfFile = e.fileInBase64;
this.pdfFileName = e.selectedFileName;
this.emptyPdf = e.trigger;
}
},
},
}