|
|
|
@ -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) { |
|
|
|
|