Browse Source

[修正] 修正选中死循环BUG

develop
陈鹏飞 4 years ago
parent
commit
2ec59ff552
  1. 7
      src/app/ui/plan-assistance/plan-assistance.component.ts

7
src/app/ui/plan-assistance/plan-assistance.component.ts

@ -7268,10 +7268,11 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
// 监听canvas组件选中素材事件
this.workingArea.on("select",obj=>{
//选中素材属性注入函数
this.selectCar(obj.assetData)
this.selectCar(obj.assetData,false)
})
// 监听canvas组件取消选中素材事件
this.workingArea.on("deselect",obj=>{
this.canvasData.selectCar.Id = ''
this.bottomIsShow = false;
})
}
@ -7299,13 +7300,13 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
}
//选择 车辆
selectCar (e) {
selectCar (e,isSelect:boolean = true) {
if (e.ReachTime == 0) {
this.canvasData.selectCar = e
this.bottomIsShow = true
let list = []
list.push(e.Id)
this.workingArea.setHighlight(list)
isSelect? this.workingArea.setHighlight(list) : null
} else {
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';

Loading…
Cancel
Save