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.221.248.140
import{v as d,E as r}from"./index-CvUjCcnC.js";const D=t=>async(e,o)=>{try{const a=new FormData;a.append("data",JSON.stringify(t));let g=localStorage.getItem("dbname");e({type:"SET_LOADER"});const s=await d.post("app.php?a=saveDeggrp&db="+g,a);e({type:"UNSET_LOADER"}),s.data.error_code===0?r("success",s.data.data.msg):r("info",s.data.data.msg)}catch(a){r("error",a.message)}},p=()=>async(t,e)=>{try{let o=localStorage.getItem("dbname");t({type:"SET_LOADER"});let a=await d.get("app.php?a=getdeggrpdata&db="+o);t({type:"UNSET_LOADER"}),a.data.error_code==0?t({type:"DEGGRP_DATA",payload:a.data.data}):(t({type:"CLEAR_DEGGRP_DATA",payload:[]}),r("info",a.data.data.msg))}catch(o){r("error",o.message)}},m=t=>async(e,o)=>{try{let a=localStorage.getItem("dbname");e({type:"SET_LOADER"});let g=await d.get("app.php?a=toDeleteDeggrpData&db="+a+"°grp="+t);e({type:"UNSET_LOADER"}),g.data.error_code==0?(r("info",g.data.data.msg),e(p())):r("info",g.data.data.msg)}catch(a){r("error",a.message)}},l=t=>async(e,o)=>{try{let a=localStorage.getItem("dbname");e({type:"SET_LOADER"});let g=await d.get("app.php?a=toEditDeggrpData&db="+a+"°grp="+t);e({type:"UNSET_LOADER"}),g.data.error_code==0?e({type:"EDIT_DEGGRP_DATA",payload:g.data.data}):r("info",g.data.data.msg)}catch(a){r("error",a.message)}};export{l as a,p as g,D as s,m as t};
|