货位看板详情回退修复,删除幽灵卡片。

This commit is contained in:
huziyang@jikimo.com
2025-06-12 15:38:56 +08:00
parent 23dd88b7ba
commit 6321e7ef23

View File

@@ -39,6 +39,21 @@ class CustomKanbanController extends KanbanController {
this.searchModel.off('update', self, self._onUpdate);
});
// 监听视图切换事件以监控面包屑
onMounted(() => {
this.handleRouteChange()
});
}
handleRouteChange() {
this.render(true);
let domain = this.searchModel.domain;
if (domain.length > 0) {
let shelfDomain = domain.find(item => item[0] === 'shelf_id');
this.onShelfChange(shelfDomain[2]);
} else {
this.setKanbanStyle('sf_kanban_location_style');
}
}
_handleSearchUpdate() {
@@ -92,6 +107,10 @@ class CustomKanbanController extends KanbanController {
// 添加新类
if (isHave) kanbanViewEl.classList.add(style);
}
const ghostCards = document.querySelectorAll('.o_kanban_ghost');
ghostCards.forEach(card => {
card.remove();
});
}
updatePagerLimit(limit) {