Explorar el Código

merge "bug/1000235" into "main"
bug/1000235

Kevin hace 2 años
padre
commit
b5608a6065
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      src/views/report/components/reference/ReferenceDraw.vue

+ 1 - 4
src/views/report/components/reference/ReferenceDraw.vue

@@ -119,10 +119,7 @@ function onSectionRecordCancel(sectionId: number) {
 
 function serialNumber(index: number) {
   index += 1;
-  if (pagination.page == 1) {
-    return index;
-  }
-  return pagination.page * pagination.size + index;
+  return (pagination.page - 1) * pagination.size + index;
 }
 
 const onClose = () => {