-
-
-
{{moment(schoolEvent.dateOfEvent).format("DD MMMM, YYYY")}}
-
-
{{schoolEvent.title}}
+
+
+
+
+
+ School Events
+
+
+
+
+
+
+
{{moment(schoolEvent.dateOfEvent).format("DD MMMM, YYYY")}}
+
+
{{schoolEvent.title}}
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
@@ -793,15 +836,17 @@
import http from "@/Services/http.js";
import moment from "moment";
import AllApiCalls from "@/Services/AllApiCalls.js";
+import VueApexCharts from "vue-apexcharts";
// import { FunctionalCalendar } from "vue-functional-calendar";
export default {
components: {
- // FunctionalCalendar
+ apexcharts: VueApexCharts,
},
mixins: [AllApiCalls],
data() {
return {
+ today: new Date(),
// data: {
// clieckedToday: false
// },
@@ -821,6 +866,24 @@ export default {
dialogSchoolEvents: [],
dialogMeetingEvents: [],
+ // apexCharts
+ maleFemaleSeries: [20, 30],
+ maleFemaleData: {
+ labels: ["Male", "Female"],
+ legend: {
+ formatter: function (val, opts) {
+ return val + " - " + opts.w.globals.series[opts.seriesIndex];
+ },
+ position: 'bottom',
+ },
+ dataLabels: {
+ enabled: true,
+ formatter: function (val,opts) {
+ return opts.w.globals.series[opts.seriesIndex];
+ },
+ },
+ },
+
// CALENDER
moment: moment,
activityEvents: [],
@@ -1316,6 +1379,16 @@ export default {
}
}
},
+ async getMaleFemaleData(){
+ await http()
+ .get("/getStudentsByGender")
+ .then((response) => {
+ console.log("gender response - ", response)
+ })
+ .catch((error) => {
+ this.showLoader = false;
+ });
+ }
},
mounted() {
@@ -1329,12 +1402,15 @@ export default {
// this.token = this.$store.state.token;
await this.getFeesAndCollectionsData();
await this.getExpensesData();
+ await this.getMaleFemaleData();
} else if (this.$store.state.schoolRole === "SUPERADMIN") {
// this.token = this.$store.state.schoolToken;
await this.getFeesAndCollectionsData();
await this.getExpensesData();
+ await this.getMaleFemaleData();
} else if (this.$store.state.role === "TEACHER") {
// this.token = this.$store.state.token;
+ await this.getMaleFemaleData();
} else if (this.$store.state.role === "ACCOUNTANT") {
// this.token = this.$store.state.token;
} else if (this.$store.state.role === "LIBRARIAN") {