Parcourir la source

refactor(exam): modify setapr parameter format to wrap outer layer with P0

sw il y a 3 semaines
Parent
commit
a567057346
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/states/exam/aprSlice.ts

+ 2 - 1
src/states/exam/aprSlice.ts

@@ -165,6 +165,7 @@ const aprSlice = createSlice({
         const selectedBodyPosition = action.payload;
         if (selectedBodyPosition) {
           const reqParam = JSON.stringify({
+            P0:{
             FOCUS: "0",
             TECHMODE: "0",
             AECFIELD: "101",
@@ -181,7 +182,7 @@ const aprSlice = createSlice({
             FILTER: "null",
             TUBELOAD: "0.0",
             WORKSTATION: selectedBodyPosition.work_station_id
-          });
+          }});
           SetAPR(reqParam)
             .then(() => {
               console.log('SetAPR method called successfully');