From 89258f2e4a35021f84d13e90eb4269b4e5485d64 Mon Sep 17 00:00:00 2001 From: Cherif Date: Sun, 16 Nov 2025 16:33:20 +0100 Subject: [PATCH] 16/11/25 - 16h30 --- .../Module_Session_Notes_Classement.js | 23 +++++++++++++------ src/components/Notes_Evaluation.js | 10 ++++---- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/components/Module_Session_Notes_Classement.js b/src/components/Module_Session_Notes_Classement.js index 839329a..4a90744 100644 --- a/src/components/Module_Session_Notes_Classement.js +++ b/src/components/Module_Session_Notes_Classement.js @@ -213,7 +213,16 @@ const Module_Session_Notes_Classement = (props) => { { field: 'nom', headerName: 'Nom', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , }, { field: 'prenom', headerName: 'Prenom', minwidth: 200, flex: 1, hide: false, editable: false, renderCell: (params) => , }, - { field: 'rang', headerName: 'Rang', minwidth: 100, flex: 1, hide: false, editable: false, renderCell: (params) => , }, + { + field: 'rang', headerName: 'Rang', minwidth: 100, flex: 1, hide: false, editable: false, renderCell: (params) => , + valueFormatter: (params) => { + if (params.value) + return parseInt(String(params.rang)) + else + return -1 + + }, + }, { field: 'note_finale', headerName: 'Note finale', minwidth: 100, flex: 1, hide: false, editable: false, renderCell: (params) => , @@ -1923,7 +1932,7 @@ const Module_Session_Notes_Classement = (props) => { function getExcelData(apiRef) { // Select rows and columns const filteredSortedRowIds = gridFilteredSortedRowIdsSelector(apiRef); - const visibleColumnsField = gridVisibleColumnFieldsSelector(apiRef).filter((data) => (data) !== "__check__" ); + const visibleColumnsField = gridVisibleColumnFieldsSelector(apiRef).filter((data) => (data) !== "__check__"); // Format the data. Here we only keep the value const data = filteredSortedRowIds.map((id) => { @@ -1948,7 +1957,7 @@ const Module_Session_Notes_Classement = (props) => { function handleExport(apiRef, data_colums) { const data = getExcelData(apiRef); - const visibleColumnsField = gridVisibleColumnFieldsSelector(apiRef).filter((data) => (data) !== "__check__" ); + const visibleColumnsField = gridVisibleColumnFieldsSelector(apiRef).filter((data) => (data) !== "__check__"); const local_config = { @@ -2183,12 +2192,12 @@ const Module_Session_Notes_Classement = (props) => { //console.log(rowss[myid]['external_code']); } - // console.log(" ### tab_inscrit_ids = ", tab_inscrit_ids) + // console.log(" ### tab_inscrit_ids = ", tab_inscrit_ids) - var url = process.env.REACT_APP_API_URL + "myclass/api/Prepare_and_Send_Inscrit_Bulletin_Note_By_PDF/" + stored_cookie + "/" + tab_inscrit_ids ; + var url = process.env.REACT_APP_API_URL + "myclass/api/Prepare_and_Send_Inscrit_Bulletin_Note_By_PDF/" + stored_cookie + "/" + tab_inscrit_ids; console.log(" ## url = ", url); - + setLoading(true); axios.get(url, { responseType: 'blob', },) .then((res) => { @@ -2673,7 +2682,7 @@ const Module_Session_Notes_Classement = (props) => {
-
+
diff --git a/src/components/Notes_Evaluation.js b/src/components/Notes_Evaluation.js index f81d855..f6c39e5 100644 --- a/src/components/Notes_Evaluation.js +++ b/src/components/Notes_Evaluation.js @@ -1090,7 +1090,7 @@ const Notes_Evaluation = (props) => { var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Participant_To_Evaluation/"; - + setNew_Getall_Evaluation_Participant_List_result([]); axios.post(myurl, form).then(res => { @@ -1155,10 +1155,12 @@ const Notes_Evaluation = (props) => { "convocation_send_date": "", "convocation_send_type": "", }; - // new_data2.push(node); + // new_data2.push(node); if (new_data2.length > 0) setNew_Getall_Evaluation_Participant_List_result(new_data2); + else + setNew_Getall_Evaluation_Participant_List_result([]); } else { @@ -6051,7 +6053,7 @@ const Notes_Evaluation = (props) => { if (value && value.value) { if (String(value.value) === "delete_inscr" || String(value.value) === "send_convocation" || String(value.value) === "publish_note" - || String(value.value) === "un_publish_note") { + || String(value.value) === "un_publish_note") { setactionmass_eval_inscr_val(value.value); } else { @@ -6105,7 +6107,7 @@ const Notes_Evaluation = (props) => { Confirmer la la publication des notes sur l'ENT en masse pour {selectionModel_evalutions_participant.length} lignes. } - {String(actionmass_eval_inscr_val) === "un_publish_note" && + {String(actionmass_eval_inscr_val) === "un_publish_note" && Confirmer la la DE-publication des notes sur l'ENT en masse pour {selectionModel_evalutions_participant.length} lignes. }