[{"__symbolic":"module","version":4,"metadata":{"DoorImportComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"zx-door-import","template":"<zx-header-block [title]=\"'设备导入'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\" [breadcrumbAppendings]=\"['设备导入']\"><p>下载Excel模板填写设备信息同步导入</p></zx-header-block><zx-content-block><ng-template #title><span>选择Excel文件导入：</span><nz-upload [(nzFileList)]=\"fileList\" [nzBeforeUpload]=\"beforeUpload\" [nzShowUploadList]=\"false\" [nzLimit]=\"1\" [nzAccept]=\"'.xlsx'\"><button nz-button><i class=\"anticon anticon-upload\"></i> <span>上传文件</span></button></nz-upload>&nbsp; <button nz-button [nzType]=\"'primary'\" [nzLoading]=\"uploading\" (click)=\"handleUpload()\" [disabled]=\"fileList.length == 0\" style=\"margin-top: 16px\">{{ uploading ? '导入中' : '设备导入' }}</button> <span class=\"file-name\">{{fileName ? fileName : '暂无上传文件'}} <i *ngIf=\"fileName\" (click)=\"removeFile()\">x</i></span></ng-template><ng-template #content><div><h3 style=\"display: inline-block;font-weight:bold;\">使用说明：</h3><span style=\"color: rgba(0, 0, 0, 0.447);\">请参照下图说明填写Excel模板</span></div><div style=\"margin: 10px 0;\"><img src=\"/assets/images/u5522.png\" alt=\"\" style=\"width: 50%\"></div><div><button nz-button [nzType]=\"'primary'\" (click)=\"download()\" [disabled]=\"templateStatus.isDisabled\"><span>模板下载</span></button> <button nz-button (click)=\"generateTemplate()\" [nzLoading]=\"isLoading\"><span>模板生成</span></button> <span style=\"margin-left:15px;color: rgba(0, 0, 0, 0.447);\">{{templateStatus.text}}</span></div></ng-template></zx-content-block>","styles":["\n        :host ::ng-deep .block-title{\n            font-weight: normal !important;\n        }\n        :host ::ng-deep .ant-card-head{\n            height:72px !important;\n            line-height:72px !important;\n        }\n        :host .file-name{\n            margin-left: 10px;\n            font-size:12px;\n            color:#a9a9a9;\n        }\n        :host .file-name > i {\n            padding:10px;\n            font-style:normal;\n            cursor: pointer;\n            font-size:16px;\n        }\n        :host .explain{\n            margin-bottom:15px;\n        }\n        :host .explain > p{\n            color: rgba(0, 0, 0, 0.447);\n        }\n        :host .explain >　h3 {\n            color:#000;\n            font-weight:bold;\n            margin-bottom:10px;\n        }\n        "]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":58,"character":22},{"__symbolic":"reference","module":"ng-zorro-antd","name":"NzMessageService","line":59,"character":21},{"__symbolic":"reference","module":"@wjya/ngx-webapp-fx","name":"UserStorageService","line":60,"character":36},{"__symbolic":"reference","module":"@wjya/ngx-webapp-fx","name":"AuthServerProvider","line":61,"character":36},{"__symbolic":"reference","module":"../../service/data-source.helper","name":"DataSourceHelper","line":62,"character":34},{"__symbolic":"reference","module":"@angular/common","name":"DatePipe","line":63,"character":26},{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":64,"character":32}]}],"ngOnInit":[{"__symbolic":"method"}],"removeFile":[{"__symbolic":"method"}],"getAuthToken":[{"__symbolic":"method"}],"handleUpload":[{"__symbolic":"method"}],"getTemplateStatus":[{"__symbolic":"method"}],"generateTemplate":[{"__symbolic":"method"}],"downloadTemplate":[{"__symbolic":"method"}],"download":[{"__symbolic":"method"}],"convertLocalDateTimeToServer":[{"__symbolic":"method"}]}}}}]