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.145.55.25


Current Path : /proc/thread-self/root/var/www/qpms/assets/
Upload File :
Current File : //proc/thread-self/root/var/www/qpms/assets/ViewAbstract-D223HvVy.js

import{x as m,t as a,L as d,B as i,D as b,O as f}from"./index-Dyw5MJqL.js";import{v as p,d as x,a as g}from"./AbstractForm-CftDp_4O.js";import{S as h}from"./index-CzmTCSqS.js";import{F as w}from"./Table-CG1LaaQy.js";import"./index-fA1MKV2E.js";import"./responsiveObserver-CbmTM_W9.js";const y=e=>{console.log(e.abstractformdata,"anita");const n=t=>{e.deleteData(t),e.viewAbstractData()},l=t=>{let r=localStorage.getItem("dbname");window.open(f+"/app.php?a=getAbstractForm&db="+r+"&id="+t)},o=async t=>{await e.getDataForUpdate(t)},s=e.abstractformdata.map((t,r)=>({id:r+1,name:t.fname,mobile:t.fmobile,email:t.fmobile,dob:t.fdob,gender:t.fgender,action:a.jsxs(a.Fragment,{children:[a.jsx(d,{to:{pathname:`/qpsettings/abstractform/${t.fid}/update`},children:a.jsx(i,{type:"primary",onClick:()=>o(t.fid),children:"Edit"})})," ",a.jsx(i,{type:"primary",danger:!0,onClick:()=>n(t.fid),children:"Delete"})," ",a.jsx(i,{type:"primary",onClick:()=>l(t.fid),children:"Report"})]})})),c=[{title:"Id",dataIndex:"id",key:"label",width:"5%",align:"left"},{title:"Name",dataIndex:"name",key:"label",width:"20%",align:"left"},{title:"Mobile",dataIndex:"mobile",key:"label",width:"10%",align:"left"},{title:"Email",dataIndex:"email",key:"label",width:"25%",align:"left"},{title:"DOB",dataIndex:"dob",key:"label",width:"10%",align:"left"},{title:"Gender",dataIndex:"gender",key:"label",width:"6%",align:"left"},{title:"Action",dataIndex:"action",key:"label",width:"30%",align:"center"}];return a.jsx(b,{style:{margin:"6rem 10px 10px"},title:a.jsx("h6",{children:"View Abstract Form Data"}),extra:a.jsx(h,{children:a.jsx(d,{to:"/",children:a.jsx(i,{type:"primary",danger:!0,children:"Exit"})})}),children:a.jsx(w,{dataSource:s,columns:c,pagination:!1,bordered:!0,size:"small",style:{width:"100%"}})})},u=e=>(console.log(e.abstractformdata,"state.abstractformdata"),{abstractformdata:e.abstractformdata}),S=m(u,{viewAbstractData:p,deleteData:x,getDataForUpdate:g})(y);export{S as default};