UNPKG

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

Version:

angular webapp : icpc.group.pms

49 lines 3.87 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 sms_recharge_modal_component_1 = require("./sms-recharge-modal.component"); var ngx_webapp_fx_1 = require("@wjya/ngx-webapp-fx"); var SmsRechargeComponent = /** @class */ (function () { function SmsRechargeComponent(dataSourceHelper, userStorageService) { this.dataSourceHelper = dataSourceHelper; this.userStorageService = userStorageService; this.data = {}; this.dataSource = this.dataSourceHelper.platformSmsAccounts; } SmsRechargeComponent.prototype.ngOnInit = function () { this.communityGroupId = this.userStorageService.getCurrentOffice().id; this.loadAll(); }; SmsRechargeComponent.prototype.loadAll = function () { var _this = this; this.dataSource.findList({ communityGroupId: this.communityGroupId }).subscribe(function (res) { _this.data = res.body; }); }; SmsRechargeComponent.prototype.showModal = function () { this.smsRechargeModal.modalIsVisible = true; }; SmsRechargeComponent.decorators = [ { type: core_1.Component, args: [{ selector: 'zx-sms-recharge', template: "<zx-header-block [title]=\"'\u77ED\u4FE1\u5145\u503C'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\"><p>\u77ED\u4FE1\u670D\u52A1\u5145\u503C\u4E1A\u52A1</p></zx-header-block><zx-content-block><ng-template #title><div style=\"font-weight: normal\"><i class=\"anticon anticon-mail\"></i>&nbsp; <span>\u77ED\u4FE1\u8BE6\u60C5</span> <button nz-button [nzType]=\"'primary'\" style=\"float: right;margin-top: 8px;\" (click)=\"showModal()\"><span>\u8D2D\u4E70\u77ED\u4FE1\u5305</span></button></div></ng-template><ng-template #content><div nz-row class=\"row\"><div nz-col [nzSpan]=\"12\"><p>\u7D2F\u8BA1\u77ED\u4FE1\u4F7F\u7528\u6570\u91CF</p><div>{{data.usedRowNumber}}\u6761</div></div><div nz-col [nzSpan]=\"12\"><p>\u77ED\u4FE1\u5269\u4F59\u6570\u91CF</p><div>{{data.totalRowNumber}}\u6761</div></div></div></ng-template></zx-content-block><zx-content-block><ng-template #title><div style=\"font-weight: normal\"><i class=\"anticon anticon-mail\"></i>&nbsp; <span>\u4EA7\u54C1\u4ECB\u7ECD</span></div></ng-template><ng-template #content><div style=\"text-align:center\"><img src=\"./assets/images/u10103.png\" alt=\"\"></div></ng-template></zx-content-block><zx-sms-recharge-modal #smsRechargeModal></zx-sms-recharge-modal>", styles: [ "\n :host ::ng-deep zx-content-block:nth-child(2) .ant-card-body{\n padding:0;\n }\n :host .row{\n padding: 30px 0;\n text-align: center;\n height:154px;\n }\n :host .row > div{\n border-right: 1px dashed #ddd;\n height: 110px;\n }\n :host .row > div:last-child{\n border-right:0\n }\n :host .row > div > div{\n font-size: 40px;\n margin-top: 15px;\n }\n :host .row > div:nth-child(2) > div{\n color: #00cc00\n }\n " ] },] }, ]; /** @nocollapse */ SmsRechargeComponent.ctorParameters = function () { return [ { type: data_source_helper_1.DataSourceHelper, }, { type: ngx_webapp_fx_1.UserStorageService, }, ]; }; SmsRechargeComponent.propDecorators = { "smsRechargeModal": [{ type: core_1.ViewChild, args: ['smsRechargeModal',] },], }; return SmsRechargeComponent; }()); exports.SmsRechargeComponent = SmsRechargeComponent; //# sourceMappingURL=sms-recharge.component.js.map