From 0af0c8f14ee4c06b1f5aedd5d53b28e3129fc891 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Thu, 16 May 2024 17:14:55 +0800 Subject: [PATCH] djlist seo --- .../patientRegister/PatientRegisterList.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue index 7dec26c..3215054 100644 --- a/src/components/patientRegister/PatientRegisterList.vue +++ b/src/components/patientRegister/PatientRegisterList.vue @@ -910,17 +910,19 @@ export default { // 刷新最大记录数 this.loadOpts.totalCount = res.data.totalCount let curLoad = res.data.items - let oldCount = 0 + // let oldCount = 0 if (body.skipCount == 0) { //查询 this.tableData = []; - } else { - // 懒加载 ,原数据集不用清空 - oldCount = this.tableData.length } - curLoad.forEach((e, index) => { - this.tableData.push(Object.assign({ index: Number(oldCount) + Number(index), choosed: false }, e)) - }) + this.tableData = this.tableData.concat(curLoad) + // else { + // // 懒加载 ,原数据集不用清空 + // oldCount = this.tableData.length + // } + // curLoad.forEach((e, index) => { + // this.tableData.push(Object.assign({ index: Number(oldCount) + Number(index), choosed: false }, e)) + // }) //如果 有选中 记录,则刷新其对应的组合项目 if (this.dataTransOpts.tableS.patient_register.id) {