Browse Source

新增保存

dev
陈鹏飞 3 years ago
parent
commit
d99decc9ac
  1. 6
      src/app/pages/plan/plan.component.html
  2. 22
      src/app/pages/plan/plan.component.scss
  3. 6
      src/app/pages/plan/plan.component.ts

6
src/app/pages/plan/plan.component.html

@ -21,6 +21,12 @@
</div>
<!-- 左侧建筑 -->
<!-- 右上角快捷栏 -->
<div class="rightTopFast">
<div style="margin: 0 10px; background-color: #0080FF;" title="保存"><button (click)="preserve()"><i nz-icon nzType="save" nzTheme="outline" style="font-size: 20px;"></i></button></div>
</div>
<!-- 右上角快捷栏 -->
<!-- 新增/编辑左侧建筑弹窗 -->
<nz-modal [(nzVisible)]="isShowBuildingPop" nzTitle="创建/编辑建筑" (nzOnCancel)="isShowBuildingPop = false" (nzOnOk)="addModelBuilding(form.value)" [nzOkDisabled]='name.invalid||modelType.invalid||upload.invalid'>
<form nz-form #form='ngForm'>

22
src/app/pages/plan/plan.component.scss

@ -71,4 +71,26 @@
.isShowLeftBuilding{ //隐藏 动态效果
margin-left: -300px;
transition: margin-left 0.5s;
}
//右上角快捷栏
.rightTopFast{
width: 60px;
height: 38px;
position: absolute;
right: 1px;
top: 1%;
overflow: hidden;
box-sizing: border-box;
display: flex;
>div { height: 38px; border-radius: 5px; }
button {
width: 36px;
height: 36px;
border: none;
outline: none;
background-color: transparent;
color: #fff;
cursor: pointer;
}
}

6
src/app/pages/plan/plan.component.ts

@ -7,6 +7,7 @@ import { ModeManager } from 'src/app/babylon/controller/mode-manager';
import { ServeManager } from 'src/app/babylon/controller/serve-manager';
import { BuildingBasicInfosService } from 'src/app/service/babylon/building-basic-infos.service';
import { ObjectsService } from 'src/app/service/objects.service';
import { ToolbarWindow } from 'src/app/babylon/view/toolbar-window/toobar-window';
@ -109,6 +110,11 @@ export class PlanComponent implements OnInit {
}
}
//保存
preserve() {
ToolbarWindow.instance.onBtnSave();
}
}

Loading…
Cancel
Save