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.147.126.199
(window.webpackJsonp=window.webpackJsonp||[]).push([[200],{304:function(e,l,a){},650:function(e,l,a){"use strict";a.r(l);var t=a(100),n=a(101),r=a(103),c=a(102),o=a(104),m=a(2),d=a.n(m),u=a(1155),s=a(1338),i=(a(304),a(171),function(e){function l(){var e,a;Object(t.a)(this,l);for(var n=arguments.length,o=new Array(n),m=0;m<n;m++)o[m]=arguments[m];return(a=Object(r.a)(this,(e=Object(c.a)(l)).call.apply(e,[this].concat(o)))).state={colgdet:[],searchVal:""},a.searchTable=function(e,l){var t=l.value,n=a.props.reportdet.filter(function(e){return Object.keys(e).some(function(l){return e[l].toLowerCase().includes(t.toLowerCase())})});a.setState({colgdet:n,searchVal:l.value})},a.renderTable=function(){var e=a.state.colgdet;return d.a.createElement("div",{className:"mt-3"},d.a.createElement("hr",null),d.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},d.a.createElement(u.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:a.searchTable,value:a.state.searchVal,style:{fontSize:"1.1em"}})),d.a.createElement("div",null,d.a.createElement(s.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"tbl sticky"},d.a.createElement(s.a.Header,null,d.a.createElement(s.a.Row,{textAlign:"center"},d.a.createElement(s.a.HeaderCell,null,"Sl.No."),d.a.createElement(s.a.HeaderCell,null,"College Code"),d.a.createElement(s.a.HeaderCell,null,"College Name"),d.a.createElement(s.a.HeaderCell,null,"Town"),d.a.createElement(s.a.HeaderCell,null,"Principal Name"),d.a.createElement(s.a.HeaderCell,null,"Mobile"),d.a.createElement(s.a.HeaderCell,null,"Alt. Contact"),d.a.createElement(s.a.HeaderCell,null,"Email Id"))),d.a.createElement(s.a.Body,null,e.map(function(e,l){return d.a.createElement(s.a.Row,{key:l,style:{overflow:"hidden"}},d.a.createElement(s.a.Cell,{textAlign:"center"},l+1),d.a.createElement(s.a.Cell,null,e.fcollcode),d.a.createElement(s.a.Cell,null,e.fcollname),d.a.createElement(s.a.Cell,null,e.town),d.a.createElement(s.a.Cell,null,e.fprincipalname),d.a.createElement(s.a.Cell,null,e.fmobile),d.a.createElement(s.a.Cell,null,e.faltmobile),d.a.createElement(s.a.Cell,null,e.femail))})))))},a.renderTaggedTable=function(){var e=a.state.colgdet;return d.a.createElement("div",{className:"mt-3"},d.a.createElement("hr",null),d.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},d.a.createElement(u.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:a.searchTable,value:a.state.searchVal,style:{fontSize:"1.1em"}})),d.a.createElement("div",null,d.a.createElement(s.a,{celled:!0,padded:!0,selectable:!0,structured:!0,size:"small",color:"olive"},d.a.createElement(s.a.Header,null,d.a.createElement(s.a.Row,{textAlign:"center"},d.a.createElement(s.a.HeaderCell,{rowSpan:"2"},"Sl.No."),d.a.createElement(s.a.HeaderCell,{colSpan:"3"},"Center"),d.a.createElement(s.a.HeaderCell,{colSpan:"3"},"Tagged Colleges")),d.a.createElement(s.a.Row,{textAlign:"center"},d.a.createElement(s.a.HeaderCell,null,"Code"),d.a.createElement(s.a.HeaderCell,null,"Name"),d.a.createElement(s.a.HeaderCell,null,"Contact"),d.a.createElement(s.a.HeaderCell,null,"Code"),d.a.createElement(s.a.HeaderCell,null,"Name"),d.a.createElement(s.a.HeaderCell,null,"Contact"))),d.a.createElement(s.a.Body,null,e.map(function(e,l){return d.a.createElement(s.a.Row,{key:l,style:{overflow:"hidden"}},d.a.createElement(s.a.Cell,{textAlign:"center"},l+1),d.a.createElement(s.a.Cell,null,e.cnt_code),d.a.createElement(s.a.Cell,null,e.center_name),d.a.createElement(s.a.Cell,null,e.cnt_contact),d.a.createElement(s.a.Cell,null,e.tagged_code),d.a.createElement(s.a.Cell,null,e.tagged_colg_name),d.a.createElement(s.a.Cell,null,e.tagged_contact))})))))},a}return Object(o.a)(l,e),Object(n.a)(l,[{key:"componentDidMount",value:function(){this.setState({colgdet:this.props.reportdet})}},{key:"componentDidUpdate",value:function(e){this.props.reportdet!==e.reportdet&&this.setState({colgdet:this.props.reportdet})}},{key:"render",value:function(){return null==this.props.reportdet?null:null!==this.props.reportdet&&"Center List With Tagged Colleges"==this.props.rtype?this.renderTaggedTable():this.renderTable()}}]),l}(m.Component));l.default=i}}]);
//# sourceMappingURL=200.4fb6ec0e.chunk.js.map
|