Explorar o código

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

Kevin %!s(int64=2) %!d(string=hai) anos
pai
achega
b5608a6065
Modificáronse 1 ficheiros con 1 adicións e 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 = () => {