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


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

import{x as m,r as o,t as e,D as f,L as n,B as c,R as x}from"./index-CAvdhLGp.js";import{b as p}from"./TeacherEntry-B9i28ovx.js";import{g as s,s as i}from"./datatable-D5cr6YDQ.js";import{S as g}from"./index-Bthn8aXT.js";import{R as u}from"./ArrowLeftOutlined-B2yUfO8l.js";import{R as j}from"./HomeOutlined-CsEPm3IA.js";import{F as w}from"./Table-UOfxwYBm.js";import{R as D}from"./EditOutlined-CLYwiKty.js";import"./index-D4XjlJqh.js";import"./index-BX9F7V_3.js";import"./index-DmG-UXL6.js";import"./responsiveObserver-CtD7KI5g.js";const b=r=>{const[d,l]=o.useState([]);o.useEffect(()=>{r.getTeacherDetails()},[]),o.useEffect(()=>{l(r.teacherDetails)},[r.teacherDetails]);const h=[{title:"Sl. No",dataIndex:"fslno",align:"center",width:"5%"},{title:"Teacher Code",dataIndex:"fteachcode",align:"center",...s("fteachcode","teachcode"),sorter:(a,t)=>i(a,t,"fteachcode"),sortDirections:["descend","ascend"],width:"10%"},{title:"Teacher Name",dataIndex:"fteachname",...s("fteachcode","teachname"),sorter:(a,t)=>i(a,t,"fteachcode"),sortDirections:["descend","ascend"],width:"18%"},{title:"DOB",dataIndex:"fdob",align:"center",width:"7%"},{title:"Mobile",dataIndex:"fmobile",...s("fteachcode","mobile"),sorter:(a,t)=>i(a,t,"fmobile"),sortDirections:["descend","ascend"],align:"center",width:"10%"},{title:"Email",dataIndex:"femail",...s("fteachcode","email"),sorter:(a,t)=>i(a,t,"femail"),sortDirections:["descend","ascend"],width:"16%"},{title:"College",dataIndex:"fcollname",...s("fteachcode","college"),sorter:(a,t)=>i(a,t,"fcollname"),sortDirections:["descend","ascend"],width:"20%"},{title:"Examiner",dataIndex:"fexaminer",align:"center",width:"7%"},{title:"Action",render:(a,t)=>e.jsx(n,{to:{pathname:`/qpsettings/teacher-entry/${t.fteachcode}/${t.fmobile}/update`},children:e.jsxs(c,{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(g,{children:[e.jsx(n,{to:"/qpsettings/teacher-entry/insert",children:e.jsxs(c,{type:"primary",children:[e.jsx(u,{})," Back"]})}),e.jsxs(c,{style:{background:"green",color:"white"},onClick:()=>saveHandler(),children:[e.jsx(x,{})," View"]}),e.jsx(n,{to:"/dashboard",children:e.jsxs(c,{type:"primary",danger:!0,children:[e.jsx(j,{})," Exit"]})})]}),children:e.jsx(w,{bordered:!0,dataSource:d,size:"small",scroll:{y:500,x:1200},columns:h})})},I=r=>({teacherDetails:r.teacherDetails}),z=m(I,{getTeacherDetails:p})(b);export{z as default};