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.145.88.104
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/UploadQpPattern-BTvHvx0V.js |
import{v as l,E}from"./index-DytKDlFb.js";const g=()=>async(p,e)=>{e();let t=localStorage.getItem("dbname");p({type:"SET_LOADER"}),await l.get("/app.php?a=getQpDeggrp&db="+t).then(o=>{p({type:"UNSET_LOADER"}),o.data.error_code===0?p({type:"GET_QP_DEGGRP",payload:o.data.data}):(p({type:"CLEAR_QP_DEGGRP",payload:[]}),E("info",o.data.data.msg))}).catch(o=>{})},A=p=>async(e,t)=>{t();let o=localStorage.getItem("dbname");e({type:"SET_LOADER"}),await l.get("/app.php?a=getQpDegree&db="+o+"°grp="+p).then(a=>{e({type:"UNSET_LOADER"}),a.data.error_code===0?e({type:"GET_QP_DEGREE",payload:a.data.data}):e({type:"CLEAR_QP_DEGREE",payload:[]})}).catch(a=>{E("error",a)})},c=p=>async(e,t)=>{t();let o=localStorage.getItem("dbname");e({type:"SET_LOADER"}),await l.get("/app.php?a=getQpBoard&db="+o+"°grp="+p).then(a=>{e({type:"UNSET_LOADER"}),a.data.error_code===0?e({type:"GET_QP_BOARD",payload:a.data.data}):e({type:"CLEAR_QP_BOARD",payload:[]})}).catch(a=>{E("error",a)})},m=(p,e)=>async(t,o)=>{o();let a=localStorage.getItem("dbname");t({type:"SET_LOADER"}),await l.get("/app.php?a=getQpcode&db="+a+"°grp="+p+"&board="+e).then(r=>{t({type:"UNSET_LOADER"}),r.data.error_code===0?t({type:"GET_QP_CODE",payload:r.data.data}):t({type:"CLEAR_QP_CODE",payload:[]})}).catch(r=>{E("error",r)})},D=p=>async(e,t)=>{t();let o=localStorage.getItem("dbname");e({type:"SET_LOADER"}),await l.post("/app.php?a=getUploadQpPatternDetails&db="+o,p).then(a=>{if(e({type:"UNSET_LOADER"}),a.data.error_code===0){const r=a.data.data.data.map((d,y)=>({...d,key:y,slno:y+1}));e({type:"GET_QP_PATTERN_UPD_DETAILS",payload:r});const n=a.data.data.temp.map((d,y)=>({key:y,value:d.ftempcode,label:d.ftempcode}));e({type:"GET_QP_PATTERN_TEMP_CODE",payload:n})}else e({type:"CLEAR_QP_PATTERN_UPD_DETAILS",payload:[]}),e({type:"CLEAR_QP_PATTERN_TEMP_CODE",payload:[]})}).catch(a=>{E("error",a)})},T=p=>async(e,t)=>{const o=t(),a=o.loginfo.userData.funivcode,r=o.loginfo.userData.fregno;let n=localStorage.getItem("dbname");e({type:"SET_LOADER"}),await l.post("/app.php?a=uploadQpPattern&db="+n+"&univcode="+a+"&userid="+r,p).then(d=>{if(e({type:"UNSET_LOADER"}),d.data.error_code===0)E("success",d.data.data.msg);else{E("info",d.data.data.msg);return}}).catch(d=>{E("error",d)})},b=p=>async(e,t)=>{t();let o=localStorage.getItem("dbname");e({type:"SET_LOADER"}),await l.get("/app.php?a=getExamName&db="+o+"°grp="+p).then(a=>{if(e({type:"UNSET_LOADER"}),a.data.error_code===0){let r=a.data.data.map((n,d)=>({key:d,value:n.fexamyear,label:n.fdesexam}));e({type:"EXAMNAME",payload:r})}else e({type:"EXAMNAME",payload:[]})}).catch(a=>{E("error",a)})},R=(p,e)=>async(t,o)=>{o();let a=localStorage.getItem("dbname");t({type:"SET_LOADER"}),await l.get("/app.php?a=getAvailableSubjects&db="+a+"°grp="+p+"&board="+e).then(r=>{t({type:"UNSET_LOADER"}),r.data.error_code===0?t({type:"GET_AVAILABLE_SUBJECTS",payload:r.data.data}):t({type:"GET_AVAILABLE_SUBJECTS",payload:[]})}).catch(r=>{E("error",r)})};export{c as a,m as b,D as c,R as d,A as e,b as f,g,T as u};
|