From 54ad832fd2e4b878b251cd54fcd68070252b5dec Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Sat, 10 May 2025 18:46:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=81=A5=E5=BA=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=EF=BC=8C=E5=88=86=E9=A1=B5=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/health/HealthDiseases/index.vue | 22 ++++++++++++++++- src/views/health/activity/index.vue | 22 ++++++++++++++++- src/views/health/doctorRecord/index.vue | 23 +++++++++++++++++- src/views/health/healthRecord/index.vue | 22 ++++++++++++++++- src/views/health/healthTags/index.vue | 24 +++++++++++++++++-- src/views/health/heightWeightRecord/index.vue | 22 ++++++++++++++++- src/views/health/marRecord/index.vue | 22 ++++++++++++++++- src/views/health/medicineBasic/index.vue | 22 ++++++++++++++++- src/views/health/medicineStock/index.vue | 22 ++++++++++++++++- src/views/health/medicineStockIn/index.vue | 22 ++++++++++++++++- src/views/health/milkPowderRecord/index.vue | 24 +++++++++++++++++-- src/views/health/person/index.vue | 22 ++++++++++++++++- src/views/health/processRecord/index.vue | 22 ++++++++++++++++- src/views/health/temperatureRecord/index.vue | 22 ++++++++++++++++- 14 files changed, 297 insertions(+), 16 deletions(-) diff --git a/src/views/health/HealthDiseases/index.vue b/src/views/health/HealthDiseases/index.vue index e9fe545..659b56a 100644 --- a/src/views/health/HealthDiseases/index.vue +++ b/src/views/health/HealthDiseases/index.vue @@ -33,6 +33,7 @@
+ - +
@@ -213,6 +221,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/activity/index.vue b/src/views/health/activity/index.vue index eae01c5..79b18a9 100644 --- a/src/views/health/activity/index.vue +++ b/src/views/health/activity/index.vue @@ -32,6 +32,7 @@
+ - +
@@ -244,6 +252,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/doctorRecord/index.vue b/src/views/health/doctorRecord/index.vue index 71c9130..c709db0 100644 --- a/src/views/health/doctorRecord/index.vue +++ b/src/views/health/doctorRecord/index.vue @@ -48,6 +48,7 @@
+ @@ -72,7 +73,14 @@ - +
@@ -214,6 +222,7 @@
+ - +
@@ -469,6 +477,18 @@ const handleCurrentChange = (val) => { queryParams.value.pageNum = val getList() } + +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} // 分页 const handleTempCurrentChange = (val) => { queryTemperatureRecordParams.value.pageNum = val diff --git a/src/views/health/healthTags/index.vue b/src/views/health/healthTags/index.vue index cf52ff5..ec7224e 100644 --- a/src/views/health/healthTags/index.vue +++ b/src/views/health/healthTags/index.vue @@ -29,8 +29,9 @@
- + + @@ -44,7 +45,14 @@ - +
@@ -177,6 +185,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/heightWeightRecord/index.vue b/src/views/health/heightWeightRecord/index.vue index 18f4300..4c126ba 100644 --- a/src/views/health/heightWeightRecord/index.vue +++ b/src/views/health/heightWeightRecord/index.vue @@ -29,6 +29,7 @@
+ @@ -44,7 +45,14 @@ - +
@@ -218,6 +226,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/marRecord/index.vue b/src/views/health/marRecord/index.vue index 4fa8e29..26eae32 100644 --- a/src/views/health/marRecord/index.vue +++ b/src/views/health/marRecord/index.vue @@ -54,6 +54,7 @@
+ @@ -89,7 +90,14 @@ - +
@@ -377,6 +385,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/medicineBasic/index.vue b/src/views/health/medicineBasic/index.vue index 6c613fc..82c2ca3 100644 --- a/src/views/health/medicineBasic/index.vue +++ b/src/views/health/medicineBasic/index.vue @@ -53,6 +53,7 @@
+ @@ -89,7 +90,14 @@ - +
@@ -362,6 +370,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/medicineStock/index.vue b/src/views/health/medicineStock/index.vue index 038a050..f1a8536 100644 --- a/src/views/health/medicineStock/index.vue +++ b/src/views/health/medicineStock/index.vue @@ -20,6 +20,7 @@
+ @@ -29,7 +30,14 @@ - +
@@ -113,6 +121,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/medicineStockIn/index.vue b/src/views/health/medicineStockIn/index.vue index 136c292..1b0fa4b 100644 --- a/src/views/health/medicineStockIn/index.vue +++ b/src/views/health/medicineStockIn/index.vue @@ -34,6 +34,7 @@
+ @@ -78,7 +79,14 @@ - +
@@ -341,6 +349,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/milkPowderRecord/index.vue b/src/views/health/milkPowderRecord/index.vue index 8957c43..16b1f8e 100644 --- a/src/views/health/milkPowderRecord/index.vue +++ b/src/views/health/milkPowderRecord/index.vue @@ -34,8 +34,9 @@
- + + @@ -49,7 +50,14 @@ - +
@@ -219,6 +227,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/person/index.vue b/src/views/health/person/index.vue index 568493b..d4aaac4 100644 --- a/src/views/health/person/index.vue +++ b/src/views/health/person/index.vue @@ -32,6 +32,7 @@
+ @@ -63,7 +64,14 @@ - +
@@ -232,6 +240,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/processRecord/index.vue b/src/views/health/processRecord/index.vue index 2e21778..ff8dada 100644 --- a/src/views/health/processRecord/index.vue +++ b/src/views/health/processRecord/index.vue @@ -34,6 +34,7 @@
+ @@ -48,7 +49,14 @@ - +
@@ -268,6 +276,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/health/temperatureRecord/index.vue b/src/views/health/temperatureRecord/index.vue index c9c71f3..17f1963 100644 --- a/src/views/health/temperatureRecord/index.vue +++ b/src/views/health/temperatureRecord/index.vue @@ -34,6 +34,7 @@
+ @@ -56,7 +57,14 @@ - +
@@ -283,6 +291,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id)