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


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

import{x as p,t as e,L as d,B as n,D as s,M as c}from"./index-BdqWE2h0.js";import{t as m,a as x}from"./DegreeGroup-Dnr8CVBS.js";import{S as y}from"./index-B7GPTdui.js";import{F as u}from"./Table-nj-tka-C.js";import"./index-DLmCS154.js";import"./index-COY1jP5b.js";import"./index-BMsG2LUN.js";import"./responsiveObserver-D_yFkblv.js";function D(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(s,{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 f=a=>(console.log(a.getDeggrpdata,"apple"),{deggrpsubject:a.deggrpsubject,getDeggrpdata:a.getDeggrpdata}),S=p(f,{toDeleteDegggrp:m,toEditDeggrpData:x})(D);export{S as default};