smallLevelItem.ts 367 B

1234567891011121314151617181920
  1. import { Utils } from "../common/utils";
  2. interface ISmallLevelItem {
  3. nest: string;
  4. }
  5. export class SmallLevelItem {
  6. id: number;
  7. data: ISmallLevelItem;
  8. constructor(id, data){
  9. this.id = id;
  10. this.data = data;
  11. }
  12. getNestId(){
  13. let arr = Utils.str2arr(this.data.nest+"", ';');
  14. return arr;
  15. }
  16. }