src/components/Table/lims-table.vue
@@ -12,6 +12,7 @@ :row-class-name="rowClassName" :row-style="rowStyle" :row-key="rowKey" :index-method="handleIndex" stripe style="width: 100%" tooltip-effect="dark" @@ -357,6 +358,10 @@ pagination({ page, limit }) { this.$emit("pagination", { page: page, limit: limit }); }, handleIndex({ row, index }) { // 计算连续序号 return (this.page.current - 1) * this.page.size + index + 1; }, }, }; </script>