@angular-jz/jz
Version:
jim jz
47 lines • 2.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var router_1 = require("@angular/router");
var ng_bootstrap_1 = require("@ng-bootstrap/ng-bootstrap");
var angular2_toaster_1 = require("angular2-toaster");
var CrudCreatePageComponentOptions = /** @class */ (function () {
function CrudCreatePageComponentOptions() {
}
return CrudCreatePageComponentOptions;
}());
exports.CrudCreatePageComponentOptions = CrudCreatePageComponentOptions;
var CrudCreatePageComponent = /** @class */ (function () {
function CrudCreatePageComponent(injector, options) {
var _this = this;
this.injector = injector;
this.options = options;
this.item = {};
this.criteria = {};
this.dics = {};
this.createItemSucess = function (data) {
_this.toasterService.pop('success', '', '操作成功!');
};
this.createItemFailed = function (error) {
_this.toasterService.pop('error', '', error);
};
this.crudService = options.crudService;
this.modalService = injector.get(ng_bootstrap_1.NgbModal);
this.toasterService = injector.get(angular2_toaster_1.ToasterService);
this.route = injector.get(router_1.ActivatedRoute);
this.toasterService = injector.get(angular2_toaster_1.ToasterService);
this.router = injector.get(router_1.Router);
}
CrudCreatePageComponent.prototype.ngOnInit = function () {
//this.routeSub = this.route.queryParams.subscribe(params => {
// this.criteria = { ...this.criteria, ...params };
// this.hookBeforePageLoad();
//});
};
CrudCreatePageComponent.prototype.hookBeforePageLoad = function () { };
CrudCreatePageComponent.prototype.hookAfterPageLoadDataReceived = function (data) { };
CrudCreatePageComponent.prototype.ngOnDestory = function () {
//this.routeSub.unsubscribe();
};
return CrudCreatePageComponent;
}());
exports.CrudCreatePageComponent = CrudCreatePageComponent;
//# sourceMappingURL=crud-create.page.component.js.map