dbweb-common
Version:
用`yarn add dbweb-common`安装,不要忘记修改`angular.json`里的 `architect\build\options\assets`,加上
28 lines (27 loc) • 1.05 kB
TypeScript
import { AfterViewInit, OnInit } from '@angular/core';
import { MatCheckboxChange } from '@angular/material';
import { IDept, CurrentService } from 'dbweb-core';
import { Observable } from 'rxjs';
import { BeforeSaveParam, BillComponent } from '../bill/bill.component';
import { UserBack, UserRole, RoleType, ColumnsWithLetter } from './back';
export declare class UserComponent implements OnInit, AfterViewInit {
private back;
private curr;
hostClass: boolean;
bill: BillComponent;
filterDeptList: Observable<IDept[]>;
validRoles: UserRole[];
roles: {
[key: string]: boolean;
};
roleLists: string[];
roleLitters: ColumnsWithLetter[];
readonly roleTypeAlways = RoleType.always;
constructor(back: UserBack, curr: CurrentService);
ngOnInit(): void;
beforeSave(selft: BillComponent): Observable<BeforeSaveParam>;
ngAfterViewInit(): void;
roleChange(event: MatCheckboxChange, roleName: string): void;
acronymFun(letter: string): void;
try(): void;
}