ZZJ
2022-06-01 f3bf27d9bc7c8c6484be4f37edcc57df5490ecbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
export default class AuthDataPool {
  public buttonAuthority: string;
  public serverTitle: string;
  public background: boolean = false;
  public static isLoginout: boolean = false;
  public loading: boolean;
  public loadObj: any;
 
  constructor() {
    this.buttonAuthority = sessionStorage.getItem('buttonAuthoritys') || '';
    this.serverTitle = sessionStorage.getItem('title') || '';
    this.loading = false;
    this.background = false;
    this.loadObj = undefined;
  }
  setLoading(domId = "routerView", vue: any) {
    // console.log(domId,this.loadObj,'setLoading')
    if (!this.loadObj) {
      this.loadObj = vue.$loading({
        target: document.getElementById(domId)
      })
    }
    // console.log(domId,this.loadObj,'setLoading') 
  }
 
  closeLoad() {
    if (this.loadObj) {
      this.loadObj.close();
      this.loadObj = undefined;
    }
  }
}