Browse Source

编辑基本信息完善

dev
陈鹏飞 3 years ago
parent
commit
10b019978e
  1. 3
      src/app/pages/left-domain/left-domain.component.html
  2. 19
      src/app/pages/left-domain/left-domain.component.ts
  3. 2
      src/app/pages/oil-station-info/oil-station-info.component.html
  4. 5
      src/styles.scss

3
src/app/pages/left-domain/left-domain.component.html

@ -186,6 +186,9 @@
</div>
<!-- 处置预案 -->
<!-- 弹窗 -->
<nz-modal nzClassName="baseInfoDialog" [(nzVisible)]="isShowBaseDialog" nzFooter="null" (nzOnCancel)="closeBaseInfoDialog()" nzWidth="70%">
<app-oil-station-info *ngIf="isShowBaseDialog"></app-oil-station-info>
</nz-modal>
<nz-modal [(nzVisible)]="addDisposalPop || addNodePop" nzTitle="创建预案/节点" (nzOnCancel)="addDisposalPop = false; addNodePop = null;" (nzOnOk)="addDisposal(form.value)" [nzOkDisabled]='nodeName.invalid'>
<form nz-form #form='ngForm'>
<nz-form-item>

19
src/app/pages/left-domain/left-domain.component.ts

@ -36,6 +36,7 @@ export class LeftDomainComponent implements OnInit {
FacilityList: FacilityInfoUIItem[] = []; //统计设备 list
selectFacilityId: string = null; //选中设备 ID
baseInfo: any; //基本信息
isShowBaseDialog: boolean = false; //显隐 编辑信息/导出Excel 弹窗
//初始化组件
initComponent(type?: number) {
@ -351,17 +352,29 @@ export class LeftDomainComponent implements OnInit {
}
}
originalData: any; //sessionStorage 原始数据
//编辑信息
editInfo() {
this.originalData = sessionStorage.getItem('userdata')
let userdata = { organization: PlanComponent.instance.companyData, hideCloseBtn: true }
sessionStorage.setItem('userdata', JSON.stringify(userdata))
this.isShowBaseDialog = true
}
//导出Excel
deriveExcel() {
this.originalData = sessionStorage.getItem('userdata')
let userdata = { organization: PlanComponent.instance.companyData, hideCloseBtn: true }
sessionStorage.setItem('userdata', JSON.stringify(userdata))
this.isShowBaseDialog = true
}
//关闭 编辑信息/导出Excel 弹窗
closeBaseInfoDialog() {
sessionStorage.setItem('userdata', this.originalData)
this.isShowBaseDialog = false
}
}

2
src/app/pages/oil-station-info/oil-station-info.component.html

@ -372,7 +372,7 @@
</form>
</div>
</div>
<div class="backbtn">
<div class="backbtn" *ngIf="userdata && !userdata.hideCloseBtn">
<button nz-button (click)="goback()">返回</button>
</div>
</div>

5
src/styles.scss

@ -125,6 +125,11 @@ h1 {
.ant-input { background: rgba(145, 204, 255, 0.41); border: 1px solid #91CCFF; }
textarea { resize: none; outline: none; }
}
.baseInfoDialog{
height: 80%;
.ant-modal-footer { padding: 0; }
.ant-modal-body,.ant-modal-content { height: 100%; background: radial-gradient(closest-side at 50% 55%, #004988 0%, #00122D 100%); }
}
.videoDialog{
height: 80%;
.ant-modal-footer { padding: 0; }

Loading…
Cancel
Save