0xV3NOMx
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.188.211.58


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/SelectFinalQP-BQLC4g4j.js

import{v as p,E as r}from"./index-BNUFy9rV.js";const _=s=>async(a,n)=>{n();let o=localStorage.getItem("dbname");a({type:"SET_BTN_LOADER"}),await p.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((d,l)=>({...d,key:l,fslno:l+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 p.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)}},g=s=>async(a,n)=>{n();let o=localStorage.getItem("dbname");a({type:"SET_BTN_LOADER"}),await p.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((d,l)=>({...d,key:l,fslno:l+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)})},m=s=>async(a,n)=>{try{const o=n();let e=localStorage.getItem("dbname");a({type:"SET_LOADER"});const t=await p.post("/app.php?a=saveOMRFinalPaper&db="+e,s);console.log(t),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{g as a,m as b,_ as g,E as s};