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 : 3.145.199.240


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/127.87f1a811.chunk.js.map

{"version":3,"sources":["pages/approvestudname/index.js","actions/approvestudname/index.js"],"names":["ApproveStudentName","state","correctionType","collRangeFrom","collRangeTo","regrangefrom","regrangeto","status","frmsubmit","loadsub","regfromchange","e","data","_this","setState","value","regtochange","dropDownChange","fromChange","console","log","toChange","loadsubChnage","statusDropDown","_callee","regenerator_default","a","wrap","_context","prev","next","stop","submitHandler","_callee2","error","_error","_error2","_error3","_error4","_error5","_context2","header","content","props","showError","abrupt","submitApproveStudName","saveApprove","_callee3","regno","collname","oldname","newname","collcode","_context3","saveNameStatus","user","fmobileno","this","_this2","_this$state","statusOption","key","text","react_default","createElement","Card","fluid","Content","Description","Form","Group","Field","Dropdown","style","width","marginBottom","search","selection","options","allowAdditions","placeholder","onChange","display","Input","name","marginLeft","className","marginTop","alignItems","Button","basic","color","onClick","Table","celled","padded","Header","Row","HeaderCell","singleLine","Body","changeStudInfo","map","el","i","fdoc","Cell","textAlign","fapp","fcollname","ftown","fcollcode","fregno","foldname","fnewname","href","target","fstatus","positive","React","Component","connect","deggrp","getStudNameChange","para","_ref","Object","asyncToGenerator","mark","dispatch","getState","response","type","univadmin","get","params","univcode","fcuruniv","colfrom","colto","regfrom","regto","option","sent","error_code","msg","payload","_x","_x2","apply","arguments","updmobile","_ref2","post","univ","funivcode","_x3","_x4"],"mappings":"mRAkBMA,6MACJC,MAAQ,CACNC,eAAgB,GAChBC,cAAe,IACfC,YAAa,IACbC,aAAc,IACdC,WAAY,IACZC,OAAQ,GACRC,WAAW,EACXC,QAAS,MAMXC,cAAgB,SAACC,EAAGC,GAClBC,EAAKC,SAAS,CACZT,aAAcO,EAAKG,WAIvBL,cAAgB,SAACC,EAAGC,GAClBC,EAAKC,SA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AA4H,EAAAC,GAAA,OAAAL,EAAAH,MAAA5F,KAAA6F,YAAA,KD0Ta7B,CAIZ1H","file":"static/js/127.87f1a811.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { showError } from \"../../actions\";\nimport {\n  submitApproveStudName,\n  saveNameStatus,\n} from \"../../actions/approvestudname\";\n\nimport {\n  Card,\n  Button,\n  Form,\n  Table,\n  Dropdown,\n  Divider,\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\n\nclass ApproveStudentName extends React.Component {\n  state = {\n    correctionType: \"\",\n    collRangeFrom: \"0\",\n    collRangeTo: \"z\",\n    regrangefrom: \"0\",\n    regrangeto: \"z\",\n    status: \"\",\n    frmsubmit: false,\n    loadsub: \"\",\n  };\n  componentDidMount() {\n    this.setState({ frmsubmit: false });\n  }\n\n  regfromchange = (e, data) => {\n    this.setState({\n      regrangefrom: data.value,\n    });\n  };\n\n  regfromchange = (e, data) => {\n    this.setState({\n      regrangefrom: data.value,\n    });\n  };\n\n  regtochange = (e, data) => {\n    this.setState({\n      regrangeto: data.value,\n    });\n  };\n\n  dropDownChange = (e, data) => {\n    this.setState({\n      correctionType: data.value,\n    });\n  };\n\n  fromChange = (e, data) => {\n    console.log(data);\n    this.setState({\n      collRangeFrom: data.value,\n    });\n  };\n\n  toChange = (e, data) => {\n    // console.log(data);\n    this.setState({\n      collRangeTo: data.value,\n    });\n  };\n\n  loadsubChnage = (e, data) => {\n    this.setState({\n      loadsub: data.value,\n    });\n  };\n\n  statusDropDown = async (e, data) => {\n    await this.setState({ status: data.value });\n  };\n\n  submitHandler = async () => {\n    if (this.state.correctionType === \"\") {\n      const error = { header: \"Error\", content: \"Select correction type\" };\n      this.props.showError(error);\n      return;\n    } else if (this.state.collRangeFrom === \"\") {\n      const error = { header: \"Error\", content: \"Select college range(from)\" };\n      this.props.showError(error);\n      return;\n    } else if (this.state.collRangeTo === \"\") {\n      const error = { header: \"Error\", content: \"Select college range(to)\" };\n      this.props.showError(error);\n      return;\n    } else if (this.state.regrangefrom === \"\") {\n      const error = { header: \"Error\", content: \"Select reg. no. range(from)\" };\n      this.props.showError(error);\n      return;\n    } else if (this.state.regrangeto === \"\") {\n      const error = { header: \"Error\", content: \"Select reg. no. range(to)\" };\n      this.props.showError(error);\n      return;\n    } else if (this.state.loadsub == \"\") {\n      const error = { header: \"Error\", content: \"Select Cannot be empty\" };\n      this.props.showError(error);\n      return;\n    } else {\n      await this.props.submitApproveStudName(this.state);\n    }\n    this.setState({\n      frmsubmit: true,\n    });\n  };\n\n  saveApprove = async (regno, collname, oldname, newname, status, collcode) => {\n    await this.props.saveNameStatus(\n      regno,\n      collname,\n      oldname,\n      newname,\n      this.state.status,\n      collcode,\n      this.props.user.fmobileno\n    );\n  };\n\n  render() {\n    const {\n      correctionType,\n      collRangeFrom,\n      collRangeTo,\n      status,\n      regrangefrom,\n      regrangeto,\n    } = this.state;\n    const option = [\n      {\n        key: 1,\n        value: \"Name Correction\",\n        text: \"Name Correction\",\n      },\n    ];\n\n    const statusOption = [\n      {\n        key: 1,\n        value: \"approved\",\n        text: \"Approved\",\n      },\n      {\n        key: 2,\n        value: \"pending\",\n        text: \"Pending\",\n      },\n      {\n        key: 3,\n        value: \"rejected\",\n        text: \"Rejected\",\n      },\n    ];\n\n    const status_table_load = [\n      {\n        key: 1,\n        value: \"all\",\n        text: \"All\",\n      },\n      {\n        key: 2,\n        value: \"approved\",\n        text: \"Approved\",\n      },\n      {\n        key: 3,\n        value: \"pending\",\n        text: \"Pending\",\n      },\n      {\n        key: 4,\n        value: \"rejected\",\n        text: \"Rejected\",\n      },\n    ];\n\n    return (\n      <div>\n        <Card fluid>\n          <Card.Content>\n            <Card.Description>\n              <Form.Group>\n                <Form.Field>\n                  <label>Correction Type</label>\n                  <Dropdown\n                    style={{ width: \"29.5%\", marginBottom: \"10px\" }}\n                    fluid\n                    search\n                    selection\n                    value={this.state.correctionType}\n                    options={option}\n                    allowAdditions\n                    placeholder=\"Type\"\n                    onChange={this.dropDownChange}\n                  />\n                </Form.Field>\n                <label>Register No. Range</label>\n                <Form.Group style={{ display: \"flex\" }}>\n                  <Form.Input\n                    placeholder=\"Register No. {From}\"\n                    value={regrangefrom}\n                    width={4}\n                    name=\"fregfrom\"\n                    onChange={this.regfromchange}\n                  />\n                  <Form.Input\n                    style={{ marginLeft: \"20px\" }}\n                    placeholder=\"Register No. {To}\"\n                    value={regrangeto}\n                    width={4}\n                    name=\"fregto\"\n                    onChange={this.regtochange}\n                  />\n                </Form.Group>\n              </Form.Group>\n              <label>College Range</label>\n              <Form.Group style={{ display: \"flex\" }}>\n                <Form.Input\n                  placeholder=\"College Range {From}\"\n                  value={this.state.collRangeFrom}\n                  width={4}\n                  name=\"ffrom\"\n                  onChange={this.fromChange}\n                />\n                <Form.Input\n                  style={{ marginLeft: \"20px\" }}\n                  placeholder=\"College Range {To}\"\n                  value={this.state.collRangeTo}\n                  width={4}\n                  name=\"fto\"\n                  onChange={this.toChange}\n                />\n              </Form.Group>\n              <Form.Field>\n                <label>Select Type</label>\n                <Dropdown\n                  style={{ width: \"29.5%\", marginBottom: \"10px\" }}\n                  fluid\n                  search\n                  selection\n                  value={this.state.loadsub}\n                  options={status_table_load}\n                  allowAdditions\n                  placeholder=\"Type\"\n                  onChange={this.loadsubChnage}\n                />\n              </Form.Field>\n              <div\n                className=\"btn\"\n                style={{\n                  width: \"20%\",\n                  marginTop: \"10px\",\n\n                  alignItems: \"center\",\n                }}\n              >\n                <Button\n                  basic\n                  color=\"blue\"\n                  content=\"Submit\"\n                  onClick={this.submitHandler}\n                />\n              </div>\n\n              {this.state.frmsubmit ? (\n                <Table celled padded>\n                  <Table.Header>\n                    <Table.Row>\n                      <Table.HeaderCell singleLine>App. No.</Table.HeaderCell>\n                      <Table.HeaderCell>College Name</Table.HeaderCell>\n                      <Table.HeaderCell>College Code</Table.HeaderCell>\n                      <Table.HeaderCell>Reg. No.</Table.HeaderCell>\n                      <Table.HeaderCell>Old Name</Table.HeaderCell>\n                      <Table.HeaderCell>New Name</Table.HeaderCell>\n                      <Table.HeaderCell>Attachment</Table.HeaderCell>\n                      <Table.HeaderCell>Status</Table.HeaderCell>\n                      <Table.HeaderCell>Action</Table.HeaderCell>\n                    </Table.Row>\n                  </Table.Header>\n                  <Table.Body>\n                    {this.props.changeStudInfo.map((el, i) => {\n                      const doc_path =\n                        \"https://admission-certificates.s3.ap-south-1.amazonaws.com/\" +\n                        el.fdoc;\n\n                      return (\n                        <Table.Row key={i}>\n                          <Table.Cell textAlign=\"center\">{el.fapp}</Table.Cell>\n                          <Table.Cell>\n                            {el.fcollname + \" - \" + el.ftown}\n                          </Table.Cell>\n                          <Table.Cell textAlign=\"center\">\n                            {el.fcollcode}\n                          </Table.Cell>\n                          <Table.Cell textAlign=\"center\">\n                            {el.fregno}\n                          </Table.Cell>\n                          <Table.Cell>{el.foldname}</Table.Cell>\n                          <Table.Cell>{el.fnewname}</Table.Cell>\n\n                          <Table.Cell textAlign=\"center\">\n                            <a\n                              href={\n                                \"https://admission-certificates.s3.ap-south-1.amazonaws.com/\" +\n                                el.fdoc\n                              }\n                              target=\"_blank\"\n                            >\n                              View\n                            </a>\n                          </Table.Cell>\n                          <Table.Cell textAlign=\"center\">\n                            <Dropdown\n                              fluid\n                              search\n                              selection\n                              value={\n                                this.state.status == \"\"\n                                  ? el.fstatus\n                                  : this.status\n                              }\n                              options={statusOption}\n                              allowAdditions\n                              placeholder=\"Type\"\n                              onChange={this.statusDropDown}\n                            />\n                          </Table.Cell>\n                          <Table.Cell>\n                            <Button\n                              positive\n                              onClick={() =>\n                                this.saveApprove(\n                                  el.fregno,\n                                  el.fcollname,\n                                  el.foldname,\n                                  el.fnewname,\n                                  el.status,\n                                  el.fcollcode\n                                )\n                              }\n                            >\n                              Save\n                            </Button>\n                          </Table.Cell>\n                        </Table.Row>\n                      );\n                    })}\n                  </Table.Body>\n                </Table>\n              ) : (\n                this.state.frmsubmit\n              )}\n            </Card.Description>\n          </Card.Content>\n        </Card>\n      </div>\n    );\n  }\n}\n\n// export default ApproveStudentName;\n\nconst mapStateToProps = (state) => {\n  return {\n    deggrp: state.deggrp,\n    changeStudInfo: state.getStudNameChange,\n    user: state.user,\n  };\n};\n\nexport default connect(mapStateToProps, {\n  submitApproveStudName,\n  showError,\n  saveNameStatus,\n})(ApproveStudentName);\n","// import { toast } from \"react-toastify\";\nimport univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\nimport { toast } from \"react-toastify\";\nimport \"react-toastify/dist/ReactToastify.css\";\n\nexport const submitApproveStudName = (para) => {\n  return async function (dispatch, getState) {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n    dispatch({\n      type: \"DELETE_QPSTATS\",\n    });\n    dispatch({\n      type: \"CLEAR_TEACHER_ID\",\n    });\n\n    const response = await univadmin.get(\"/app.php\", {\n      params: {\n        a: \"approvestudname\",\n        univcode: state.user.fcuruniv,\n        type: para.correctionType,\n        colfrom: para.collRangeFrom,\n        colto: para.collRangeTo,\n        regfrom: para.regrangefrom,\n        regto: para.regrangeto,\n        status: para.status,\n        option: para.loadsub,\n      },\n    });\n    dispatch({\n      type: \"UNSET_LOADER\",\n    });\n\n    if (typeof response.data !== \"object\") {\n      const error = {\n        header: \"Error\",\n        content: \"Something went wrong\",\n      };\n      dispatch(showError(error));\n    } else if (response.data.error_code === -1) {\n      const error = { header: \"Error\", content: response.data.data.msg };\n      dispatch(showError(error));\n    } else {\n      dispatch({\n        type: \"APPROVE_STUD_NAME\",\n        payload: response.data,\n      });\n    }\n  };\n};\n\nexport const saveNameStatus = (\n  regno,\n  collname,\n  oldname,\n  newname,\n  status,\n  collcode,\n  updmobile\n) => {\n  // console.log(regno, collname, oldname, newname, ddstatus.status);\n  return async function (dispatch, getState) {\n    const state = getState();\n\n    const response = await univadmin.post(\n      \"/app.php?a=saveNameStatus&univcode=\" +\n        state.univ.funivcode +\n        \"&regno=\" +\n        regno +\n        \"&collname=\" +\n        collname +\n        \"&oldname=\" +\n        oldname +\n        \"&newname=\" +\n        newname +\n        \"&status=\" +\n        status +\n        \"&collcode=\" +\n        collcode +\n        \"&updmobile=\" +\n        updmobile\n    );\n\n    dispatch({\n      type: \"UNSET_LOADER\",\n    });\n\n    if (typeof response.data !== \"object\") {\n      const error = {\n        header: \"Error\",\n        content: \"Something went wrong\",\n      };\n      dispatch(showError(error));\n    } else if (response.data.error_code === -1) {\n      const error = { header: \"Error\", content: response.data.data.msg };\n      dispatch(showError(error));\n    } else {\n      const error = { header: \"Success\", content: response.data.data.msg };\n      dispatch(showError(error));\n    }\n  };\n};\n"],"sourceRoot":""}