Browse Source

[完善]安信配置按钮区域可拖动

非煤矿业企业安全风险监测预警系统
邵佳豪 2 years ago
parent
commit
d7d4490541
  1. 4
      src/app/system-management/image-label-anxin/image-label-anxin.component.html
  2. 3
      src/app/system-management/image-label-anxin/image-label-anxin.component.scss
  3. 2
      src/app/system-management/system-management.module.ts

4
src/app/system-management/image-label-anxin/image-label-anxin.component.html

@ -1,5 +1,5 @@
<div class="canvasBox">
<div class="btnbox">
<div class="canvasBox" >
<div class="btnbox" cdkDrag>
<label class="leftTitle" style="color: red;">安信盒子标记</label>
<label class="leftTitle" *ngIf="markType === 0">进出口</label>

3
src/app/system-management/image-label-anxin/image-label-anxin.component.scss

@ -33,6 +33,9 @@
left: 1%;
top: 1%;
z-index: 10;
border: 1px solid red;
box-sizing: border-box;
cursor: move;
button {
margin-right: 6px;

2
src/app/system-management/system-management.module.ts

@ -49,6 +49,7 @@ import { NzRadioModule } from 'ng-zorro-antd/radio';
import { HuangHaiConfigComponent } from './host-config/huang-hai-config/huang-hai-config.component';
import { ImageLabelAnxinComponent } from './image-label-anxin/image-label-anxin.component';
import { AnxinConfigComponent } from './host-config/anxin-config/anxin-config.component';
import { DragDropModule } from '@angular/cdk/drag-drop';
@NgModule({
declarations: [
OrganizationComponent,
@ -104,6 +105,7 @@ import { AnxinConfigComponent } from './host-config/anxin-config/anxin-config.co
NzTabsModule,
NzPopconfirmModule,
NzRadioModule,
DragDropModule,
],
entryComponents: [
AddorComponent,

Loading…
Cancel
Save