(window.webpackJsonp=window.webpackJsonp||[]).push([[207],{lnsl:function(t,e,s){"use strict";s.r(e);var n={data:function(){return{students:[],employee_code:null,admission_number:null}},methods:{getConfig:function(t){return helper.getConfig(t)},hasRole:function(t){return helper.hasRole(t)},hasAnyRole:function(t){return helper.hasAnyRole(t)}},mounted:function(){var t=this,e=this.$loading.show();axios.get("/api/exam/report/analysis/pre-requisite").then((function(s){t.students=s.students,t.employee_code=s.employee_code,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},computed:{getToken:function(){var t=helper.getDefaultAcademicSession(),e="";if(e=helper.hasAnyRole(["student","parent"])?t.exam_report_analysis_student_token:t.exam_report_analysis_staff_token){var s=e.split("-");return s.length>1?s[1]:null}return null}}},a=s("KHd+"),i=Object(a.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"page-titles"},[s("h3",{staticClass:"text-themecolor"},[t._v(t._s(t.trans("exam.report_analysis"))+"\n            "),t.hasRole("admin")?s("span",{staticClass:"card-subtitle d-none d-sm-inline pull-right"},[s("router-link",{staticClass:"btn btn-info btn-sm",attrs:{to:"/exam/report/analysis/export"}},[t._v(t._s(t.trans("general.go_to_link",{link:t.trans("exam.export_data_in_excel")})))])],1):t._e()])]),t._v(" "),s("div",{staticClass:"container-fluid container-body"},[t.getToken?s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[t.students.length?s("p",{staticClass:"alert alert-info"},[t._v(t._s(t.trans("student.select_student_to_get_report")))]):t._e(),t._v(" "),s("div",{staticClass:"row"},t._l(t.students,(function(e){return s("div",{key:e.id,staticClass:"col-12 col-sm-4 custom-button",on:{click:function(s){t.admission_number=e.admission_number}}},[s("p",[s("span",{staticStyle:{"font-weight":"bold","font-size":"120%"}},[t._v(t._s(e.name))]),t._v(" "),s("br"),t._v(" "+t._s(e.batch)+" ("+t._s(e.admission_number)+")\n                        ")])])})),0)]),t._v(" "),s("div",{staticClass:"col-12"},[t.hasAnyRole(["admin","principal","manager"])?[s("iframe",{staticStyle:{"min-width":"800px"},attrs:{frameborder:"0",width:"100%",height:"800",src:"https://analytics.doodu.io/open-view/"+t.getToken}})]:(t.hasRole("student")||t.hasRole("parent"))&&t.admission_number?[s("iframe",{staticStyle:{"min-width":"800px"},attrs:{frameborder:"0",width:"100%",height:"800",src:"https://analytics.doodu.io/open-view/"+t.getToken+"?CRITERIA=%22Marks%22.%22ADMISSION%20NO%22=%27"+t.admission_number+"%27"}})]:t.hasRole("staff")&&t.employee_code?[s("iframe",{staticStyle:{"min-width":"800px"},attrs:{frameborder:"0",width:"100%",height:"800",src:"https://analytics.doodu.io/open-view/"+t.getToken+"?CRITERIA=%22Marks%22.%22EMP%20CODE%22=%27"+t.employee_code+"%27"}})]:t._e()],2)]):s("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.trans("general.invalid_action")))])])])}),[],!1,null,null,null);e.default=i.exports}}]);
//# sourceMappingURL=index.js.map?id=17f56dd89e3c41c26b53