lizi преди 2 години
родител
ревизия
936add9c6d
променени са 1 файла, в които са добавени 1 реда и са изтрити 4 реда
  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 = () => {