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 : 3.15.26.184


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/ViewQPScr-B1YyGbXr.js

import{v as p,E as o}from"./index-CBbt9NTc.js";const A=n=>async(a,r)=>{const d=r();let t=localStorage.getItem("dbname");a({type:"SET_LOADER"}),await p.post("/app.php?a=viewQPData&db="+t+"&funivcode="+d.loginfo.userData.funivcode,n).then(e=>{a({type:"UNSET_LOADER"}),e.data.error_code===0?a({type:"GET_VIEW_QP_DATA",payload:e.data.data}):(a({type:"CLEAR_VIEW_QP_DATA",payload:[]}),o("info",e.data.data.msg))}).catch(e=>{a({type:"UNSET_LOADER"}),o("error",e.message)})},y=n=>async(a,r)=>{const d=r();let t=localStorage.getItem("dbname");a({type:"SET_LOADER"}),await p.post("/app.php?a=viewFinalQP&db="+t+"&funivcode="+d.loginfo.userData.funivcode,n).then(e=>{if(a({type:"UNSET_LOADER"}),e.data.error_code===0){const l=e.data.data.map((s,E)=>({...s,key:E,slno:E+1}));a({type:"VIEW_FINAL_QP_DATA",payload:l})}else a({type:"CLEAR_FINAL_QP_DATA",payload:[]}),o("info",e.data.data.msg)}).catch(e=>{a({type:"UNSET_LOADER"}),o("error",e.message)})},D=n=>async(a,r)=>{r();let d=localStorage.getItem("dbname");a({type:"SET_LOADER"}),await p.post("/app.php?a=saveFinalQPData&db="+d,n).then(t=>{if(a({type:"UNSET_LOADER"}),t.data.error_code===0){o("info",t.data.data.msg);return}else{o("info",t.data.data.msg);return}}).catch(t=>{a({type:"UNSET_LOADER"}),o("error",t.message)})};export{y as a,A as g,D as s};