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


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/ViewTeacherList-BvU77Coz.js

import{x as h,r as n,t as e,D as f,L as c,B as i,R as x}from"./index-Dg6L4Sgi.js";import{b as p}from"./TeacherEntry-BlYVM9-d.js";import{g as s,s as o}from"./datatable-KuvfNXcW.js";import{p as g}from"./sem-DLpF_ddZ.js";import{S as u}from"./index-DlmGwZY4.js";import{R as j}from"./ArrowLeftOutlined-BITsaogm.js";import{R as w}from"./HomeOutlined-DuiGAEJZ.js";import{F as b}from"./Table-LuwqJFvB.js";import{R as D}from"./EditOutlined-BXHYVZWG.js";import"./index-B7RN03Rw.js";import"./index-CFncUd0X.js";import"./index-Dz2boTk9.js";import"./responsiveObserver-BUHeJEGz.js";const I=r=>{const[d,l]=n.useState([]);n.useEffect(()=>{r.getTeacherDetails()},[]),n.useEffect(()=>{l(r.teacherDetails)},[r.teacherDetails]);const m=[{title:"Sl. No",dataIndex:"fslno",align:"center",width:"5%"},{title:"Teacher Code",dataIndex:"fteachcode",align:"center",...s("fteachcode","teachcode"),sorter:(a,t)=>o(a,t,"fteachcode"),sortDirections:["descend","ascend"],width:"10%"},{title:"Teacher Name",dataIndex:"fteachname",...s("fteachname","teachname"),sorter:(a,t)=>o(a,t,"fteachcode"),sortDirections:["descend","ascend"],width:"18%"},{title:"DOB",dataIndex:"fdob",align:"center",width:"7%"},{title:"Mobile",dataIndex:"fmobile",...s("fmobile","mobile"),sorter:(a,t)=>o(a,t,"fmobile"),sortDirections:["descend","ascend"],align:"center",width:"10%"},{title:"Email",dataIndex:"femail",...s("femail","email"),sorter:(a,t)=>o(a,t,"femail"),sortDirections:["descend","ascend"],width:"16%"},{title:"College",dataIndex:"fcollname",width:"20%"},{title:"Examiner",dataIndex:"fexaminer",align:"center",width:"7%"},{title:"Action",render:(a,t)=>e.jsx(c,{to:{pathname:`/qpsettings/teacher-entry/${t.fteachcode}/${t.fmobile}/update`},children:e.jsxs(i,{size:"medium",style:{color:"white",background:"green"},children:[e.jsx(D,{}),"Edit"]})}),align:"center",width:"7%"}];return e.jsx(f,{style:{margin:"6rem 10px 10px"},title:e.jsx("h6",{children:"Teacher List"}),extra:e.jsxs(u,{children:[e.jsx(c,{to:"/qpsettings/teacher-entry/insert",children:e.jsxs(i,{type:"primary",children:[e.jsx(j,{})," Back"]})}),e.jsxs(i,{style:{background:"green",color:"white"},onClick:()=>saveHandler(),children:[e.jsx(x,{})," View"]}),e.jsx(c,{to:"/dashboard",children:e.jsxs(i,{type:"primary",danger:!0,children:[e.jsx(w,{})," Exit"]})})]}),children:e.jsx(b,{bordered:!0,dataSource:d,size:"small",scroll:{y:500,x:1200},columns:m,pagination:g})})},y=r=>({teacherDetails:r.teacherDetails}),F=h(y,{getTeacherDetails:p})(I);export{F as default};