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


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/Viewdeggrp-CS4OAefw.js

import{x as s,t as e,L as d,B as n,D as p,M as c}from"./index-BnV6LRk1.js";import{t as m,a as x}from"./DegreeGroup-GkHcROVC.js";import{S as y}from"./index-Bm30U5Iv.js";import{F as u}from"./Table-Ba9ECeid.js";import"./index-ZKM9bSaz.js";import"./index-DDJhgKXs.js";import"./index-BoWG-kFi.js";import"./responsiveObserver-BFnokbxg.js";function f(a){const i=t=>{let r=c.confirm({title:"Warning",content:"Do you want delete?",okButtonProps:{style:{backgroundColor:"#8231d3",borderColor:"#8231d3"}},onOk(){if(!r){showAlert("Row not found");return}a.toDeleteDegggrp(t)},onCancel(){console.log("Cancelled")}})},o=async t=>{await a.toEditDeggrpData(t)},l=[{title:"Sl.No",dataIndex:"slno",key:"label",width:"1%",align:"center"},{title:"Degree Group",dataIndex:"deggrp",key:"label",width:"2%",align:"center"},{title:"Description",dataIndex:"despn",key:"label",width:"6%",align:"left"},{title:"Year",dataIndex:"year",key:"label",width:"1%",align:"center"},{title:"Mode",dataIndex:"mode",key:"label",width:"1%",align:"center"},{title:"ExamDate",dataIndex:"examdate",key:"label",width:"4%",align:"center"},{title:"Action",dataIndex:"action",key:"label",width:"2%",align:"center"}],g=a.getDeggrpdata.map((t,r)=>({key:r,slno:r+1,deggrp:t.fdeggrp,despn:t.fdescpn,year:t.fyear,mode:t.fexamtype,examdate:t.fexamdate,action:e.jsxs(e.Fragment,{children:[e.jsx(d,{to:{pathname:`/qpsetting/deggrp/${t.fdeggrp}/update`},children:e.jsx(n,{type:"primary",size:"medium",onClick:()=>o(t.fdeggrp),children:"Edit"})}),e.jsx(n,{type:"primary",size:"medium",danger:!0,style:{marginLeft:"10px"},onClick:()=>i(t.fdeggrp),children:"Delete"})]})}));return e.jsx(p,{style:{margin:"6rem 10px 10px"},title:e.jsx("h6",{children:"Degree Group Details"}),extra:e.jsxs(y,{children:[e.jsx(d,{to:"/qpsetting/deggrp/type",children:e.jsx(n,{type:"primary",children:"Back"})}),e.jsx(d,{to:"/",children:e.jsx(n,{type:"primary",danger:!0,children:"Exit"})})]}),children:e.jsx(u,{dataSource:g,columns:l,pagination:!1,bordered:!0,size:"small",style:{width:"80%",marginLeft:"10%"},scroll:{y:400,x:"max-content"}})})}const h=a=>({deggrpsubject:a.deggrpsubject,getDeggrpdata:a.getDeggrpdata}),S=s(h,{toDeleteDegggrp:m,toEditDeggrpData:x})(f);export{S as default};