Browse Source

修复设备取消选中时图标消失问题

dev
刘向辉 3 years ago
parent
commit
2bd4b1457e
  1. 2
      src/app/babylon/controller/serve-manager.ts
  2. 7
      src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window.ts

2
src/app/babylon/controller/serve-manager.ts

@ -152,7 +152,7 @@ export class ServeManager {
//队列性,批量上传 //队列性,批量上传
uploadFile(index: number, files: File[], resPath_out, onOneSuccess: (name: string, path: string, file: File) => void, onEnd: () => void) { uploadFile(index: number, files: File[], resPath_out, onOneSuccess: (name: string, path: string, file: File) => void, onEnd: () => void) {
if (index < files.length) { if (index < files.length) {
//console.log("上传文件", files[index].name); console.log("上传文件", files[index].name);
ServeManager.instance.openFileSelect(files[index], resPath_out, (name: string, path: string, file: File) => { ServeManager.instance.openFileSelect(files[index], resPath_out, (name: string, path: string, file: File) => {
onOneSuccess(name, path, file); onOneSuccess(name, path, file);
this.uploadFile(index + 1, files, resPath_out, onOneSuccess, onEnd); this.uploadFile(index + 1, files, resPath_out, onOneSuccess, onEnd);

7
src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window.ts

@ -1,6 +1,7 @@
import { EventManager } from "@angular/platform-browser"; import { EventManager } from "@angular/platform-browser";
import { AbstractMesh, Ray, RayHelper, Vector3 } from "@babylonjs/core"; import { AbstractMesh, Ray, RayHelper, Vector3 } from "@babylonjs/core";
import { classToClass } from "class-transformer"; import { classToClass } from "class-transformer";
import { PlanComponent } from "src/app/pages/plan/plan.component";
import { ModelChangeType } from "../../controller/data-manager"; import { ModelChangeType } from "../../controller/data-manager";
import { Event_KeyboardInput } from "../../controller/event-manager/events/event-keyboard-input"; import { Event_KeyboardInput } from "../../controller/event-manager/events/event-keyboard-input";
import { Event_ModelInfoChange } from "../../controller/event-manager/events/event-modelinfo-change"; import { Event_ModelInfoChange } from "../../controller/event-manager/events/event-modelinfo-change";
@ -23,7 +24,7 @@ import { FacilityInfoUIItem } from "./facilityinfo-ui-item";
//所有放在场景中的设备 信息界面 //所有放在场景中的设备 信息界面
export class FacilityInfoInSceneWindow extends UIBase { export class FacilityInfoInSceneWindow extends UIBase {
static instance: FacilityInfoInSceneWindow; static instance: FacilityInfoInSceneWindow;
// three: ThreeDimensionalHomeComponent;//前端组件 three: PlanComponent;//前端组件
// scrollView: ScrollViewer; // scrollView: ScrollViewer;
// content: StackPanel; // content: StackPanel;
@ -211,7 +212,7 @@ export class FacilityInfoInSceneWindow extends UIBase {
} }
/** /**
* * UI中的显示状态
* @param facilityType * @param facilityType
*/ */
getFacilityUIShowType(facilityType: FacilityType): boolean { getFacilityUIShowType(facilityType: FacilityType): boolean {
@ -221,7 +222,7 @@ export class FacilityInfoInSceneWindow extends UIBase {
// return item.isShow; // return item.isShow;
// } // }
// } // }
return false; return true;
} }

Loading…
Cancel
Save