merge: fix/config-dialog-siblings-dev into develop (local only, not pushed)

This commit is contained in:
yeuimu
2026-08-28 17:11:36 +08:00
2 changed files with 3 additions and 4 deletions
+2 -1
View File
@@ -387,7 +387,8 @@ function collectSiblings(ogNode: any): any[] {
const result: any[] = []
function traverse(nodes: any[]) {
for (const n of nodes) {
if (n.isOG && n.parentId === ogNode.parentId && String(n.rawId) !== String(ogNode.rawId) && !n.configuredCount) result.push(n)
// 同分类下的全部其他链接(含已配置的,勾选归族操作幂等)
if (n.isOG && n.parentId === ogNode.parentId && String(n.rawId) !== String(ogNode.rawId)) result.push(n)
if (n.children?.length) traverse(n.children)
}
}
@@ -126,7 +126,6 @@ async function handleSubmit() {
</el-form-item>
<el-form-item v-if="siblings.length" label="合并同名">
<div class="config-merge-box">
<div class="config-merge-tip">勾选同分类下同名不同工厂/仓库原产品与当前链接归入同一族尺码/包装并集 + 价格矩阵</div>
<el-checkbox-group v-model="checkedIds">
<el-checkbox v-for="s in siblings" :key="s.rawId" :value="String(s.rawId)">
{{ s.goodName }}<template v-if="s.goodPrice"> · ¥{{ s.goodPrice }}</template>
@@ -150,6 +149,5 @@ async function handleSubmit() {
.config-og-name { font-weight: 600; font-size: 14px; }
.config-og-meta { color: #909399; font-size: 12px; margin-top: 2px; }
.config-merge-box { width: 100%; }
.config-merge-tip { color: #909399; font-size: 12px; margin-bottom: 8px; line-height: 1.5; }
.config-merge-box .el-checkbox-group { display: flex; flex-direction: column; align-items: flex-start; max-height: 160px; overflow-y: auto; }
.config-merge-box .el-checkbox-group { display: flex; flex-direction: column; align-items: flex-start; max-height: 200px; overflow-y: auto; }
</style>