|
|
|
@ -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 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|