@ibiz-template/runtime 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +112 -39
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +25 -26
- package/out/engine/md-view.engine.d.ts +2 -0
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +4 -3
- package/out/interface/controller/controller/control/i-calendar-exp-bar.controller.d.ts +15 -0
- package/out/interface/controller/controller/control/i-calendar-exp-bar.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/control/i-calendar-exp-bar.controller.js +1 -0
- package/out/interface/controller/controller/control/i-calendar.controller.d.ts +24 -0
- package/out/interface/controller/controller/control/i-calendar.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/control/i-calendar.controller.js +1 -0
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts +1 -1
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree.controller.d.ts +0 -10
- package/out/interface/controller/controller/control/i-tree.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/index.d.ts +2 -0
- package/out/interface/controller/controller/control/index.d.ts.map +1 -1
- package/out/interface/controller/controller/control/index.js +2 -0
- package/out/interface/controller/event/control/i-calendar-exp-bar.event.d.ts +11 -0
- package/out/interface/controller/event/control/i-calendar-exp-bar.event.d.ts.map +1 -0
- package/out/interface/controller/event/control/i-calendar-exp-bar.event.js +1 -0
- package/out/interface/controller/event/control/i-calendar.event.d.ts +11 -0
- package/out/interface/controller/event/control/i-calendar.event.d.ts.map +1 -0
- package/out/interface/controller/event/control/i-calendar.event.js +1 -0
- package/out/interface/controller/event/control/i-tree.event.d.ts +19 -1
- package/out/interface/controller/event/control/i-tree.event.d.ts.map +1 -1
- package/out/interface/controller/event/control/index.d.ts +2 -0
- package/out/interface/controller/event/control/index.d.ts.map +1 -1
- package/out/interface/controller/event/control/index.js +2 -0
- package/out/interface/controller/event/view/i-calendar-exp-view.event.d.ts +11 -0
- package/out/interface/controller/event/view/i-calendar-exp-view.event.d.ts.map +1 -0
- package/out/interface/controller/event/view/i-calendar-exp-view.event.js +1 -0
- package/out/interface/controller/event/view/i-calendar-view.event.d.ts +12 -0
- package/out/interface/controller/event/view/i-calendar-view.event.d.ts.map +1 -0
- package/out/interface/controller/event/view/i-calendar-view.event.js +1 -0
- package/out/interface/controller/event/view/index.d.ts +2 -0
- package/out/interface/controller/event/view/index.d.ts.map +1 -1
- package/out/interface/controller/event/view/index.js +2 -0
- package/out/interface/controller/state/control/i-calendar-exp-bar.state.d.ts +11 -0
- package/out/interface/controller/state/control/i-calendar-exp-bar.state.d.ts.map +1 -0
- package/out/interface/controller/state/control/i-calendar-exp-bar.state.js +1 -0
- package/out/interface/controller/state/control/i-calendar.state.d.ts +162 -0
- package/out/interface/controller/state/control/i-calendar.state.d.ts.map +1 -0
- package/out/interface/controller/state/control/i-calendar.state.js +1 -0
- package/out/interface/controller/state/control/i-grid.state.d.ts +52 -0
- package/out/interface/controller/state/control/i-grid.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree.state.d.ts +9 -2
- package/out/interface/controller/state/control/i-tree.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/index.d.ts +2 -0
- package/out/interface/controller/state/control/index.d.ts.map +1 -1
- package/out/interface/controller/state/control/index.js +2 -0
- package/out/interface/controller/state/view/i-calendar-exp-view.state.d.ts +11 -0
- package/out/interface/controller/state/view/i-calendar-exp-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-calendar-exp-view.state.js +1 -0
- package/out/interface/controller/state/view/i-calendar-view.state.d.ts +11 -0
- package/out/interface/controller/state/view/i-calendar-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-calendar-view.state.js +1 -0
- package/out/interface/controller/state/view/index.d.ts +2 -0
- package/out/interface/controller/state/view/index.d.ts.map +1 -1
- package/out/interface/controller/state/view/index.js +2 -0
- package/out/model/layout/layout.d.ts.map +1 -1
- package/out/model/layout/layout.js +8 -2
- package/out/service/vo/calendar-item-data/calendar-item-data.d.ts +30 -0
- package/out/service/vo/calendar-item-data/calendar-item-data.d.ts.map +1 -0
- package/out/service/vo/calendar-item-data/calendar-item-data.js +76 -0
- package/out/service/vo/calendar-item-data/index.d.ts +2 -0
- package/out/service/vo/calendar-item-data/index.d.ts.map +1 -0
- package/out/service/vo/calendar-item-data/index.js +1 -0
- package/out/service/vo/index.d.ts +1 -0
- package/out/service/vo/index.d.ts.map +1 -1
- package/out/service/vo/index.js +1 -0
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +18 -16
- package/package.json +6 -6
- package/src/controller/common/control/md-control.controller.ts +28 -29
- package/src/engine/md-view.engine.ts +6 -3
- package/src/interface/controller/controller/control/i-calendar-exp-bar.controller.ts +19 -0
- package/src/interface/controller/controller/control/i-calendar.controller.ts +25 -0
- package/src/interface/controller/controller/control/i-tree-exp-bar.controller.ts +5 -1
- package/src/interface/controller/controller/control/i-tree.controller.ts +0 -11
- package/src/interface/controller/controller/control/index.ts +2 -0
- package/src/interface/controller/event/control/i-calendar-exp-bar.event.ts +10 -0
- package/src/interface/controller/event/control/i-calendar.event.ts +11 -0
- package/src/interface/controller/event/control/i-tree.event.ts +14 -1
- package/src/interface/controller/event/control/index.ts +2 -0
- package/src/interface/controller/event/view/i-calendar-exp-view.event.ts +11 -0
- package/src/interface/controller/event/view/i-calendar-view.event.ts +12 -0
- package/src/interface/controller/event/view/index.ts +2 -0
- package/src/interface/controller/state/control/i-calendar-exp-bar.state.ts +10 -0
- package/src/interface/controller/state/control/i-calendar.state.ts +172 -0
- package/src/interface/controller/state/control/i-grid.state.ts +58 -0
- package/src/interface/controller/state/control/i-tree.state.ts +10 -2
- package/src/interface/controller/state/control/index.ts +2 -0
- package/src/interface/controller/state/view/i-calendar-exp-view.state.ts +10 -0
- package/src/interface/controller/state/view/i-calendar-view.state.ts +10 -0
- package/src/interface/controller/state/view/index.ts +2 -0
- package/src/model/layout/layout.ts +6 -2
- package/src/service/vo/calendar-item-data/calendar-item-data.ts +94 -0
- package/src/service/vo/calendar-item-data/index.ts +1 -0
- package/src/service/vo/index.ts +1 -0
- package/src/utils/open-redirect-view/open-redirect-view.ts +18 -16
|
@@ -13,17 +13,6 @@ import { IMDControlController } from './i-md-control.controller';
|
|
|
13
13
|
*/
|
|
14
14
|
export interface ITreeController
|
|
15
15
|
extends IMDControlController<IDETree, ITreeState, ITreeEvent> {
|
|
16
|
-
/**
|
|
17
|
-
* 设置展开节点
|
|
18
|
-
*
|
|
19
|
-
* @author zk
|
|
20
|
-
* @date 2023-07-10 08:07:36
|
|
21
|
-
* @param {string[]} nodeKey
|
|
22
|
-
* @param {boolean} isExpanded
|
|
23
|
-
* @memberof ITreeController
|
|
24
|
-
*/
|
|
25
|
-
setExpandedKeys(nodeKeys: string[], isReplace?: boolean): void;
|
|
26
|
-
|
|
27
16
|
/**
|
|
28
17
|
* 树节点点击事件
|
|
29
18
|
*
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ITreeNodeData } from '../../state';
|
|
2
|
+
import { EventBase } from '../argument';
|
|
1
3
|
import { IMDControlEvent } from './i-md-control.event';
|
|
2
4
|
|
|
3
5
|
/**
|
|
@@ -8,4 +10,15 @@ import { IMDControlEvent } from './i-md-control.event';
|
|
|
8
10
|
* @export
|
|
9
11
|
* @interface IMDControlEvent
|
|
10
12
|
*/
|
|
11
|
-
export
|
|
13
|
+
export interface ITreeEvent extends IMDControlEvent {
|
|
14
|
+
/**
|
|
15
|
+
* 数据激活事件
|
|
16
|
+
*
|
|
17
|
+
* @author lxm
|
|
18
|
+
* @date 2022-08-31 14:08:22
|
|
19
|
+
*/
|
|
20
|
+
onActive: {
|
|
21
|
+
event: EventBase & { nodeData: ITreeNodeData };
|
|
22
|
+
emitArgs: { data: IData[]; nodeData: ITreeNodeData };
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -33,3 +33,5 @@ export * from './i-wf-step-trace-view.event';
|
|
|
33
33
|
export * from './i-portal-view.event';
|
|
34
34
|
export * from './i-app-portal-view.event';
|
|
35
35
|
export * from './i-de-portal-view.event';
|
|
36
|
+
export * from './i-calendar-view.event';
|
|
37
|
+
export * from './i-calendar-exp-view.event';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IExpBarControlState } from './i-exp-bar-control.state';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 日历导航栏部件状态
|
|
5
|
+
* @author zk
|
|
6
|
+
* @export
|
|
7
|
+
* @interface ICalendarExpBarState
|
|
8
|
+
* @extends {IExpBarControlState}
|
|
9
|
+
*/
|
|
10
|
+
export interface ICalendarExpBarState extends IExpBarControlState {}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { IMDControlState } from './i-md-control.state';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 日历部件状态
|
|
5
|
+
* @author zk
|
|
6
|
+
* @date 2023-05-22 02:18:43
|
|
7
|
+
* @export
|
|
8
|
+
* @interface ICalendarState
|
|
9
|
+
* @extends {IMDControlState}
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export interface ICalendarState extends IMDControlState {
|
|
13
|
+
/**
|
|
14
|
+
* 多数据部件数据集合
|
|
15
|
+
* @author lxm
|
|
16
|
+
* @date 2022-08-17 19:08:11
|
|
17
|
+
* @type {IData[]}
|
|
18
|
+
*/
|
|
19
|
+
items: ICalendarItemData[];
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 选中的日期
|
|
23
|
+
*
|
|
24
|
+
* @author zk
|
|
25
|
+
* @date 2023-08-08 07:08:39
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof ICalendarState
|
|
28
|
+
*/
|
|
29
|
+
selectedDate: Date;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 日历项数据
|
|
34
|
+
*
|
|
35
|
+
* @author zk
|
|
36
|
+
* @date 2023-08-08 01:08:52
|
|
37
|
+
* @export
|
|
38
|
+
* @interface ICalendarItemData
|
|
39
|
+
*/
|
|
40
|
+
export interface ICalendarItemData {
|
|
41
|
+
/**
|
|
42
|
+
* 背景色
|
|
43
|
+
*
|
|
44
|
+
* @author zk
|
|
45
|
+
* @date 2023-08-08 01:08:17
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ICalendarItemData
|
|
48
|
+
*/
|
|
49
|
+
bkColor: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 开始时间
|
|
53
|
+
*
|
|
54
|
+
* @date 2023-08-08 01:08:46
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ICalendarItemData
|
|
57
|
+
*/
|
|
58
|
+
beginTime: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 颜色
|
|
62
|
+
*
|
|
63
|
+
* @date 2023-08-08 01:08:46
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ICalendarItemData
|
|
66
|
+
*/
|
|
67
|
+
color: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* 内容
|
|
71
|
+
*
|
|
72
|
+
* @date 2023-08-08 01:08:46
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ICalendarItemData
|
|
75
|
+
*/
|
|
76
|
+
content: string;
|
|
77
|
+
/**
|
|
78
|
+
* 结束时间
|
|
79
|
+
*
|
|
80
|
+
* @date 2023-08-08 01:08:46
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ICalendarItemData
|
|
83
|
+
*/
|
|
84
|
+
endTime: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* 图标
|
|
88
|
+
*
|
|
89
|
+
* @date 2023-08-08 01:08:46
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof ICalendarItemData
|
|
92
|
+
*/
|
|
93
|
+
icon: string;
|
|
94
|
+
/**
|
|
95
|
+
* id标识
|
|
96
|
+
*
|
|
97
|
+
* @date 2023-08-08 01:08:46
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof ICalendarItemData
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
102
|
+
/**
|
|
103
|
+
* 级别
|
|
104
|
+
*
|
|
105
|
+
* @date 2023-08-08 01:08:46
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof ICalendarItemData
|
|
108
|
+
*/
|
|
109
|
+
level: string;
|
|
110
|
+
/**
|
|
111
|
+
* 标记2
|
|
112
|
+
*
|
|
113
|
+
* @date 2023-08-08 01:08:46
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof ICalendarItemData
|
|
116
|
+
*/
|
|
117
|
+
tag2: string;
|
|
118
|
+
/**
|
|
119
|
+
* 标记1
|
|
120
|
+
*
|
|
121
|
+
* @date 2023-08-08 01:08:46
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof ICalendarItemData
|
|
124
|
+
*/
|
|
125
|
+
tag: string;
|
|
126
|
+
/**
|
|
127
|
+
* 文本
|
|
128
|
+
*
|
|
129
|
+
* @date 2023-08-08 01:08:46
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof ICalendarItemData
|
|
132
|
+
*/
|
|
133
|
+
text: string;
|
|
134
|
+
/**
|
|
135
|
+
* 提示
|
|
136
|
+
*
|
|
137
|
+
* @date 2023-08-08 01:08:46
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof ICalendarItemData
|
|
140
|
+
*/
|
|
141
|
+
tips: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* 实体数据
|
|
145
|
+
*
|
|
146
|
+
* @author zk
|
|
147
|
+
* @date 2023-08-08 01:08:12
|
|
148
|
+
* @type {IData}
|
|
149
|
+
* @memberof ICalendarItemData
|
|
150
|
+
*/
|
|
151
|
+
deData: IData;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* 日历项名称
|
|
155
|
+
*
|
|
156
|
+
* @author zk
|
|
157
|
+
* @date 2023-08-08 01:08:12
|
|
158
|
+
* @type {IData}
|
|
159
|
+
* @memberof ICalendarItemData
|
|
160
|
+
*/
|
|
161
|
+
itemType: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* 导航标识
|
|
165
|
+
*
|
|
166
|
+
* @author zk
|
|
167
|
+
* @date 2023-08-08 04:08:25
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof ICalendarItemData
|
|
170
|
+
*/
|
|
171
|
+
navId: string;
|
|
172
|
+
}
|
|
@@ -11,6 +11,31 @@ export interface IGridState extends IMDControlState {
|
|
|
11
11
|
* @type {IGridRowState[]}
|
|
12
12
|
*/
|
|
13
13
|
rows: IGridRowState[];
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 表格列状态数组
|
|
17
|
+
* 顺序就是列的排序
|
|
18
|
+
* @author lxm
|
|
19
|
+
* @date 2023-08-04 07:08:16
|
|
20
|
+
* @type {IColumnState[]}
|
|
21
|
+
*/
|
|
22
|
+
columnStates: IColumnState[];
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 聚合计算的结果
|
|
26
|
+
* @author lxm
|
|
27
|
+
* @date 2023-08-07 04:09:08
|
|
28
|
+
* @type {IData}
|
|
29
|
+
*/
|
|
30
|
+
aggResult: IData;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 远程聚合计算结果
|
|
34
|
+
* @author lxm
|
|
35
|
+
* @date 2023-08-07 05:36:54
|
|
36
|
+
* @type {IData}
|
|
37
|
+
*/
|
|
38
|
+
remoteAggResult?: IData;
|
|
14
39
|
}
|
|
15
40
|
|
|
16
41
|
export interface IGridRowState {
|
|
@@ -82,3 +107,36 @@ export interface IGridRowState {
|
|
|
82
107
|
*/
|
|
83
108
|
processing: boolean;
|
|
84
109
|
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* 表格列状态
|
|
113
|
+
* @author lxm
|
|
114
|
+
* @date 2023-08-04 07:19:02
|
|
115
|
+
* @export
|
|
116
|
+
* @interface IColumnState
|
|
117
|
+
*/
|
|
118
|
+
export interface IColumnState {
|
|
119
|
+
/**
|
|
120
|
+
* 列标识,是列模型的codeName
|
|
121
|
+
* @author lxm
|
|
122
|
+
* @date 2023-08-04 07:16:07
|
|
123
|
+
* @type {string}
|
|
124
|
+
*/
|
|
125
|
+
key: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* 列的中文标题
|
|
129
|
+
* @author lxm
|
|
130
|
+
* @date 2023-08-04 07:17:57
|
|
131
|
+
* @type {string}
|
|
132
|
+
*/
|
|
133
|
+
caption: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* 显示隐藏
|
|
137
|
+
* @author lxm
|
|
138
|
+
* @date 2023-08-04 07:18:47
|
|
139
|
+
* @type {boolean}
|
|
140
|
+
*/
|
|
141
|
+
hidden: boolean;
|
|
142
|
+
}
|
|
@@ -16,16 +16,24 @@ export interface ITreeState extends IMDControlState {
|
|
|
16
16
|
* @type {ITreeNodeData}
|
|
17
17
|
* @memberof TreeState
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
rootNodes: ITreeNodeData[];
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 外部提供的默认展开的节点集合
|
|
23
23
|
*
|
|
24
24
|
* @author zk
|
|
25
25
|
* @date 2023-07-10 08:07:25
|
|
26
26
|
* @type {string[]}
|
|
27
27
|
* @memberof ITreeState
|
|
28
28
|
*/
|
|
29
|
+
defaultExpandedKeys: string[];
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 实际默认展开节点集合
|
|
33
|
+
* @author lxm
|
|
34
|
+
* @date 2023-08-09 05:06:56
|
|
35
|
+
* @type {string[]}
|
|
36
|
+
*/
|
|
29
37
|
expandedKeys: string[];
|
|
30
38
|
|
|
31
39
|
/**
|
|
@@ -19,7 +19,9 @@ export function calcLayoutHeightWidth(layoutPos: ILayoutPos): {
|
|
|
19
19
|
if (widthMode === 'FULL') {
|
|
20
20
|
result.width = '100%';
|
|
21
21
|
} else if (width && width > 0) {
|
|
22
|
-
if (
|
|
22
|
+
if (width > 0 && width <= 1) {
|
|
23
|
+
result.width = `${width * 100}%`;
|
|
24
|
+
} else if (widthMode === 'PERCENTAGE') {
|
|
23
25
|
result.width = `${width}%`;
|
|
24
26
|
} else {
|
|
25
27
|
result.width = `${width}px`;
|
|
@@ -28,7 +30,9 @@ export function calcLayoutHeightWidth(layoutPos: ILayoutPos): {
|
|
|
28
30
|
if (heightMode === 'FULL') {
|
|
29
31
|
result.height = '100%';
|
|
30
32
|
} else if (height && height > 0) {
|
|
31
|
-
if (
|
|
33
|
+
if (height > 0 && height <= 1) {
|
|
34
|
+
result.height = `${height * 100}%`;
|
|
35
|
+
} else if (heightMode === 'PERCENTAGE') {
|
|
32
36
|
result.height = `${height}%`;
|
|
33
37
|
} else {
|
|
34
38
|
result.height = `${height}px`;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ISysCalendarItem } from '@ibiz/model-core';
|
|
2
|
+
import { ICalendarItemData } from '../../../interface';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 日历项数据
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class CalendarItemData
|
|
9
|
+
* @implements {ICalendarItemData}
|
|
10
|
+
*/
|
|
11
|
+
export class CalendarItemData implements ICalendarItemData {
|
|
12
|
+
constructor(
|
|
13
|
+
private model: ISysCalendarItem,
|
|
14
|
+
private data: IData,
|
|
15
|
+
) {}
|
|
16
|
+
|
|
17
|
+
get deData(): IData {
|
|
18
|
+
return this.data;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get navId(): string {
|
|
22
|
+
return `${this.itemType}@${this.id}`;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
get itemType(): string {
|
|
26
|
+
return this.model.itemType!;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get bkColor(): string {
|
|
30
|
+
const fieldName = this.model.bkcolorAppDEFieldId;
|
|
31
|
+
return fieldName && this.data[fieldName]
|
|
32
|
+
? this.data[fieldName]
|
|
33
|
+
: this.model.bkcolor;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
get beginTime(): string {
|
|
37
|
+
const fieldName = this.model.beginTimeAppDEFieldId;
|
|
38
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
get color(): string {
|
|
42
|
+
const fieldName = this.model.colorAppDEFieldId;
|
|
43
|
+
return fieldName && this.data[fieldName]
|
|
44
|
+
? this.data[fieldName]
|
|
45
|
+
: this.model.color;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
get content(): string {
|
|
49
|
+
const fieldName = this.model.contentAppDEFieldId;
|
|
50
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
get endTime(): string {
|
|
54
|
+
const fieldName = this.model.endTimeAppDEFieldId;
|
|
55
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
get icon(): string {
|
|
59
|
+
const fieldName = this.model.iconAppDEFieldId;
|
|
60
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
get id(): string {
|
|
64
|
+
const fieldName = this.model.idAppDEFieldId;
|
|
65
|
+
return fieldName && this.data[fieldName]
|
|
66
|
+
? this.data[fieldName]
|
|
67
|
+
: this.data.srfkey;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
get level(): string {
|
|
71
|
+
const fieldName = this.model.levelAppDEFieldId;
|
|
72
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
get tag2(): string {
|
|
76
|
+
const fieldName = this.model.tag2AppDEFieldId;
|
|
77
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get tag(): string {
|
|
81
|
+
const fieldName = this.model.tagAppDEFieldId;
|
|
82
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
get text(): string {
|
|
86
|
+
const fieldName = this.model.textAppDEFieldId;
|
|
87
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
get tips(): string {
|
|
91
|
+
const fieldName = this.model.tipsAppDEFieldId;
|
|
92
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar-item-data';
|
package/src/service/vo/index.ts
CHANGED
|
@@ -223,7 +223,7 @@ export async function openDERedirectView(
|
|
|
223
223
|
);
|
|
224
224
|
throw new RuntimeModelError(
|
|
225
225
|
appView,
|
|
226
|
-
`未找到重定向标识[${rdTag}]或[${deRdTag}]
|
|
226
|
+
`未找到重定向标识[${rdTag}]或[${deRdTag}]或工作流[${wfRdTag}]对应视图`,
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
229
|
return { ok: true, data: [] };
|
|
@@ -248,16 +248,6 @@ export async function calcDERdTag(
|
|
|
248
248
|
data: IData,
|
|
249
249
|
): Promise<string> {
|
|
250
250
|
let rdTag = '';
|
|
251
|
-
// 重定向视图自定义类别属性
|
|
252
|
-
const typeFieldId = rdView.typeAppDEFieldId;
|
|
253
|
-
// 自定义重定向
|
|
254
|
-
if (typeFieldId) {
|
|
255
|
-
const { codeName } = findFieldById(entity, typeFieldId)!;
|
|
256
|
-
const value = data[codeName!.toLowerCase()];
|
|
257
|
-
if (notNilEmpty(value)) {
|
|
258
|
-
return value;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
251
|
const defView = `${ibiz.env.isMob ? 'MOB' : ''}EDITVIEW`;
|
|
262
252
|
// 如果流程步骤存在,按照工作流优先
|
|
263
253
|
const srfWf = params.srfwf;
|
|
@@ -268,10 +258,22 @@ export async function calcDERdTag(
|
|
|
268
258
|
return `${defView}:${srfWf.toUpperCase()}`;
|
|
269
259
|
}
|
|
270
260
|
let typeValue = '';
|
|
271
|
-
//
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
261
|
+
// 重定向视图自定义类别属性
|
|
262
|
+
const typeFieldId = rdView.typeAppDEFieldId;
|
|
263
|
+
// 自定义重定向
|
|
264
|
+
if (typeFieldId) {
|
|
265
|
+
const { codeName } = findFieldById(entity, typeFieldId)!;
|
|
266
|
+
const value = data[codeName!.toLowerCase()];
|
|
267
|
+
if (notNilEmpty(value)) {
|
|
268
|
+
typeValue = value;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
if (isNilOrEmpty(typeValue)) {
|
|
272
|
+
// 从索引属性获取重定向视图类型
|
|
273
|
+
if (entity.indexTypeAppDEFieldId) {
|
|
274
|
+
const { codeName } = findFieldById(entity, entity.indexTypeAppDEFieldId)!;
|
|
275
|
+
typeValue = data[codeName!.toLowerCase()];
|
|
276
|
+
}
|
|
275
277
|
}
|
|
276
278
|
if (isNilOrEmpty(typeValue)) {
|
|
277
279
|
// 从多表单属性判断重定向视图类型
|
|
@@ -281,7 +283,7 @@ export async function calcDERdTag(
|
|
|
281
283
|
}
|
|
282
284
|
}
|
|
283
285
|
if (notNilEmpty(typeValue)) {
|
|
284
|
-
rdTag = `${defView}:${typeValue}`;
|
|
286
|
+
rdTag = `${defView}:${typeValue.toUpperCase()}`;
|
|
285
287
|
} else {
|
|
286
288
|
rdTag = `${defView}`;
|
|
287
289
|
}
|