@wjya/ngx-webapp-icpc.group.pms
Version:
angular webapp : icpc.group.pms
1 lines • 3.32 kB
JSON
[{"__symbolic":"module","version":4,"metadata":{"SmsSubscribeComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"zx-sms-subscribe","template":"<zx-header-block [title]=\"'短信订阅'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\"><p>编辑短信通知服务内容</p></zx-header-block><zx-content-block><ng-template #title><div style=\"font-weight: normal\"><i class=\"anticon anticon-rocket\"></i> <span>订阅管理</span></div></ng-template><ng-template #content><div nz-row *ngFor=\"let item of data\" class=\"row\"><div nz-col [nzSpan]=\"8\"><span style=\"vertical-align: middle;\">{{item.sub.name}}:</span><nz-switch [(ngModel)]=\"item.hasOpen\" (ngModelChange)=\"turnOnOrOff(item)\"><span checked=\"checked\">开启</span> <span unchecked>关闭</span></nz-switch></div><div nz-col [nzSpan]=\"11\" class=\"box\"><span style=\"vertical-align: top;\">短信推送手机:</span> <span *ngIf=\"!item.edit\" style=\"word-wrap: break-word;width: calc(100% - 242px);\">{{formatValue(item.targetPhones)}}</span><nz-select [nzMode]=\"'tags'\" [nzPlaceHolder]=\"'请选择人员'\" [nzSize]=\"'large'\" [(ngModel)]=\"item.phones\" style=\"width:calc(100% - 250px)\" *ngIf=\"item.edit\"><nz-option *ngFor=\"let option of item.targetPhones\" [nzLabel]=\"option\" [nzValue]=\"option\"></nz-option></nz-select><span style=\"vertical-align: top;\"><span (click)=\"item.edit = !item.edit\" *ngIf=\"!item.edit\"><i class=\"anticon anticon-edit\"></i> <a>修改</a> </span><span (click)=\"onSave(item)\" *ngIf=\"item.edit\"><i class=\"anticon anticon-save\"></i> <a>保存</a> </span><span (click)=\"item.edit = !item.edit\" *ngIf=\"item.edit\" style=\"margin-left:10px;\"><i class=\"anticon anticon-reload\"></i> <a>取消</a></span></span></div><div nz-col [nzSpan]=\"24\" class=\"tip\"><pre style=\"font-size: 13px;line-height: 14px;\">{{item.sub.detail}}</pre></div></div></ng-template></zx-content-block>","styles":["\n :host .row{\n margin-bottom:40px;\n }\n :host .row:last-child{\n margin-bottom:0;\n }\n :host .tip{\n margin-top:10px;\n color: #aaa;\n }\n :host .tip > p{\n margin:3px 0;\n }\n :host .box{\n height:32px;\n }\n :host .box > span{\n height: 32px;\n display: inline-block;\n vertical-align: bottom;\n line-height: 32px;\n }\n :host .box > span:nth-child(3) {\n color:#108ee9;\n margin-left:4px;\n }\n "]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@wjya/ngx-webapp-fx","name":"UserStorageService","line":48,"character":36},{"__symbolic":"reference","module":"./../../service/data-source.helper","name":"DataSourceHelper","line":49,"character":34},{"__symbolic":"reference","module":"ng-zorro-antd","name":"NzMessageService","line":50,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"loadAll":[{"__symbolic":"method"}],"onSave":[{"__symbolic":"method"}],"turnOnOrOff":[{"__symbolic":"method"}],"formatValue":[{"__symbolic":"method"}]}}}}]