Skip to content

Commit c59a1eb

Browse files
ba1q1fit2-zhao
authored andcommitted
fix: subTable datasource change
1 parent 04f6aa8 commit c59a1eb

File tree

1 file changed

+1
-1
lines changed
  • frontend/packages/web/src/components/business/crm-sub-table

1 file changed

+1
-1
lines changed

frontend/packages/web/src/components/business/crm-sub-table/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
}
305305
nextTick(() => {
306306
// 等待行添加完成后,给新增的行补充行号和选中价格表数据源
307-
for (let i = data.value.length - 1; i > rowIndex; i--) {
307+
for (let i = rowIndex + 1; i < rowIndex + children.length; i++) {
308308
const newRow = data.value[i];
309309
newRow.price_sub = children[i - rowIndex]?.id;
310310
newRow[key] = [children[i - rowIndex]?.parentId, newRow.price_sub]; // 选中值为父项以及当前行

0 commit comments

Comments
 (0)