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.226.248.17
{"version":3,"file":"static/js/497.b6da0d3e.chunk.js","mappings":"sNAGO,MAAMA,EAAwBC,IAAS,CAC5CC,eAAgBC,IAAA,IAAC,gBACfC,EAAe,aACfC,EAAY,QACZC,EAAO,aACPC,EAAY,MACZC,GACDL,EAAA,OACCM,EAAAA,EAAAA,MAAA,OACEC,MAAO,CACLC,QAAS,GAEXC,UAAYC,GAAMA,EAAEC,kBAAkBC,SAAA,EAEtCC,EAAAA,EAAAA,KAACC,EAAAA,EAAK,CACJC,WAAS,EACTC,YAAW,UAAAC,OAAYnB,GACvBoB,MAAOhB,EACPiB,SAAWT,GACTT,EAAgBS,EAAEU,OAAOF,MAAQ,CAACR,EAAEU,OAAOF,OAAS,IAEtDG,aAAcA,KACZlB,GAAS,EAEXI,MAAO,CACLe,aAAc,EACdC,QAAS,YAGbjB,EAAAA,EAAAA,MAACkB,EAAAA,EAAK,CAAAZ,SAAA,EACJC,EAAAA,EAAAA,KAACY,EAAAA,GAAM,CACLC,KAAK,UACLC,QAASA,IAAMxB,IACfyB,MAAMf,EAAAA,EAAAA,KAACgB,EAAAA,EAAc,IACrBC,KAAK,QACLvB,MAAO,CACLwB,MAAO,IACPnB,SACH,YAGDC,EAAAA,EAAAA,KAACY,EAAAA,GAAM,CACLE,QAASA,KACPvB,IACAD,GAAS,EAEX2B,KAAK,QACLvB,MAAO,CACLwB,MAAO,IACPnB,SACH,eAIC,EAERoB,WAAaC,IACXpB,EAAAA,EAAAA,KAACgB,EAAAA,EAAc,CACbtB,MAAO,CACL2B,MAAOD,EAAW,UAAY,UAIpCE,SAAUA,CAACjB,EAAOkB,IAChBA,EAAOtC,GAAWuC,WAAWC,cAAcC,SAASrB,EAAMoB,iBAGjDE,EAAeA,CAACC,EAAOC,IAClCA,EAAOxB,MAAMmB,WAAWC,cAAcK,QAAQF,EAAMH,gB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A,EAAI,CACHpI,MAAO,CAAEwB,MAAO,IAAK6G,WAAY,QACjCxE,KAAMA,EACNE,MAAOA,EACPuB,MAAOA,EACP3C,QAASa,EAAMb,QAAQtC,UAEvBN,EAAAA,EAAAA,MAACkB,EAAAA,EAAK,CACJjB,MAAO,CACLC,QAAS,MACTuB,MAAO,OACP8G,UAAW,QACXjI,SAAA,CACH,QAECC,EAAAA,EAAAA,KAACiI,EAAAA,EAAY,aAMzB,G","sources":["Components/datatable.js","Actions/Utility/Assign_User_Menu/AssignUserMenus.js","Pages/Utility/Assign_User_Menus/AssignUserMenus.js"],"sourcesContent":["import { Input, Button, Space } from \"antd\";\nimport { SearchOutlined } from \"@ant-design/icons\";\n\nexport const getColumnSearchProps = (dataIndex) => ({\n filterDropdown: ({\n setSelectedKeys,\n selectedKeys,\n confirm,\n clearFilters,\n close,\n }) => (\n <div\n style={{\n padding: 8,\n }}\n onKeyDown={(e) => e.stopPropagation()}\n >\n <Input\n autoFocus\n placeholder={`Search ${dataIndex}`}\n value={selectedKeys}\n onChange={(e) =>\n setSelectedKeys(e.target.value ? [e.target.value] : [])\n }\n onPressEnter={() => {\n confirm();\n }}\n style={{\n marginBottom: 8,\n display: \"block\",\n }}\n />\n <Space>\n <Button\n type=\"primary\"\n onClick={() => confirm()}\n icon={<SearchOutlined />}\n size=\"small\"\n style={{\n width: 90,\n }}\n >\n Search\n </Button>\n <Button\n onClick={() => {\n clearFilters();\n confirm();\n }}\n size=\"small\"\n style={{\n width: 90,\n }}\n >\n Reset\n </Button>\n </Space>\n </div>\n ),\n filterIcon: (filtered) => (\n <SearchOutlined\n style={{\n color: filtered ? \"#CFFF8D\" : \"#fff\",\n }}\n />\n ),\n onFilter: (value, record) =>\n record[dataIndex].toString().toLowerCase().includes(value.toLowerCase()),\n});\n\nexport const filterOption = (input, option) =>\n option.value.toString().toLowerCase().indexOf(input.toLowerCase()) >= 0 ||\n option.label.toString().toLowerCase().indexOf(input.toLowerCase()) >= 0;\n\nexport const sortWithAlphabets = (a, b, index) =>\n a[index].localeCompare(b[index]);\n","import axios from \"axios\";\nimport { base_url } from \"../../../Components/consts/api\";\nimport { Alert } from \"../../../Components/Alert\";\nimport { json } from \"react-router-dom\";\nconst loading = (value) => {\n return {\n type: \"LOADING\",\n load: value,\n };\n};\nexport const getAssignUserMenus = async (\n dispatch,\n funivcode,\n fcollcode,\n fusertype,\n e\n) => {\n dispatch(loading(true));\n try {\n await axios({\n method: \"GET\",\n url:\n base_url +\n \"cAssignUserMenu\" +\n \"&univcode=\" +\n funivcode +\n \"&collcode=\" +\n fcollcode +\n \"&usertype=\" +\n fusertype +\n \"&user=\" +\n e,\n headers: { \"Content-Type\": \"application/json\" },\n }).then((res) => {\n console.log(res, \"res anita\");\n if (res.data.error_code === 0) {\n dispatch({ type: \"USERDATA\", payload: res.data.data.menu });\n dispatch(loading(false));\n } else {\n dispatch({ type: \"CLEAR_USERDATA\", payload: [] });\n dispatch(loading(false));\n }\n });\n } catch (err) {\n dispatch(loading(false));\n Alert(err);\n }\n};\n\nexport const saveDataToDatabase = async (dispatch, formData) => {\n dispatch(loading(true));\n try {\n await axios.post(base_url + \"saveassignuserRight\", formData);\n Alert(\"Successfully Saved\");\n } catch (err) {\n dispatch(loading(false));\n Alert(\"Something Went Wrong\");\n Alert(err);\n }\n};\n\n// export const saveDataToDatabase = async (dispatch, data) => {\n// dispatch(loading(true));\n// try {\n// // Convert the data to JSON\n// const jsonData = {\n// data: data, // assuming 'data' is already an array or object\n// collcode: props.user.fcollcode,\n// univcode: props.user.funivcode,\n// fuser: type, // assuming 'type' is available in the context\n// };\n\n// await axios\n// .post(base_url + \"saveassignuserRight\", jsonData, {\n// headers: {\n// \"Content-Type\": \"application/json\",\n// },\n// })\n// .then((res) => {\n// console.log(res.data, \"hi anitaa\");\n// // handle the response here\n// // if (res.data.error_code === 0) {\n// // Alert(res.data.data.msg);\n// // dispatch(loading(false));\n// // } else {\n// // Alert(res.data.data.msg);\n// // dispatch(loading(false));\n// // return;\n// // }\n// });\n\n// dispatch(loading(false));\n// } catch (err) {\n// dispatch(loading(false));\n// Alert(err);\n// }\n// };\n\nexport const getsubcode = async (dispatch, fcollcode, fusertype, code) => {\n console.log(code, \"copdecodecpde\");\n dispatch(loading(true));\n try {\n await axios({\n method: \"GET\",\n url:\n base_url +\n \"cAssignUserSubMenu\" +\n \"&collcode=\" +\n fcollcode +\n \"&usertype=\" +\n fusertype +\n \"&menucode=\" +\n code,\n headers: { \"Content-Type\": \"application/json\" },\n }).then((res) => {\n if (res.data.error_code === 0) {\n dispatch({ type: \"SUBMENU\", payload: res.data.data });\n dispatch(loading(false));\n } else {\n dispatch({ type: \"CLEAR_SUBMENU\", payload: [] });\n dispatch(loading(false));\n }\n });\n } catch (err) {\n dispatch(loading(false));\n Alert(err);\n }\n};\n","import React, { Children, useEffect, useState } from \"react\";\nimport {\n Card,\n Space,\n Button,\n Checkbox,\n Select,\n Table,\n Col,\n Row,\n Menu,\n Spin,\n} from \"antd\";\nimport {\n getColumnSearchProps,\n sortWithAlphabets,\n filterOption,\n} from \"../../../Components/datatable\";\nimport {\n getAssignUserMenus,\n getsubcode,\n saveDataToDatabase,\n} from \"../../../Actions/Utility/Assign_User_Menu/AssignUserMenus\";\nimport { useDispatch } from \"react-redux\";\nimport { connect } from \"react-redux\";\nimport { DownOutlined } from \"@ant-design/icons\";\n\nfunction AssignUserMenus(props) {\n const [type, setType] = useState(false);\n const [data, setData] = useState([]);\n const [mode, setMode] = useState(\"inline\");\n const [theme, setTheme] = useState(\"light\");\n\n const dispatch = useDispatch();\n const typeOptions = [\n { value: \" \", label: \"---Select---\" },\n { value: \"A\", label: \"Admin\" },\n { value: \"T\", label: \"Teacher\" },\n { value: \"S\", label: \"Super Wiser\" },\n ];\n\n useEffect(() => {\n setData(props.foruserdata);\n }, [props.foruserdata]);\n\n const changeHandler = async (e) => {\n setType(e);\n await getAssignUserMenus(\n dispatch,\n props.user.funivcode,\n props.user.fcollcode,\n props.user.fusertype,\n e\n );\n };\n\n const CheckAllhandler = (e, i) => {\n let arr = [...data];\n arr[i][\"fstatus\"] = e ? \"T\" : \"F\";\n if (arr[i].submenu) {\n const newArr = arr[i].submenu.map((sub) => {\n sub.fstatus = e ? \"T\" : \"F\";\n return sub;\n });\n setData([...newArr]);\n arr[i].submenu.forEach((sub, j) => {\n if (sub.ssubmenu) {\n arr[i].submenu[j].ssubmenu = sub.ssubmenu.map((sub_sub) => ({\n ...sub_sub,\n fstatus: e ? \"T\" : \"F\",\n }));\n }\n });\n }\n\n setData(arr);\n console.log(arr, \"ii\");\n };\n\n const checkAllSubmenu = (e, j, i) => {\n let arr = [...data];\n arr[i].submenu[j][\"fstatus\"] = e ? \"T\" : \"F\";\n\n if (arr[i].submenu[j].ssubmenu) {\n arr[i].submenu[j].ssubmenu = arr[i].submenu[j].ssubmenu.map(\n (sub_sub) => ({\n ...sub_sub,\n fstatus: e ? \"T\" : \"F\",\n })\n );\n }\n\n setData(arr);\n };\n\n const checkAllsubsubmenus = (e, i, j, k) => {\n let arr = [...data];\n arr[i].submenu[j].ssubmenu[k][\"fstatus\"] = e ? \"T\" : \"F\";\n setData(arr);\n };\n\n const items = data.map((el, i) => ({\n key: `el_${i}`,\n label: (\n <Checkbox\n checked={el.fstatus === \"T\"}\n onChange={(e) => CheckAllhandler(e.target.checked, i)}\n >\n {el.title}\n </Checkbox>\n ),\n children:\n el.submenu && el.submenu.length > 0\n ? el.submenu.map((sub, j) => ({\n key: `sub_${i}_${j}`,\n // type: \"group\",\n label: (\n <Checkbox\n checked={sub.fstatus === \"T\"}\n onChange={(e) => checkAllSubmenu(e.target.checked, j, i)}\n >\n {sub.title}\n </Checkbox>\n ),\n children:\n sub.ssubmenu && sub.ssubmenu.length > 0\n ? sub.ssubmenu.map((sub_sub, k) => ({\n key: `sub_sub_${i}_${j}_${k}`,\n // type: \"group\",\n label: (\n <Checkbox\n checked={sub_sub.fstatus === \"T\"}\n onChange={(e) =>\n checkAllsubsubmenus(e.target.checked, i, j, k)\n }\n >\n {sub_sub.title}\n </Checkbox>\n ),\n }))\n : null,\n }))\n : null,\n }));\n\n const saveHandler = async () => {\n let formData = new FormData();\n formData.append(\"data\", JSON.stringify(data));\n formData.append(\"collcode\", props.user.fcollcode);\n formData.append(\"univcode\", props.user.funivcode);\n formData.append(\"fuser\", type);\n await saveDataToDatabase(dispatch, formData);\n };\n\n return (\n <div className=\"container-fluid\">\n <Card\n hoverable\n title=\"Assign User Menus\"\n style={{ width: \"100%\" }}\n extra={\n <Space direction=\"horizontal\">\n <Button className=\"save\" onClick={() => saveHandler()}>\n Save\n </Button>\n <Button className=\"report\">Report</Button>\n <Button className=\"clear\">Clear</Button>\n <Button className=\"exit\">Exit</Button>\n </Space>\n }\n >\n <div style={{ marginBottom: \"20px\" }}>\n <Row gutter={16}>\n <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n <b>\n <label>Select Type</label>\n </b>\n <Select\n showSearch\n placeholder=\"Select\"\n style={{ width: \"100%\" }}\n options={typeOptions}\n loading={props.loading}\n filterOption={filterOption}\n value={type}\n onChange={(e) => changeHandler(e)}\n />\n </Col>\n </Row>\n </div>\n\n <Menu\n style={{ width: 350, marginLeft: \"50px\" }}\n mode={mode}\n theme={theme}\n items={items}\n loading={props.loading}\n >\n <Space\n style={{\n padding: \"2px\",\n width: \"100%\",\n marginTop: \"20px\",\n }}\n >\n menu\n <DownOutlined />\n </Space>\n </Menu>\n </Card>\n </div>\n );\n}\nconst mapStateToProps = (state) => {\n console.log(state.AuthReducer.userData, \"hi\");\n return {\n user: state.AuthReducer.userData,\n foruserdata: state.usermenuReducer.usersData,\n loading: state.degreeReducer.loading,\n };\n};\nexport default connect(mapStateToProps)(AssignUserMenus);\n\n// const items = [\n// {\n// key: \"1\",\n// label: (\n// <label>\n// <Checkbox\n// onChange={(e) => CheckAllhandler(e.target.checked)}\n// ></Checkbox>\n// <span></span> Main Menus\n// </label>\n// ),\n// type: \"group\",\n// children: data.map((el, i) => ({\n// key: `${i}`,\n// label: (\n// <Checkbox\n// checked={el.fstatus == \"T\"}\n// onChange={(e) => onebyonecheckHandle(e.target.checked, i)}\n// >\n// {el.title}\n// </Checkbox>\n// ),\n// children:\n// el.submenu && el.submenu.length > 0\n// ? el.submenu.map((sub, j) => ({\n// key: `${j}`,\n// type: \"group\",\n// label: <Checkbox>{sub.title}</Checkbox>,\n// children:\n// el.sub_submenu && el.sub_submenu > 0\n// ? el.sub_submenu.map((sub_sub, k) => ({\n// key: `${k}`,\n// type: \"group\",\n// label: <Checkbox>{sub_sub.title}</Checkbox>,\n// }))\n// : null,\n// }))\n// : null,\n// })),\n// },\n// ];\n"],"names":["getColumnSearchProps","dataIndex","filterDropdown","_ref","setSelectedKeys","selectedKeys","confirm","clearFilters","close","_jsxs","style","padding","onKeyDown","e","stopPropagation","children","_jsx","Input","autoFocus","placeholder","concat","value","onChange","target","onPressEnter","marginBottom","display","Space","Button","type","onClick","icon","SearchOutlined","size","width","filterIcon","filtered","color","onFilter","record","toString","toLowerCase","includes","filterOption","input","option","indexOf","label","sortWithAlphabets","a","b","index","localeCompare","loading","load","connect","state","console","log","AuthReducer","userData","user","foruserdata","usermenuReducer","usersData","degreeReducer","props","setType","useState","data","setData","mode","setMode","theme","setTheme","dispatch","useDispatch","useEffect","changeHandler","async","funivcode","fcollcode","fusertype","axios","method","url","base_url","headers","then","res","error_code","payload","menu","err","Alert","getAssignUserMenus","items","map","el","i","key","Checkbox","checked","fstatus","CheckAllhandler","arr","submenu","newArr","sub","forEach","j","ssubmenu","sub_sub","title","length","checkAllSubmenu","k","checkAllsubsubmenus","saveHandler","formData","FormData","append","JSON","stringify","post","saveDataToDatabase","className","Card","hoverable","extra","direction","Row","gutter","Col","xs","sm","md","lg","xl","Select","showSearch","options","Menu","marginLeft","marginTop","DownOutlined"],"sourceRoot":""}
|