Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.143.239.63
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/PrepareQuestionPaper-Ck0OHzrj.js |
import{v as n,E as p}from"./index-DNLfgd66.js";const E=r=>async(a,o)=>{try{const e=o(),s=localStorage.getItem("dbname"),t=await n.get("app.php?a=getTemplateDetails&db="+s+"&teachcode="+e.loginfo.userData.fregno+"&data="+JSON.stringify(r)+"&usertype="+e.loginfo.userData.fusertype);a({type:"UNSET_LOADER"}),t.data.error_code===0?a({type:"GET_TEMPLATE_DETAILS",payload:t.data.data}):a({type:"GET_TEMPLATE_DETAILS",payload:[]})}catch(e){p("error",e.message)}},d=r=>async(a,o)=>{try{const e=o(),s=localStorage.getItem("dbname"),t=await n.get("app.php?a=getViewPrepareQpDetails&db="+s+"&teachcode="+r+"&usertype="+e.loginfo.userData.fusertype);if(a({type:"UNSET_LOADER"}),t.data.error_code===0){const y=t.data.data.map((c,l)=>({...c,key:l,fslno:l+1}));a({type:"VIEW_PREPARE_QP_OPTION2",payload:y})}else a({type:"VIEW_PREPARE_QP_OPTION2",payload:[]}),p("info",t.data.data.msg)}catch(e){p("error",e.message)}};export{d as a,E as g};
|