@wjya/ngx-webapp-icpc.group.pms
Version:
angular webapp : icpc.group.pms
83 lines • 5.54 kB
JavaScript
"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 reply_dialog_component_1 = require("./reply-dialog.component");
var def = {
data: null,
showOperations: true,
fields: {
id: {
label: 'id',
hidden: true,
sort: { enabled: false },
query: {},
filter: { enabled: false }
},
login: {
label: '公众号名称',
sort: { enabled: true },
query: {},
filter: { enabled: false }
},
name: {
label: '绑定小区',
sort: { enabled: true },
query: {},
filter: { enabled: false }
},
}
};
var ReplyComponent = /** @class */ (function () {
function ReplyComponent(injector) {
this.injector = injector;
this.nodeIndex = 0;
this.tabs = [
{
name: 'Tab 1',
content: 'Content of Tab Pane 1'
},
{
name: 'Tab 2',
content: 'Content of Tab Pane 2'
},
{
name: 'Tab 3',
content: 'Content of Tab Pane 3'
}
];
}
ReplyComponent.prototype.ngOnInit = function () {
this.listView = new ngx_webapp_fx_1.ListView(def, this.injector);
};
ReplyComponent.prototype.getSelectedNode = function (e) {
this.nodeIndex = e.index;
};
ReplyComponent.prototype.insert = function () {
this.replyDialog.resetForm();
this.replyDialog.setFormValue({});
};
ReplyComponent.prototype.save = function () {
};
ReplyComponent.prototype.onSave = function (e) {
};
ReplyComponent.decorators = [
{ type: core_1.Component, args: [{
selector: 'zx-reply',
template: "<zx-header-block [title]=\"'\u56DE\u590D\u8BBE\u7F6E'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\"><p>\u6388\u6743\u516C\u4F17\u53F7\u6D88\u606F\u56DE\u590D\u8BBE\u7F6E</p></zx-header-block><zx-content-block><ng-template #content><nz-tabset (nzSelectChange)=\"getSelectedNode($event)\"><nz-tab><ng-template #nzTabHeading>\u5FAE\u4FE1\u5173\u952E\u8BCD\u56DE\u590D</ng-template><div><div style=\"overflow: hidden;\"><div style=\"float: left;\"><button nz-button [nzType]=\"'primary'\" (click)=\"insert()\"><span>\u6DFB\u52A0\u89C4\u5219</span></button></div><div style=\"float: right;\"><nz-input [nzType]=\"'search'\" [nzPlaceHolder]=\"'\u8BF7\u8F93\u5165\u89C4\u5219\u540D\u5B57\u6216\u8005\u5173\u952E\u8BCD'\" [(ngModel)]=\"_value\" style=\"width: 300px;\" (nzOnSearch)=\"onSearch($event)\" [nzSize]=\"'large'\"></nz-input></div></div><div style=\"margin-top: 20px;\"><zx-list-view [listView]=\"listView\" (loadData)=\"query($event)\"></zx-list-view></div></div></nz-tab><nz-tab><ng-template #nzTabHeading>\u88AB\u5173\u6CE8\u65F6\u56DE\u590D\uFF08\u672A\u6CE8\u518C\uFF09</ng-template><div><div nz-row class=\"row\"><div nz-col [nzSpan]=\"2\"><span>\u56DE\u590D\u5185\u5BB9:</span></div><div nz-col [nzSpan]=\"6\"><nz-input [(ngModel)]=\"inputValue\" [nzType]=\"'textarea'\" [nzRows]=\"'6'\" [nzPlaceHolder]=\"'\u8BF7\u8F93\u5165\u6807\u9898'\" [nzSize]=\"'large'\"></nz-input></div></div></div></nz-tab><nz-tab><ng-template #nzTabHeading>\u88AB\u5173\u6CE8\u65F6\u56DE\u590D\uFF08\u672A\u6CE8\u518C\uFF09</ng-template><div><div nz-row class=\"row\"><div nz-col [nzSpan]=\"2\"><span>\u56DE\u590D\u5185\u5BB9:</span></div><div nz-col [nzSpan]=\"6\"><nz-input [(ngModel)]=\"inputValue\" [nzType]=\"'textarea'\" [nzRows]=\"'6'\" [nzPlaceHolder]=\"'\u8BF7\u8F93\u5165\u6807\u9898'\" [nzSize]=\"'large'\"></nz-input></div></div></div></nz-tab><nz-tab><ng-template #nzTabHeading>\u65E0\u6CD5\u5339\u914D\u65F6\u56DE\u590D</ng-template><div><div nz-row class=\"row\"><div nz-col [nzSpan]=\"2\"><span>\u56DE\u590D\u5185\u5BB9:</span></div><div nz-col [nzSpan]=\"6\"><nz-input [(ngModel)]=\"inputValue\" [nzType]=\"'textarea'\" [nzRows]=\"'6'\" [nzPlaceHolder]=\"'\u8BF7\u8F93\u5165\u6807\u9898'\" [nzSize]=\"'large'\"></nz-input></div></div></div></nz-tab></nz-tabset><div *ngIf=\"nodeIndex !== 0\" style=\"margin-top:20px\"><button nz-button [nzType]=\"'primary'\" (click)=\"save()\"><span>\u4FDD \u5B58</span></button></div></ng-template></zx-content-block><zx-reply-dialog #replyDialog (clickSave)=\"onSave($event)\"></zx-reply-dialog>",
styles: [
"\n :host .row{\n padding: 10px 0 30px 0;\n border-bottom: 1px dotted #ccc;\n }\n :host .row > div > span{\n height: 32px;\n line-height: 32px;\n float: right;\n margin-right: 20px;\n }\n :host .row > div:nth-child(1) {\n width: 100px;\n }\n :host .row > div:nth-child(2) > a{\n margin-right: 10px\n }\n "
]
},] },
];
/** @nocollapse */
ReplyComponent.ctorParameters = function () { return [
{ type: core_1.Injector, },
]; };
ReplyComponent.propDecorators = {
"replyDialog": [{ type: core_1.ViewChild, args: ['replyDialog',] },],
};
return ReplyComponent;
}());
exports.ReplyComponent = ReplyComponent;
//# sourceMappingURL=reply.component.js.map