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.116.89.2
(window.webpackJsonp=window.webpackJsonp||[]).push([[152],{1113:function(e,t,a){"use strict";a.r(t);var l=a(41),n=a.n(l),r=a(68),c=a(3),o=a(99),d=a(100),i=a(102),s=a(101),u=a(103),m=a(1),p=a.n(m),f=a(1139),E=a(1106),C=a(272),g=a(1098),h=a(1100),b=a(858),A=a(269),w=a(266),v=function(e){return function(){var t=Object(r.a)(n.a.mark(function t(a,l){var r,c,o,d,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=l(),a({type:"SET_LOADER"}),c=""!=r.user.fcurtype&&r.user.fcurtype>=500?r.user.fcollcode:"",t.next=5,A.a.get("/app.php",{params:{a:"admStats",univcode:r.univ.funivcode,fdeggrp:r.user.fdeggrp,fcollcode:c,frtype:e}});case 5:o=t.sent,a({type:"UNSET_LOADER"}),console.log("response.data.error_code",o.data.error_code),"object"!==typeof o.data?(d={header:"Error",content:"Something went wrong"},a(Object(w.w)(d))):-1==o.data.error_code?(console.log(o.data.data.msg),i={header:"Error",content:o.data.data.msg},a(Object(w.w)(i))):a({type:"GET_ADM_STATS",payload:o.data});case 9:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},x=a(104),y=a(1101),O=function(e){function t(){var e,a;Object(o.a)(this,t);for(var l=arguments.length,n=new Array(l),r=0;r<l;r++)n[r]=arguments[r];return(a=Object(i.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(n)))).state={},a}return Object(u.a)(t,e),Object(d.a)(t,[{key:"render",value:function(){var e=this.props.collAdmStats;return console.log("Degree Render",e),p.a.createElement(p.a.Fragment,null,p.a.createElement(y.a,{celled:!0,padded:!0,selectable:!0},p.a.createElement(y.a.Header,null,p.a.createElement(y.a.Row,{textAlign:"center"},p.a.createElement(y.a.HeaderCell,null,"SL. No."),p.a.createElement(y.a.HeaderCell,null,"Degree Code"),p.a.createElement(y.a.HeaderCell,null,"Degree Name"),p.a.createElement(y.a.HeaderCell,null,"Upd. by Coll."),p.a.createElement(y.a.HeaderCell,null,"App. filled"),p.a.createElement(y.a.HeaderCell,null,"Pending Count"),p.a.createElement(y.a.HeaderCell,null,"Ack Done"),p.a.createElement(y.a.HeaderCell,null,"Ack Pending"),p.a.createElement(y.a.HeaderCell,null,"Approval Done"),p.a.createElement(y.a.HeaderCell,null,"Approval Pending"))),p.a.createElement(y.a.Body,null,e.map(function(e,t){return p.a.createElement(y.a.Row,{key:t+1},p.a.createElement(y.a.Cell,{textAlign:"center"},t+1),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fdegree),p.a.createElement(y.a.Cell,null,e.fdescpn),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fcount),p.a.createElement(y.a.Cell,{textAlign:"center"},e.ffinsubdone),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fadmpend),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fackdone),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fackpend),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fapprdone),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fapprpend))}))))}}]),t}(m.Component),j=Object(x.b)(function(e){return{collAdmStats:e.admCollStats}},{showError:w.w})(O),S=function(e){function t(){var e,a;Object(o.a)(this,t);for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return(a=Object(i.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(c)))).state={expandedRows:null,curCollcode:""},a.handleRowClick=function(){var e=Object(r.a)(n.a.mark(function e(t,l){var r;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=a.state.expandedRows,a.setState({expandedRows:t===r?null:t,curCollcode:l});case 2:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a}return Object(u.a)(t,e),Object(d.a)(t,[{key:"renderItem",value:function(e,t){var a=this,l=[p.a.createElement(y.a.Row,{key:"row-data-"+t,onClick:function(){return a.handleRowClick(t,e.fcollcode)}},p.a.createElement(y.a.Cell,{textAlign:"center"},t+1),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fcollcode),p.a.createElement(y.a.Cell,null,e.fcollname),p.a.createElement(y.a.Cell,null,e.fmobile,"/ ",e.fphone),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fcount),p.a.createElement(y.a.Cell,{textAlign:"center"},e.ffinsubdone),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fadmpend),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fackdone),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fackpend),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fapprdone),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fapprpend))];if(this.state.expandedRows==t){var n=this.props.collAdmStats.collDegDet;n.length>0&&l.push(p.a.createElement(p.a.Fragment,null,n.filter(function(e){return e.fcollcode==a.state.curCollcode}).map(function(e,t){return p.a.createElement(y.a.Row,{key:t+1},p.a.createElement(y.a.Cell,{colSpan:"4"},e.fdegree," - ",e.fdescpn),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fcount),p.a.createElement(y.a.Cell,{textAlign:"center"},e.ffinsubdone),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fadmpend),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fackdone),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fackpend),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fapprdone),p.a.createElement(y.a.Cell,{textAlign:"center"},e.fapprpend))})))}return l}},{key:"render",value:function(){var e=this,t=this.props.collAdmStats.collDet,a=[];return t.map(function(t,l){var n=e.renderItem(t,l);a=a.concat(n)}),p.a.createElement("div",{style:{overflowX:"scroll"}},p.a.createElement(y.a,{celled:!0,selectable:!0,className:"animated fadeIn",padded:!0},p.a.createElement(y.a.Header,null,p.a.createElement(y.a.Row,{textAlign:"center"},p.a.createElement(y.a.HeaderCell,null,"SL. No."),p.a.createElement(y.a.HeaderCell,null,"College Code"),p.a.createElement(y.a.HeaderCell,null,"College Name"),p.a.createElement(y.a.HeaderCell,null,"Contact"),p.a.createElement(y.a.HeaderCell,null,"Upd. by Coll."),p.a.createElement(y.a.HeaderCell,null,"App. filled"),p.a.createElement(y.a.HeaderCell,null,"Pending Count"),p.a.createElement(y.a.HeaderCell,null,"Ack Done"),p.a.createElement(y.a.HeaderCell,null,"Ack Pending"),p.a.createElement(y.a.HeaderCell,null,"Approval Done"),p.a.createElement(y.a.HeaderCell,null,"Approval Pending"))),p.a.createElement(y.a.Body,null,a)))}}]),t}(m.Component),k=Object(x.b)(function(e){return{collAdmStats:e.admCollStats}},{showError:w.w,getAdmStats:v})(S),H=a(270),D=function(e){function t(){var e,a;Object(o.a)(this,t);for(var l=arguments.length,d=new Array(l),u=0;u<l;u++)d[u]=arguments[u];return(a=Object(i.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(d)))).state={rtype:"",shwTbl:!1},a.handleChange=function(e,t){switch(t.type){case"text":a.setState(Object(c.a)({},t.name,t.value));default:a.setState(Object(c.a)({},t.name,t.value))}a.setState({shwTbl:!1})},a.handleSubmit=Object(r.a)(n.a.mark(function e(){var t;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.state.rtype,e.next=3,a.props.getAdmStats(t);case 3:a.setState({shwTbl:!0});case 4:case"end":return e.stop()}},e)})),a}return Object(u.a)(t,e),Object(d.a)(t,[{key:"render",value:function(){var e=Object(H.i)();return p.a.createElement(p.a.Fragment,null,p.a.createElement(f.a,{fluid:!0,className:"animated fadeIn"},p.a.createElement(f.a.Content,null,p.a.createElement(f.a.Header,{style:{display:"flex"}},p.a.createElement("h4",null,"Admission Statistics"),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(b.a,{to:"/dashboard"},p.a.createElement(E.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),p.a.createElement(C.a,null),p.a.createElement(f.a.Description,{style:{height:"".concat(e,"px"),overflowY:"auto"}},p.a.createElement(g.a,null,p.a.createElement(g.a.Field,{width:6},p.a.createElement("label",null,"Select"),p.a.createElement(h.a,{placeholder:"Select here",search:!0,selection:!0,id:"rtype",name:"rtype",options:[{key:"c",value:"collwise",text:"College Wise"},{key:"d",value:"degwise",text:"Degree Wise"}],onChange:this.handleChange}))),p.a.createElement(E.a,{basic:!0,size:"small",color:"green",content:"Submit",onClick:this.handleSubmit,className:"mt-2 mb-3"}),"collwise"==this.state.rtype&&this.state.shwTbl&&p.a.createElement(k,null),"degwise"==this.state.rtype&&this.state.shwTbl&&p.a.createElement(j,null)))))}}]),t}(m.Component);t.default=Object(x.b)(function(e){return{collAdmStats:e.admCollStats}},{getAdmStats:v,showError:w.w})(D)},272:function(e,t,a){"use strict";var l=a(268),n=a.n(l),r=a(265),c=a.n(r),o=a(1),d=a.n(o),i=a(333),s=a(551),u=a(549),m=a(267);function p(e){var t=e.children,a=e.className,l=e.clearing,r=e.content,o=e.fitted,f=e.hidden,E=e.horizontal,C=e.inverted,g=e.section,h=e.vertical,b=c()("ui",Object(i.a)(l,"clearing"),Object(i.a)(o,"fitted"),Object(i.a)(f,"hidden"),Object(i.a)(E,"horizontal"),Object(i.a)(C,"inverted"),Object(i.a)(g,"section"),Object(i.a)(h,"vertical"),"divider",a),A=Object(s.a)(p,e),w=Object(u.a)(p,e);return d.a.createElement(w,n()({},A,{className:b}),m.a.isNil(t)?r:t)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},t.a=p}}]);
//# sourceMappingURL=152.40333b1b.chunk.js.map
|