货位看板详情回退修复,删除幽灵卡片。
This commit is contained in:
@@ -39,6 +39,21 @@ class CustomKanbanController extends KanbanController {
|
|||||||
this.searchModel.off('update', self, self._onUpdate);
|
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() {
|
_handleSearchUpdate() {
|
||||||
@@ -92,6 +107,10 @@ class CustomKanbanController extends KanbanController {
|
|||||||
// 添加新类
|
// 添加新类
|
||||||
if (isHave) kanbanViewEl.classList.add(style);
|
if (isHave) kanbanViewEl.classList.add(style);
|
||||||
}
|
}
|
||||||
|
const ghostCards = document.querySelectorAll('.o_kanban_ghost');
|
||||||
|
ghostCards.forEach(card => {
|
||||||
|
card.remove();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
updatePagerLimit(limit) {
|
updatePagerLimit(limit) {
|
||||||
|
|||||||
Reference in New Issue
Block a user