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 : 18.119.117.77
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/TeacherEntry-B-NA-Jh-.js |
import{v as n,E as s}from"./index-ChT0xYiY.js";const u=l=>async(a,r)=>{try{const e=r();let t=localStorage.getItem("dbname");a({type:"SET_LOADER"});const o=await n.post("app.php?a=saveTeacherDetails&db="+t+"&univcode="+e.loginfo.userData.funivcode+"&usertype="+e.loginfo.userData.fusertype+"&collcode="+e.loginfo.userData.fcollcode,l);if(a({type:"UNSET_LOADER"}),o.data.error_code===0)s("success",o.data.data.msg);else{s("info",o.data.data.msg);return}}catch(e){s("error",e.message)}},f=l=>async(a,r)=>{try{const e=r();let t=localStorage.getItem("dbname");a({type:"SET_LOADER"});const o=await n.get("app.php?a=getCollegeDetails&db="+t+"&univcode="+e.loginfo.userData.funivcode+"&usertype="+e.loginfo.userData.fusertype+"&collcode="+e.loginfo.userData.fcollcode);if(a({type:"UNSET_LOADER"}),o.data.error_code===0){const c=o.data.data.map((g,d)=>({...g,key:d}));a({type:"COLLEGE_DETAILS",payload:c})}else{a({type:"COLLEGE_DETAILS",payload:[]}),s("info",o.data.data.msg);return}}catch(e){s("error",e.message)}},y=l=>async(a,r)=>{try{const e=r();let t=localStorage.getItem("dbname");a({type:"SET_LOADER"});const o=await n.get("app.php?a=getTeacherDetails&db="+t+"&univcode="+e.loginfo.userData.funivcode+"&usertype="+e.loginfo.userData.fusertype+"&collcode="+e.loginfo.userData.fcollcode);if(o.data.error_code===0){const c=o.data.data.map((g,d)=>({...g,key:d,fslno:d+1}));a({type:"TEACHER_DETAILS",payload:c})}else a({type:"TEACHER_DETAILS",payload:[]});a({type:"UNSET_LOADER"})}catch(e){s("error",e.message)}},D=l=>async(a,r)=>{try{const e=r();let t=localStorage.getItem("dbname");a({type:"SET_LOADER"});const o=await n.get("app.php?a=getTeachdet&db="+t+"&univcode="+e.loginfo.userData.funivcode+"&usertype="+e.loginfo.userData.fusertype+"&collcode="+e.loginfo.userData.fcollcode+"&teachcode="+l);o.data.error_code===0?a({type:"TEACH_DET",payload:o.data.data}):a({type:"TEACH_DET",payload:{}}),a({type:"UNSET_LOADER"})}catch(e){s("error",e.message)}},i=(l,a)=>async(r,e)=>{try{const t=e();let o=localStorage.getItem("dbname");r({type:"SET_LOADER"});const c=await n.get("app.php?a=checkTeachcode&db="+o+"&univcode="+t.loginfo.userData.funivcode+"&usertype="+t.loginfo.userData.fusertype+"&collcode="+t.loginfo.userData.fcollcode+"&teachcode="+l+"&field="+a);c.data.error_code===-1&&s("info",c.data.data.msg),r({type:"UNSET_LOADER"})}catch(t){s("error",t.message)}},E=(l,a)=>async(r,e)=>{try{const t=e();let o=localStorage.getItem("dbname");r({type:"SET_LOADER"});const c=await n.get("app.php?a=deleteTeachData&db="+o+"&univcode="+t.loginfo.userData.funivcode+"&usertype="+t.loginfo.userData.fusertype+"&fusercode="+t.loginfo.userData.fregno+"&teachcode="+l+"&fmobile="+a);c.data.error_code===0?s("success",c.data.data.msg):s("info",c.data.data.msg),r({type:"UNSET_LOADER"})}catch(t){s("error",t.message)}};export{D as a,y as b,i as c,E as d,f as g,u as s};
|