[{"__symbolic":"module","version":4,"metadata":{"MnsTemplateComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":59,"character":1},"arguments":[{"selector":"zx-mns-template","template":"<zx-header-block [title]=\"'消息模板定义'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\"><p>管理服务的消息模板定义</p></zx-header-block><zx-content-block><ng-template #operations><button nz-button [nzType]=\"'primary'\" (click)=\"insert()\"><i class=\"anticon anticon-plus\"></i> <span>添加模板</span></button></ng-template><ng-template #extra><nz-select style=\"width: 150px;\" [(ngModel)]=\"listView.params.serviceName\" [nzPlaceHolder]=\"'请选择服务'\" [nzSize]=\"'large'\" nzAllowClear (ngModelChange)=\"filter()\"><nz-option *ngFor=\"let option of serviceNameOptions\" [nzLabel]=\"option.text\" [nzValue]=\"option.value\"></nz-option></nz-select><nz-select style=\"width: 150px;\" [(ngModel)]=\"listView.params.kind\" [nzPlaceHolder]=\"'请选择分类'\" [nzSize]=\"'large'\" nzAllowClear (ngModelChange)=\"filter()\"><nz-option *ngFor=\"let option of mnsMessageKindOptions\" [nzLabel]=\"option.text\" [nzValue]=\"option.value\"></nz-option></nz-select><nz-input [nzType]=\"'search'\" [nzPlaceHolder]=\"'请输入ID、编码或名称查询'\" style=\"width: 250px;\" (nzOnSearch)=\"search($event)\" [nzSize]=\"'large'\"></nz-input></ng-template><ng-template #content><zx-list-view [listView]=\"listView\" (loadData)=\"loadAll()\"><ng-template #headColumn let-field=\"field\"><div *ngIf=\"field.name == 'code'\"><span><zx-list-view-th [field]=\"listView.fields['code']\"></zx-list-view-th></span><span>/</span> <span><zx-list-view-th [field]=\"listView.fields['name']\"></zx-list-view-th></span></div></ng-template><ng-template #dataColumn let-dataRow=\"dataRow\" let-field=\"field\" let-value=\"value\"><div *ngIf=\"field.name == 'code'\"><div><a [routerLink]=\"[dataRow.id]\">{{dataRow.code}}</a></div><div>{{dataRow.name}}</div></div><div *ngIf=\"field.name == 'serviceName'\"><div>{{formate(dataRow.serviceName)}}</div></div><div *ngIf=\"field.name == 'disabled'\"><nz-switch [(ngModel)]=\"dataRow.disabled\" (ngModelChange)=\"onSave(dataRow)\"><span checked=\"checked\">启用</span> <span unchecked>禁用</span></nz-switch></div></ng-template><ng-template #dataOperations let-dataRow=\"dataRow\"><a [routerLink]=\"[dataRow.id]\">详情</a> <a (click)=\"delete(dataRow)\">删除</a></ng-template></zx-list-view></ng-template></zx-content-block><zx-mns-template-dialog #mnsTemplateDialog (clickSave)=\"onSave($event)\"></zx-mns-template-dialog>","styles":["\n        :host .operation > a{\n            padding: 0 5px;\n        }\n\n        :host .operation > a::after{\n            content:\"|\";\n            padding-left: 15px;\n            color: #999;\n        }\n\n        :host .operation > a:last-child::after{\n            content:\"\";\n        }\n        "]}]}],"members":{"mnsTemplateDialog":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":82,"character":5},"arguments":["mnsTemplateDialog"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":88,"character":26},{"__symbolic":"reference","module":"ng-zorro-antd","name":"NzModalService","line":89,"character":29},{"__symbolic":"reference","module":"../../service/data-source.helper","name":"DataSourceHelper","line":90,"character":34},{"__symbolic":"reference","module":"@wjya/ngx-webapp-fx","name":"DataDictService","line":91,"character":33},{"__symbolic":"reference","module":"@wjya/ngx-webapp-fx","name":"DataCacheService","line":92,"character":27},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":93,"character":24},{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":94,"character":29}]}],"ngOnInit":[{"__symbolic":"method"}],"loadAll":[{"__symbolic":"method"}],"insert":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"onSave":[{"__symbolic":"method"}],"formate":[{"__symbolic":"method"}]}}}}]