UNPKG

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

Version:

angular webapp : icpc.group.pms

82 lines 3.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); var ngx_webapp_fx_1 = require("@wjya/ngx-webapp-fx"); var ng_zorro_antd_1 = require("ng-zorro-antd"); var def = { data: null, showOperations: true, fields: { id: { label: 'id', hidden: true, sort: { enabled: false }, query: {}, filter: { enabled: false } }, title: { label: '模版编号', sort: { enabled: true }, query: {}, filter: { enabled: false } }, name: { label: '模版标题', sort: { enabled: true }, query: {}, filter: { enabled: false } }, a: { label: '主行业', sort: { enabled: true }, query: {}, filter: { enabled: false } }, b: { label: '副行业', sort: { enabled: true }, query: {}, filter: { enabled: false } }, c: { label: '内容', sort: { enabled: true }, query: {}, filter: { enabled: false } } } }; var TemplateComponent = /** @class */ (function () { function TemplateComponent(injector, confirmServ) { this.injector = injector; this.confirmServ = confirmServ; } TemplateComponent.prototype.ngOnInit = function () { this.listView = new ngx_webapp_fx_1.ListView(def, this.injector); this.listView.data = [ { id: 1, name: '111' } ]; }; TemplateComponent.prototype.insert = function () { this.confirmServ.confirm({ title: '您确定要添加吗?', onOk: function () { console.log('确定'); }, }); }; TemplateComponent.decorators = [ { type: core_1.Component, args: [{ selector: 'zx-template', template: "<zx-header-block [title]=\"'\u6DFB\u52A0\u6A21\u7248'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\" [breadcrumbAppendings]=\"['\u6DFB\u52A0\u6A21\u677F']\"><p>\u516C\u4F17\u53F7\u6A21\u7248\u6D88\u606F\u6DFB\u52A0</p></zx-header-block><zx-content-block><ng-template #extra><nz-input [nzType]=\"'search'\" [nzPlaceHolder]=\"'\u8BF7\u8F93\u5165\u6A21\u7248\u6D88\u606F'\" style=\"width: 300px;\" (nzOnSearch)=\"search($event)\" [nzSize]=\"'large'\"></nz-input></ng-template><ng-template #content><zx-list-view [listView]=\"listView\" (loadData)=\"query($event)\"><ng-template #dataOperations let-dataRow=\"dataRow\"><div class=\"operation\"><a (click)=\"insert()\">\u6DFB\u52A0</a></div></ng-template></zx-list-view></ng-template></zx-content-block>" },] }, ]; /** @nocollapse */ TemplateComponent.ctorParameters = function () { return [ { type: core_1.Injector, }, { type: ng_zorro_antd_1.NzModalService, }, ]; }; return TemplateComponent; }()); exports.TemplateComponent = TemplateComponent; //# sourceMappingURL=template.component.js.map