Browse Source

[完善]油站预警配置样式完善

beijing
邵佳豪 2 years ago
parent
commit
29657379ec
  1. 10
      src/app/system-management/organization/organization.component.ts
  2. 1
      src/app/system-management/organization/warning-events/warning-events.component.scss
  3. 5
      src/app/system-management/organization/warning-events/warning-events.component.ts
  4. 5
      src/theme.less

10
src/app/system-management/organization/organization.component.ts

@ -185,14 +185,8 @@ export class OrganizationComponent implements OnInit {
nzContent: WarningEventsComponent, nzContent: WarningEventsComponent,
nzViewContainerRef: this.viewContainerRef, nzViewContainerRef: this.viewContainerRef,
nzWidth: 388, nzWidth: 388,
nzFooter: [{ nzClassName: 'WarningEvents',
label: '确定', // 按钮文本 nzFooter: null,
type: 'primary', // 类型
// 按钮点击回调
onClick(this: ModalButtonOptions, contentComponentInstance?: object): void {
modal.close()
}
}],
nzMaskClosable: false, nzMaskClosable: false,
nzComponentParams: { nzComponentParams: {
data: node.origin, data: node.origin,

1
src/app/system-management/organization/warning-events/warning-events.component.scss

@ -2,4 +2,5 @@ li{
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: 6px;
} }

5
src/app/system-management/organization/warning-events/warning-events.component.ts

@ -18,17 +18,20 @@ export class WarningEventsComponent implements OnInit {
warningList: any warningList: any
getWarningList() { getWarningList() {
this.isLoading = true
this.http.get('/api/services/app/Violation/GetStationViolationConfig', { this.http.get('/api/services/app/Violation/GetStationViolationConfig', {
params: { params: {
organizationId: this.data.id organizationId: this.data.id
} }
}).subscribe((data: any) => { }).subscribe((data: any) => {
this.isLoading = false
data.result.forEach(element => { data.result.forEach(element => {
element.enable = !element.disabled element.enable = !element.disabled
}); });
this.warningList = data.result this.warningList = data.result
// console.log('预警列表', this.warningList) // console.log('预警列表', this.warningList)
}, err => {
this.isLoading = false
}) })
} }

5
src/theme.less

@ -771,3 +771,8 @@
} }
} }
} }
.WarningEvents{
.ant-modal-close-x{
color: #000;
}
}
Loading…
Cancel
Save