From 40ba4d86ff146426f854dbc3dd0a93269c5a052a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 29 三月 2023 22:17:05 +0800 Subject: [PATCH] 2023-03-29 --- src/tabviews/custom/components/card/double-data-card/index.jsx | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/components/card/double-data-card/index.jsx b/src/tabviews/custom/components/card/double-data-card/index.jsx index 6668fa2..e50b913 100644 --- a/src/tabviews/custom/components/card/double-data-card/index.jsx +++ b/src/tabviews/custom/components/card/double-data-card/index.jsx @@ -204,6 +204,7 @@ _children.forEach((cell, i) => { cell.key = i cell.$$uuid = cell[config.setting.subKey] || '' + cell.$$parentId = item[config.setting.primaryKey] || '' cell.$$BID = item[config.setting.primaryKey] || '' cell.$$BData = {...item} cell.$Index = i + 1 + '' @@ -275,7 +276,7 @@ if (position === 'line') { if (lines && lines.length === 1) { - this.loadLinedata(lines[0].$$uuid) + this.loadLinedata(lines[0].$$parentId || lines[0].$$uuid) } else { this.loadData(id) } @@ -560,6 +561,7 @@ _children.forEach((cell, i) => { cell.key = i cell.$$uuid = cell[config.setting.subKey] || '' + cell.$$parentId = item[config.setting.primaryKey] || '' cell.$$BID = item[config.setting.primaryKey] || '' cell.$$BData = {...item} cell.$Index = i + 1 + '' @@ -598,6 +600,7 @@ _children.forEach((cell, i) => { cell.key = i cell.$$uuid = cell[config.setting.subKey] || '' + cell.$$parentId = item[config.setting.primaryKey] || '' cell.$$BID = item[config.setting.primaryKey] || '' cell.$$BData = {...item} cell.$Index = i + 1 + '' @@ -709,6 +712,7 @@ _children.forEach((cell, i) => { cell.key = i cell.$$uuid = cell[config.setting.subKey] || '' + cell.$$parentId = _data[config.setting.primaryKey] || '' cell.$$BID = _data[config.setting.primaryKey] || '' cell.$$BData = {..._data} cell.$Index = i + 1 + '' -- Gitblit v1.8.0