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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import ViewEngine from './view-engine';
/**
* 实体选择视图
*
* @export
* @class TabExpViewEngine
* @extends {ViewEngine}
*/
export default class TabExpViewEngine extends ViewEngine {
/**
* Creates an instance of TabExpViewEngine.
*
* @memberof TabExpViewEngine
*/
constructor() {
super();
}
/**
* 初始化引擎
*
* @param {*} options
* @memberof TabExpViewEngine
*/
public init(options: any): void {
super.init(options);
}
/**
* 引擎加载
*
* @memberof TabExpViewEngine
*/
public load(): void {
super.load();
Object.values(this.view.containerModel).forEach((_item: any) => {
if (!Object.is(_item.type, 'TABEXPPANEL')) {
return;
}
if(this.view.context && this.view.context[(this.keyPSDEField as string)]){
return;
}
this.setViewState2({ tag: _item.name, action: 'load', viewdata: this.view.context });
});
}
/**
* 计算按钮状态
*
* @memberof TabExpViewEngine
*/
public computeToolbarState(state:boolean,data:any){
this.calcToolbarItemState(state);
this.calcToolbarItemAuthState(data);
}
}