[{"__symbolic":"module","version":4,"metadata":{"DoorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":50,"character":1},"arguments":[{"selector":"zx-door","template":"<zx-header-block [title]=\"'门禁管理'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\"><p>管理小区门禁设备信息</p></zx-header-block><zx-content-block siderWidth=\"300\"><ng-template #sider><zx-tree-view [dataUrl]=\"treeViewDataUrl\" (dataLoaded)=\"treeViewDataLoaded($event)\" (headerClicked)=\"treeViewHeaderClick($event)\" [accordion]=\"true\" [enableCheckbox]=\"false\" [enableHeader]=\"true\" [headerText]=\"'小区导航'\" [headerIcon]=\"'anticon anticon-layout ng-star-inserted'\" (selectChange)=\"treeViewSelectChange($event)\" (inited)=\"treeViewInited($event)\"></zx-tree-view></ng-template><ng-template #operations><button nz-button [nzType]=\"'primary'\" [routerLink]=\"['../door/', communityId, 'import']\" [disabled]=\"noCommunity\"><i class=\"anticon anticon-plus\"></i> <span>设备导入</span></button></ng-template><ng-template #extra><nz-select [nzDisabled]=\"noCommunity\" style=\"width: 150px;\" nzAllowClear [nzPlaceHolder]=\"'在线状态'\" [(ngModel)]=\"listView.params.online\" [nzSize]=\"'large'\" (ngModelChange)=\"filter()\"><nz-option [nzLabel]=\"'在线'\" [nzValue]=\"'true'\"></nz-option><nz-option [nzLabel]=\"'离线'\" [nzValue]=\"'false'\"></nz-option></nz-select>&nbsp;<nz-select [nzDisabled]=\"noCommunity\" style=\"width: 150px;\" nzAllowClear [nzPlaceHolder]=\"'选择小区'\" [(ngModel)]=\"listView.params.onlyInCommunityId\" [nzSize]=\"'large'\" (ngModelChange)=\"loadAll()\"><nz-option [nzLabel]=\"community.name\" [nzValue]=\"community.id\"></nz-option></nz-select>&nbsp;<nz-select [nzDisabled]=\"noCommunity\" style=\"width: 150px;\" nzAllowClear [nzPlaceHolder]=\"'选择楼栋'\" [(ngModel)]=\"listView.params.onlyInBuildingId\" [nzSize]=\"'large'\" (ngModelChange)=\"changeBuilding(listView.params.onlyInBuildingId);listView.params.onlyInStaircaseId = null;loadAll()\"><nz-option *ngFor=\"let option of buildingOptions\" [nzLabel]=\"option.name\" [nzValue]=\"option.id\"></nz-option></nz-select>&nbsp;<nz-select [nzDisabled]=\"noCommunity\" style=\"width: 150px;\" nzAllowClear [nzPlaceHolder]=\"'选择单元'\" [(ngModel)]=\"listView.params.onlyInStaircaseId\" [nzSize]=\"'large'\" (ngModelChange)=\"loadAll()\"><nz-option *ngFor=\"let option of staircaseOptions\" [nzLabel]=\"option.name\" [nzValue]=\"option.id\"></nz-option></nz-select>&nbsp;<nz-input [nzDisabled]=\"noCommunity\" [nzType]=\"'search'\" [(ngModel)]=\"listView.params.keywords\" [nzPlaceHolder]=\"'请输入检索关键字'\" style=\"width: 300px;vertical-align: top;\" (nzOnSearch)=\"loadAll()\" [nzSize]=\"'large'\"></nz-input></ng-template><ng-template #content><zx-list-view [listView]=\"listView\" (loadData)=\"loadAll()\" *ngIf=\"!noCommunity\"><ng-template #dataColumn let-dataRow=\"dataRow\" let-field=\"field\" let-value=\"value\"><div *ngIf=\"field.name == 'name'\"><span *ngIf=\"!dataRow.dialog\">{{dataRow.name}}</span><nz-input *ngIf=\"dataRow.dialog\" [(ngModel)]=\"dataRow.name\" [nzPlaceHolder]=\"'设备名称'\" style=\"width: 150px\"></nz-input></div><div *ngIf=\"field.name == 'fullRoomName'\"><span *ngIf=\"!dataRow.dialog\">{{dataRow.communityName}}&nbsp;{{dataRow.buildingName}}&nbsp;{{dataRow.staircaseName}}</span><div *ngIf=\"dataRow.dialog\"><nz-select style=\"width: 100px;\" nzAllowClear [nzPlaceHolder]=\"'选择小区'\" [(ngModel)]=\"dataRow.communityId\"><nz-option [nzLabel]=\"community.name\" [nzValue]=\"community.id\"></nz-option></nz-select><nz-select style=\"width: 100px;\" nzAllowClear [nzPlaceHolder]=\"'选择楼栋'\" [(ngModel)]=\"dataRow.buildingId\" (ngModelChange)=\"changeBuilding(dataRow.buildingId); dataRow.staircaseId = null\"><nz-option *ngFor=\"let option of buildingOptions\" [nzLabel]=\"option.name\" [nzValue]=\"option.id\"></nz-option></nz-select><nz-select style=\"width: 100px;\" nzAllowClear [nzPlaceHolder]=\"'选择单元'\" [(ngModel)]=\"dataRow.staircaseId\"><nz-option *ngFor=\"let option of staircaseOptions\" [nzLabel]=\"option.name\" [nzValue]=\"option.id\"></nz-option></nz-select></div></div><div *ngIf=\"field.name == 'sort'\"><span *ngIf=\"!dataRow.dialog\">{{dataRow.sort}}</span><nz-input-number *ngIf=\"dataRow.dialog\" [(ngModel)]=\"dataRow.sort\" [nzPlaceHolder]=\"'排序'\" [nzMin]=\"0\" [nzStep]=\"1\"></nz-input-number></div><div *ngIf=\"field.name == 'online'\"><span [ngStyle]=\"{'color':dataRow.online ? 'green' : 'red' }\">{{dataRow.online ? '在线' : '离线'}}</span></div><div *ngIf=\"field.name == 'memo'\"><span *ngIf=\"!dataRow.dialog\">{{dataRow.memo}}</span><nz-input *ngIf=\"dataRow.dialog\" [(ngModel)]=\"dataRow.memo\" [nzPlaceHolder]=\"'备注'\" style=\"width: 150px\"></nz-input></div></ng-template><ng-template #dataOperations let-dataRow=\"dataRow\"><a *ngIf=\"!dataRow.dialog\" (click)=\"dataRow.dialog = !dataRow.dialog;loadstaircase(dataRow)\">修改</a> <a *ngIf=\"dataRow.dialog\" (click)=\"onSave(dataRow)\">保存</a> <a *ngIf=\"dataRow.dialog\" (click)=\"dataRow.dialog = !dataRow.dialog\">取消</a> <a *ngIf=\"!dataRow.dialog\" class=\"delete\" (click)=\"delete(dataRow)\">删除</a></ng-template></zx-list-view><div *ngIf=\"noCommunity\"><br><nz-alert [nzType]=\"'info'\" nzShowIcon><span alert-body class=\"alert-info\"><i>提示：</i> <i>请选择小区节点以管理门禁设备。</i></span></nz-alert></div></ng-template></zx-content-block>","styles":["\n        :host .delete{\n            color:red;\n        }\n        :host ::ng-deep .operations{\n            width:272px !important;\n        }\n        :host ::ng-deep .extra{\n            width:calc(100% - 272px) !important;\n        }\n        :host ::ng-deep .ant-table-tbody > tr >td:last-child{\n            max-width:500px !important;\n        }\n        "]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":83,"character":26},{"__symbolic":"reference","module":"./../../service/data-source.helper","name":"DataSourceHelper","line":84,"character":34},{"__symbolic":"reference","module":"ng-zorro-antd","name":"NzModalService","line":85,"character":29}]}],"ngOnInit":[{"__symbolic":"method"}],"loadAll":[{"__symbolic":"method"}],"treeViewDataLoaded":[{"__symbolic":"method"}],"setTreeNodeAttributes":[{"__symbolic":"method"}],"treeViewInited":[{"__symbolic":"method"}],"treeViewHeaderClick":[{"__symbolic":"method"}],"treeViewSelectChange":[{"__symbolic":"method"}],"loadBuilding":[{"__symbolic":"method"}],"loadstaircase":[{"__symbolic":"method"}],"changeBuilding":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"onSave":[{"__symbolic":"method"}]}}}}]