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.139.235.100
{"version":3,"sources":["pages/admission/intake-report/intake_report.js"],"names":["IntakeReport","state","colgdet","searchVal","searchTable","e","data","string","value","searchPrbatch","_this","props","reportdet","filter","o","Object","keys","some","k","toLowerCase","includes","setState","renderTable","report","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","style","marginBottom","backgroundColor","semantic_ui_react__WEBPACK_IMPORTED_MODULE_6__","icon","fluid","placeholder","onChange","fontSize","semantic_ui_react__WEBPACK_IMPORTED_MODULE_7__","celled","padded","selectable","size","color","Header","Row","textAlign","HeaderCell","Body","map","el","i","key","overflow","Cell","fcollcode","fcollname","town","fprincipalname","fmobile","faltmobile","femail","renderTaggedTable","structured","rowSpan","colSpan","cnt_code","center_name","cnt_contact","tagged_code","tagged_colg_name","tagged_contact","this","prevProps","console","log","rtype","Component"],"mappings":"4MAKMA,4NACJC,MAAQ,CAAEC,QAAS,GAAIC,UAAW,MAYlCC,YAAc,SAACC,EAAGC,GAChB,IAAMC,EAASD,EAAKE,MACdC,EAAgBC,EAAKC,MAAMC,UAAUC,OAAO,SAAAC,GAAC,OACjDC,OAAOC,KAAKF,GAAGG,KAAK,SAAAC,GAAC,OACnBJ,EAAEI,GAAGC,cAAcC,SAASb,EAAOY,mBAGvCT,EAAKW,SAAS,CAAEnB,QAASO,EAAeN,UAAWG,EAAKE,WAG1Dc,YAAc,WACZ,IAAMC,EAASb,EAAKT,MAAMC,QAC1B,OACEsB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,QACbH,EAAAC,EAAAC,cAAA,WACAF,EAAAC,EAAAC,cAAA,OACEE,MAAO,CACLC,aAAc,MACdC,gBAAiB,SAEnBH,UAAU,SAEVH,EAAAC,EAAAC,cAACK,EAAA,EAAD,CACEC,KAAK,SACLC,OAAK,EACLC,YAAY,YACZC,SAAUzB,EAAKN,YACfI,MAAOE,EA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tB,EAAAC,EAAAC,cAACW,EAAA,EAAMS,WAAP,aACAtB,EAAAC,EAAAC,cAACW,EAAA,EAAMS,WAAP,kBAGJtB,EAAAC,EAAAC,cAACW,EAAA,EAAMU,KAAP,KACGxB,EAAOyB,IAAI,SAACC,EAAIC,GACf,OACE1B,EAAAC,EAAAC,cAACW,EAAA,EAAMO,IAAP,CAAWO,IAAKD,EAAGtB,MAAO,CAAEwB,SAAU,WACpC5B,EAAAC,EAAAC,cAACW,EAAA,EAAMgB,KAAP,CAAYR,UAAU,UAAUK,EAAI,GACpC1B,EAAAC,EAAAC,cAACW,EAAA,EAAMgB,KAAP,KAAaJ,EAAGgB,UAChBzC,EAAAC,EAAAC,cAACW,EAAA,EAAMgB,KAAP,KAAaJ,EAAGiB,aAChB1C,EAAAC,EAAAC,cAACW,EAAA,EAAMgB,KAAP,KAAaJ,EAAGkB,aAChB3C,EAAAC,EAAAC,cAACW,EAAA,EAAMgB,KAAP,KAAaJ,EAAGmB,aAChB5C,EAAAC,EAAAC,cAACW,EAAA,EAAMgB,KAAP,KAAaJ,EAAGoB,kBAChB7C,EAAAC,EAAAC,cAACW,EAAA,EAAMgB,KAAP,KAAaJ,EAAGqB,2GApIhCC,KAAKlD,SAAS,CAAEnB,QAASqE,KAAK5D,MAAMC,uDAGnB4D,GACbD,KAAK5D,MAAMC,YAAc4D,EAAU5D,WACrC2D,KAAKlD,SAAS,CAAEnB,QAASqE,KAAK5D,MAAMC,6CA2ItC,OADA6D,QAAQC,IAAIH,KAAK5D,MAAMC,UAAW2D,KAAK5D,MAAMC,UAAW2D,KAAK5D,MAAMgE,OACvC,MAAxBJ,KAAK5D,MAAMC,UAA0B,KAEd,OAAzB2D,KAAK5D,MAAMC,WACS,oCAApB2D,KAAK5D,MAAMgE,MAEJJ,KAAKV,oBAELU,KAAKjD,qBA3JSsD,cAgKZ5E","file":"static/js/120.b286f32e.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Table, Input } from \"semantic-ui-react\";\nimport \"react-table/react-table.css\";\nimport \"../../../index.css\";\n\nclass IntakeReport extends Component {\n state = { colgdet: [], searchVal: \"\" };\n\n componentDidMount() {\n this.setState({ colgdet: this.props.reportdet });\n }\n\n componentDidUpdate(prevProps) {\n if (this.props.reportdet !== prevProps.reportdet) {\n this.setState({ colgdet: this.props.reportdet });\n }\n }\n\n searchTable = (e, data) => {\n const string = data.value;\n const searchPrbatch = this.props.reportdet.filter(o =>\n Object.keys(o).some(k =>\n o[k].toLowerCase().includes(string.toLowerCase())\n )\n );\n this.setState({ colgdet: searchPrbatch, searchVal: data.value });\n };\n\n renderTable = () => {\n const report = this.state.colgdet;\n return (\n <div className=\"mt-3\">\n <hr />\n <div\n style={{\n marginBottom: \"1em\",\n backgroundColor: \"white\"\n }}\n className=\"stick\"\n >\n <Input\n icon=\"search\"\n fluid\n placeholder=\"Search...\"\n onChange={this.searchTable}\n value={this.state.searchVal}\n style={{ fontSize: \"1.1em\" }}\n />\n </div>\n <div>\n <Table\n celled\n padded\n selectable\n size=\"small\"\n color=\"olive\"\n className=\"tbl sticky\"\n >\n <Table.Header>\n <Table.Row textAlign=\"center\">\n <Table.HeaderCell>Sl.No.</Table.HeaderCell>\n <Table.HeaderCell>College Code</Table.HeaderCell>\n <Table.HeaderCell>College Name</Table.HeaderCell>\n <Table.HeaderCell>Town</Table.HeaderCell>\n <Table.HeaderCell>Principal Name</Table.HeaderCell>\n <Table.HeaderCell>Mobile</Table.HeaderCell>\n <Table.HeaderCell>Alt. Contact</Table.HeaderCell>\n <Table.HeaderCell>Email Id</Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {report.map((el, i) => {\n return (\n <Table.Row key={i} style={{ overflow: \"hidden\" }}>\n <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\n <Table.Cell>{el.fcollcode}</Table.Cell>\n <Table.Cell>{el.fcollname}</Table.Cell>\n <Table.Cell>{el.town}</Table.Cell>\n <Table.Cell>{el.fprincipalname}</Table.Cell>\n <Table.Cell>{el.fmobile}</Table.Cell>\n <Table.Cell>{el.faltmobile}</Table.Cell>\n <Table.Cell>{el.femail}</Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n </div>\n </div>\n );\n };\n\n renderTaggedTable = () => {\n const report = this.state.colgdet;\n\n return (\n <div className=\"mt-3\">\n <hr />\n <div\n style={{\n marginBottom: \"1em\",\n backgroundColor: \"white\"\n }}\n className=\"stick\"\n >\n <Input\n icon=\"search\"\n fluid\n placeholder=\"Search...\"\n onChange={this.searchTable}\n value={this.state.searchVal}\n style={{ fontSize: \"1.1em\" }}\n />\n </div>\n <div>\n <Table celled padded selectable structured size=\"small\" color=\"olive\">\n <Table.Header>\n <Table.Row textAlign=\"center\">\n <Table.HeaderCell rowSpan=\"2\">Sl.No.</Table.HeaderCell>\n <Table.HeaderCell colSpan=\"3\">Center</Table.HeaderCell>\n <Table.HeaderCell colSpan=\"3\">Tagged Colleges</Table.HeaderCell>\n </Table.Row>\n <Table.Row textAlign=\"center\">\n <Table.HeaderCell>Code</Table.HeaderCell>\n <Table.HeaderCell>Name</Table.HeaderCell>\n <Table.HeaderCell>Contact</Table.HeaderCell>\n <Table.HeaderCell>Code</Table.HeaderCell>\n <Table.HeaderCell>Name</Table.HeaderCell>\n <Table.HeaderCell>Contact</Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {report.map((el, i) => {\n return (\n <Table.Row key={i} style={{ overflow: \"hidden\" }}>\n <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\n <Table.Cell>{el.cnt_code}</Table.Cell>\n <Table.Cell>{el.center_name}</Table.Cell>\n <Table.Cell>{el.cnt_contact}</Table.Cell>\n <Table.Cell>{el.tagged_code}</Table.Cell>\n <Table.Cell>{el.tagged_colg_name}</Table.Cell>\n <Table.Cell>{el.tagged_contact}</Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n </div>\n </div>\n );\n };\n render() {\n console.log(this.props.reportdet, this.props.reportdet, this.props.rtype);\n if (this.props.reportdet == null) return null;\n else if (\n this.props.reportdet !== null &&\n this.props.rtype == \"Center List With Tagged Colleges\"\n ) {\n return this.renderTaggedTable();\n } else {\n return this.renderTable();\n }\n }\n}\n\nexport default IntakeReport;\n"],"sourceRoot":""}
|