Commit 32f91423 authored by “yiyousong”'s avatar “yiyousong”

fix: 修改窗口关联业务

parent ea4492ea
...@@ -193,17 +193,17 @@ export default { ...@@ -193,17 +193,17 @@ export default {
onSelectRow(record, selected) { onSelectRow(record, selected) {
if (selected && record.children && record.children.length) { if (selected && record.children && record.children.length) {
record.children.forEach((v) => { record.children.forEach((v) => {
this.rowKeys = [...new Set([...this.rowKeys, v.id])]; this.rowKeys = [...new Set([...this.rowKeys, v.businessId])];
}); });
} else if (!selected && record.children && record.children.length) { } else if (!selected && record.children && record.children.length) {
this.rowKeys = this.rowKeys.filter((v) => v != record.id); this.rowKeys = this.rowKeys.filter((v) => v != record.businessId);
record.children.forEach((v) => { record.children.forEach((v) => {
this.rowKeys = this.rowKeys.filter((val) => val != v.id); this.rowKeys = this.rowKeys.filter((val) => val != v.businessId);
}); });
} else if (selected && record.parentId) { } else if (selected && record.parentId) {
this.rowKeys = [...new Set([...this.rowKeys, record.parentId])]; this.rowKeys = [...new Set([...this.rowKeys, record.parentId])];
} else if (!selected) { } else if (!selected) {
this.rowKeys = this.rowKeys.filter((v) => v != record.id); this.rowKeys = this.rowKeys.filter((v) => v != record.businessId);
} }
}, },
// 保存窗口关联业务 // 保存窗口关联业务
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment