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.220.226.147
(window.webpackJsonp=window.webpackJsonp||[]).push([[148],{1085:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),c=a(68),l=a(3),o=a(99),u=a(100),i=a(102),s=a(101),d=a(103),m=a(1),p=a.n(m),f=a(858),E=a(1139),h=a(1106),b=a(272),w=a(1098),v=a(1101),y=a(492),C=(a(491),a(104)),O=(a(271),a(266)),g=(a(270),a(323),a(273)),j=a.n(g),S=a(284),k=a.n(S),x=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,u=new Array(n),d=0;d<n;d++)u[d]=arguments[d];return(a=Object(i.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(u)))).state={date:k()().format("DD/MM/YYYY"),frmsubmit:!1,status:""},a.handleChangev=function(e){a.setState(Object(l.a)({},e.target.name,e.target.value))},a.handleCancel=Object(c.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({date:k()().format("DD/MM/YYYY")}),a.setState({frmsubmit:!1});case 2:case"end":return e.stop()}},e)})),a.handleSubmit=Object(c.a)(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==a.state.date){e.next=4;break}return t={header:"Error",content:"Select Teacher ID"},a.props.showError(t),e.abrupt("return");case 4:return e.next=6,a.props.date(a.state);case 6:a.setState({frmsubmit:!0});case 7:case"end":return e.stop()}},e)})),a.handleView=Object(c.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.props.ViewDetails(a.state);case 2:case"end":return e.stop()}},e)})),a}return Object(d.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){var e=this.state.date;return p.a.createElement(E.a,{fluid:!0},p.a.createElement(E.a.Content,null,p.a.createElement(E.a.Header,{style:{display:"flex"}},p.a.createElement("h4",null,"MCF Verify New"),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(h.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),p.a.createElement(f.a,{to:"/dashboard"},p.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),p.a.createElement(b.a,null),p.a.createElement(E.a.Description,{style:{overflowY:"auto",height:"70vh"}},p.a.createElement("div",{className:"col-md-7"},p.a.createElement(w.a,null,p.a.createElement("div",null,p.a.createElement(w.a.Group,null,p.a.createElement(w.a.Field,{width:8},p.a.createElement("label",null,"Date"),p.a.createElement(j.a,{formatChars:{n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},type:"text",mask:"ed/nm/zyyy",name:"date",onChange:this.handleChangev,value:e}))),p.a.createElement(h.a,{primary:!0,onClick:this.handleSubmit},"Submit")))),Object.keys(this.props.mcfverifynew).length>0?p.a.createElement(v.a,{celled:!0,padded:!0},p.a.createElement(v.a.Header,null,p.a.createElement(v.a.Row,null,p.a.createElement(v.a.HeaderCell,null,"SL NO"),p.a.createElement(v.a.HeaderCell,null,"University Name"),p.a.createElement(v.a.HeaderCell,null,"Incharge"),p.a.createElement(v.a.HeaderCell,null,"Mobile No"),p.a.createElement(v.a.HeaderCell,null,"Status"),p.a.createElement(v.a.HeaderCell,null,"Action"))),p.a.createElement(v.a.Body,null,this.props.mcfverifynew.map(function(e,t){var a="";return a="0"==e.cnt?"Pending":e.cnt,p.a.createElement(v.a.Row,null,p.a.createElement(v.a.Cell,null,t+1),p.a.createElement(v.a.Cell,null,p.a.createElement("b",null,e.funivname)),p.a.createElement(v.a.Cell,null,p.a.createElement("b",null,e.fincharge)),p.a.createElement(v.a.Cell,null,p.a.createElement("b",null,e.fmobileno)),p.a.createElement(v.a.Cell,null,p.a.createElement("b",null,a)),p.a.createElement(v.a.Cell,{textAlign:"center",style:{fontSize:"1.2em",padding:"0.4em"}},p.a.createElement(f.a,{to:{pathname:"/ViewMcfDetails/".concat(e.funivcode+"*"+e.fdate),query:{fpath:e.funivcode+"*"+e.fdate}}},"0"!==e.cnt?p.a.createElement(h.a,{content:"View",basic:!0,size:"small",color:"blue",icon:"print"}):null)))}))):null)))}}]),t}(m.Component);t.default=Object(C.b)(function(e){return console.log(e),{univcode:e.univ.funivcode,mcfverifynew:e.mcfverifynewdate}},{showError:O.w,date:y.d})(x)},492:function(e,t,a){"use strict";a.d(t,"d",function(){return i}),a.d(t,"b",function(){return s}),a.d(t,"c",function(){return d}),a.d(t,"a",function(){return m}),a.d(t,"e",function(){return p});var n=a(41),r=a.n(n),c=a(68),l=a(269),o=a(266),u=a(290),i=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,u,i,s;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),a({type:"SET_LOADER"}),console.log(e),t.next=5,l.a.get("/app.php",{params:{a:"mcfverifynew",date:e.date,univcode:c.user.fcuruniv,user:c.user.fname}});case 5:u=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof u.data?(i={header:"Error",content:"Something went wrong"},a(Object(o.w)(i))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},a(Object(o.w)(s))):a({type:"MCF_VERIFY_NEW",payload:u.data});case 8:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},s=function(e,t){return function(){var a=Object(c.a)(r.a.mark(function a(n,c){return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:n({type:"CHECK_STATUS",payload:{cond:e,ind:t}});case 1:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},d=function(e,t){return function(){var a=Object(c.a)(r.a.mark(function a(n,c){return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:n({type:"CHECK_REMARKS",payload:{cond:e,ind:t}});case 1:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},m=function(e,t){return function(){var a=Object(c.a)(r.a.mark(function a(n,c){var u,i,s;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c(),n({type:"SET_LOADER"}),n({type:"DELETE_QPSTATS"}),a.next=5,l.a.get("/app.php",{params:{a:"mcfviewdetails",univcode1:e,date:t}});case 5:if(u=a.sent,n({type:"UNSET_LOADER"}),"object"===typeof u.data){a.next=13;break}return i={header:"Error",content:"Something went wrong"},n(Object(o.w)(i)),a.abrupt("return");case 13:if(-1!==u.data.error_code){a.next=19;break}return s={header:"Error",content:u.data.data.msg},n(Object(o.w)(s)),a.abrupt("return");case 19:n({type:"MCF_VIEW",payload:u.data});case 20:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},p=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,i,s,d,m;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),a({type:"SET_LOADER"}),t.next=4,l.a.post("/app.php?a=updatestaturemarks&univcode="+c.univ.funivcode+"&user="+c.user.fname,{mcfviewdetailarray:e});case 4:i=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof i.data?(s={header:"Error",content:"Something went wrong"},a(Object(o.w)(s))):-1===i.data.error_code?(d={header:"Error",content:i.data.data.msg},a(Object(o.w)(d))):(m={header:"Success",content:i.data.data.msg},a(Object(o.w)(m)),u.k.push("/mcfverifynew"));case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=148.50787eaa.chunk.js.map
|