@wjya/ngx-webapp-icpc.group.pms
Version:
angular webapp : icpc.group.pms
40 lines • 3.34 kB
JavaScript
"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 router_1 = require("@angular/router");
var AuthorizationComponent = /** @class */ (function () {
function AuthorizationComponent(dataSourceHelper, activateRoute) {
this.dataSourceHelper = dataSourceHelper;
this.activateRoute = activateRoute;
this.data = {};
this.dataSource = this.dataSourceHelper.officals;
}
AuthorizationComponent.prototype.ngOnInit = function () {
this.id = this.activateRoute.snapshot.params['id'];
this.loadAll();
};
AuthorizationComponent.prototype.loadAll = function () {
var _this = this;
this.dataSource.findOne(this.id).subscribe(function (res) {
_this.data = res.body;
});
};
AuthorizationComponent.decorators = [
{ type: core_1.Component, args: [{
selector: 'zx-authorization',
template: "<zx-header-block [title]=\"'\u516C\u4F17\u53F7\u6388\u6743\u4FE1\u606F'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\" [breadcrumbAppendings]=\"['\u516C\u4F17\u53F7\u6388\u6743\u4FE1\u606F']\"><p>\u67E5\u770B\u516C\u4F17\u53F7\u6388\u6743\u4FE1\u606F\u5185\u5BB9</p></zx-header-block><zx-content-block><ng-template #content><div nz-row class=\"row\"><div nz-col [nzSpan]=\"24\"><span>\u516C\u4F17\u53F7\u5934\u50CF\uFF1A</span> <span><img src=\"{{data.logo}}\" alt=\"\"></span></div></div><div nz-row class=\"row\"><div nz-col [nzSpan]=\"24\"><span>Appid\uFF1A</span> <span>{{data.appId}}</span></div></div><div nz-row class=\"row\"><div nz-col [nzSpan]=\"24\"><span>\u516C\u4F17\u53F7\u540D\u79F0\uFF1A</span> <span>{{data.name}}</span></div></div><div nz-row class=\"row\"><div nz-col [nzSpan]=\"24\"><span>\u5FAE\u4FE1\u53F7\uFF1A</span> <span>{{data.alias}}</span></div></div><div nz-row class=\"row\"><div nz-col [nzSpan]=\"24\"><span>\u516C\u4F17\u53F7\u7C7B\u578B\uFF1A</span> <span>{{data.serviceType | dictConvert:'WEIXIN_OFFICAL_SERVICE_TYPE' | async}}</span></div></div><div nz-row class=\"row\"><div nz-col [nzSpan]=\"24\"><span>\u6388\u6743\u65F6\u95F4\uFF1A</span> <span>{{data.authorizationTime | date:'yyyy-MM-dd HH:mm:ss'}}</span></div></div></ng-template></zx-content-block>",
styles: [
"\n :host .row{\n margin-bottom: 40px;\n }\n :host .row:nth-child(1) {\n margin-bottom: 21px;\n }\n :host .row > div >span:nth-child(1) {\n width: 100px;\n display: inline-block;\n text-align: right;\n }\n :host .row > div > span > img {\n height: 50px;\n vertical-align: middle;\n border-radius:25px;\n }\n "
]
},] },
];
/** @nocollapse */
AuthorizationComponent.ctorParameters = function () { return [
{ type: data_source_helper_1.DataSourceHelper, },
{ type: router_1.ActivatedRoute, },
]; };
return AuthorizationComponent;
}());
exports.AuthorizationComponent = AuthorizationComponent;
//# sourceMappingURL=authorization.component.js.map