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.137.170.38
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/SelectFinalQP-BSQdVOfk.js |
import{v as d,E as r}from"./index-D91i0Taj.js";const _=s=>async(a,n)=>{n();let o=localStorage.getItem("dbname");a({type:"SET_BTN_LOADER"}),await d.get("/app.php?a=getSelectFinalQP&db="+o+"&data="+JSON.stringify(s)).then(e=>{if(a({type:"UNSET_BTN_LOADER"}),e.data.error_code===0){const t=e.data.data.map((l,p)=>({...l,key:p,fslno:p+1}));a({type:"SET_SELECT_FINAL_QP",payload:t})}else a({type:"SET_SELECT_FINAL_QP",payload:[]}),r("Info",e.data.data.msg)}).catch(e=>{r("error",e)})},E=s=>async(a,n)=>{try{const o=n();let e=localStorage.getItem("dbname");a({type:"SET_LOADER"});const t=await d.post("/app.php?a=saveSelectFinalQP&db="+e,s);a({type:"UNSET_LOADER"}),t.data.error_code===0?r("success",t.data.data.msg):r("Info",t.data.data.msg)}catch(o){r("error",o.message)}},m=s=>async(a,n)=>{n();let o=localStorage.getItem("dbname");a({type:"SET_BTN_LOADER"}),await d.get("/app.php?a=getOmrQuestionPapers&db="+o+"&data="+JSON.stringify(s)).then(e=>{if(a({type:"UNSET_BTN_LOADER"}),e.data.error_code===0){const t=e.data.data.map((l,p)=>({...l,key:p,fslno:p+1}));a({type:"SET_SELECT_MCQ_FINAL_QP",payload:t})}else a({type:"SET_SELECT_MCQ_FINAL_QP",payload:[]}),r("Info",e.data.data.msg)}).catch(e=>{r("error",e)})},y=s=>async(a,n)=>{try{const o=n();let e=localStorage.getItem("dbname");a({type:"SET_LOADER"});const t=await d.post("/app.php?a=saveOMRFinalPaper&db="+e,s);a({type:"UNSET_LOADER"}),t.data.error_code===0?r("success",t.data.data.msg):r("Info",t.data.data.msg)}catch(o){r("error",o.message)}};export{m as a,y as b,_ as g,E as s};
|