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.227.183.161
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/Viewdeggrp-BxAyFRFD.js |
import{x as s,t as e,L as d,B as n,D as p,M as c}from"./index-QZTwIYNH.js";import{t as m,a as x}from"./DegreeGroup-C9tSbPfg.js";import{S as y}from"./index-BuLi212C.js";import{F as u}from"./Table-Cc25zE5h.js";import"./index-CM8Sh-uj.js";import"./index-DOQp1pcZ.js";import"./index-DBO0RidY.js";import"./responsiveObserver-DIcRJoDZ.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};
|