UNPKG

@wjya/ngx-webapp-icpc.group.pms

Version:

angular webapp : icpc.group.pms

48 lines 3.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var data_source_helper_1 = require("../service/data-source.helper"); var core_1 = require("@angular/core"); var PropertyCompanyComponent = /** @class */ (function () { function PropertyCompanyComponent(dataSourceHelper) { var _this = this; this.dataSourceHelper = dataSourceHelper; this.currentStep = 0; this.status = {}; this.accountStepDataSource = this.dataSourceHelper.accountStep; this.accountStepDataSource.findList().subscribe(function (res) { _this.status = res.body; // res.body.registerStep = 'PAY_CONFIG'; switch (res.body.registerStep) { case 'BASE_MESSAGE': _this.currentStep = 0; break; case 'AUTH': _this.currentStep = 1; break; case 'IMPORT_ROOMS': _this.currentStep = 2; } }); } PropertyCompanyComponent.prototype.ngOnInit = function () { }; PropertyCompanyComponent.prototype.next = function () { this.currentStep++; }; PropertyCompanyComponent.decorators = [ { type: core_1.Component, args: [{ selector: 'zx-property-company', template: "<div style=\"background: #eee\"><zx-header></zx-header><div class=\"main\"><zx-content-block><ng-template #content><nz-steps [nzCurrent]=\"currentStep\"><nz-step nzTitle=\"\u6CE8\u518C\u8D26\u53F7\" nzDescription=\"\u6CE8\u518C\u5E73\u53F0\u8D26\u53F7\u4FE1\u606F\"></nz-step><nz-step nzTitle=\"\u5E73\u53F0\u7ED1\u5B9A\" nzDescription=\"\u5E73\u53F0\u8D26\u53F7\u7ED1\u5B9A\u516C\u4F17\u53F7\u3001\u5C0F\u7A0B\u5E8F\"></nz-step><nz-step nzTitle=\"\u623F\u4EA7\u5BFC\u5165\" nzDescription=\"\u5B8C\u5584\u5C0F\u533A\u623F\u4EA7\u57FA\u7840\u4FE1\u606F\"></nz-step></nz-steps><div class=\"br\"></div><zx-register *ngIf=\"currentStep === 0\" (next)=\"next()\"></zx-register><zx-binding *ngIf=\"currentStep === 1\" (next)=\"next()\" [status]=\"status\"></zx-binding><zx-room-import *ngIf=\"currentStep === 2\"></zx-room-import></ng-template></zx-content-block></div></div>", styles: [ "\n :host ::ng-deep .ant-steps-description{\n max-width:100% !important;\n }\n :host .br {\n height: 1px;\n width: 100%;\n margin: 30px 0;\n border-top: 1px dashed #ddd;\n }\n :host zx-content-block{\n margin: 0 !important;\n min-height: calc(100vh - 112px);\n }\n :host .main{\n padding:20px;\n }\n " ] },] }, ]; /** @nocollapse */ PropertyCompanyComponent.ctorParameters = function () { return [ { type: data_source_helper_1.DataSourceHelper, }, ]; }; return PropertyCompanyComponent; }()); exports.PropertyCompanyComponent = PropertyCompanyComponent; //# sourceMappingURL=property-company.component.js.map