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


Current Path : /proc/thread-self/root/var/www/qpms/assets/
Upload File :
Current File : //proc/thread-self/root/var/www/qpms/assets/ViewDegree-CCvpoY-L.js

import{x as c,t,L as o,B as a,D as m,M as p}from"./index-yZRoWOo9.js";import{b as x,u as f}from"./Degree-BzGOCTyA.js";import{S as u}from"./index-Bs5IP4o5.js";import{F as y}from"./Table-BYNsQlHO.js";import"./index-BAx0y-qi.js";import"./index-DmMN4NEW.js";import"./index-CdNzKG92.js";import"./responsiveObserver-BRU2r9OS.js";function h(n){const d=async(e,r)=>{let g=p.confirm({title:"Warning",content:"Do you want delete?",okButtonProps:{style:{backgroundColor:"#8231d3",borderColor:"#8231d3"}},onOk(){if(!g){showAlert("Row not found");return}n.getToDelete(e,r)},onCancel(){console.log("Cancelled")}})},i=async(e,r)=>{await n.updateDegree(e,r)},l=[{title:"Sl.No",dataIndex:"slno",key:"label",width:"7%",align:"center"},{title:"Degree",dataIndex:"degree",key:"label",width:"13%",align:"center"},{title:"Description",dataIndex:"despn",key:"label",width:"39%",align:"left"},{title:"Examno",dataIndex:"examno",key:"label",width:"8%",align:"center"},{title:"Degree Group",dataIndex:"deggrp",key:"label",width:"13%",align:"center"},{title:"Action",dataIndex:"action",key:"label",width:"20%",align:"center"}],s=n.degreeDet.map((e,r)=>({key:r,slno:r+1,degree:e.fdegree,despn:e.fdescpn,examno:e.fexamno,deggrp:e.fdeggrp,action:t.jsxs(t.Fragment,{children:[t.jsx(o,{to:{pathname:`/qpsettings/degree/${e.fdegree}/${e.fdescpn}/${e.fexamno}/${e.fexamname}/${e.fdeggrp}`},children:t.jsx(a,{type:"primary",size:"medium",onClick:()=>i(e.fdegree,e.fexamno),children:"Edit"})}),t.jsx(a,{type:"primary",size:"medium",danger:!0,style:{marginLeft:"10px"},onClick:()=>d(e.fdegree,e.fexamno),children:"Delete"})]})}));return t.jsx(m,{style:{margin:"6rem 10px 10px"},title:t.jsx("h6",{children:"Degree Details"}),extra:t.jsxs(u,{children:[t.jsx(o,{to:"/qpsettings/degree",children:t.jsx(a,{type:"primary",children:"Back"})}),t.jsx(o,{to:"/",children:t.jsx(a,{type:"primary",danger:!0,children:"Exit"})})]}),children:t.jsx(y,{dataSource:s,columns:l,pagination:!1,bordered:!0,size:"small",style:{width:"80%",marginLeft:"10%"},scroll:{y:400,x:"max-content"}})})}const D=n=>({loginfo:n.loginfo,loader:n.loader.btnLoading,degreeDet:n.degreeDet,updatedeg:n.updatedeg}),S=c(D,{getToDelete:x,updateDegree:f})(h);export{S as default};