@ibiz-template/runtime 0.7.41-alpha.6 → 0.7.41-alpha.8
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 +1202 -754
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +1 -0
- package/out/constant/index.d.ts +1 -0
- package/out/constant/index.d.ts.map +1 -1
- package/out/constant/index.js +1 -0
- package/out/constant/predefined-control-render.d.ts +16 -0
- package/out/constant/predefined-control-render.d.ts.map +1 -0
- package/out/constant/predefined-control-render.js +17 -0
- package/out/controller/common/control/control.controller.d.ts.map +1 -1
- package/out/controller/common/control/control.controller.js +4 -1
- package/out/controller/common/editor/editor.controller.d.ts +8 -0
- package/out/controller/common/editor/editor.controller.d.ts.map +1 -1
- package/out/controller/common/editor/editor.controller.js +15 -0
- package/out/controller/control/chart/generator/index.d.ts +12 -0
- package/out/controller/control/chart/generator/index.d.ts.map +1 -0
- package/out/controller/control/chart/generator/index.js +11 -0
- package/out/controller/control/chart/index.d.ts +1 -0
- package/out/controller/control/chart/index.d.ts.map +1 -1
- package/out/controller/control/chart/index.js +1 -0
- package/out/controller/control/data-view/data-view.controller.d.ts +9 -11
- package/out/controller/control/data-view/data-view.controller.d.ts.map +1 -1
- package/out/controller/control/data-view/data-view.controller.js +30 -37
- package/out/controller/control/form/edit-form/edit-form.service.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.service.js +5 -1
- package/out/controller/control/kanban/kanban.controller.d.ts +39 -12
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +168 -53
- package/out/controller/control/tree/tree.controller.d.ts +17 -2
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +79 -3
- package/out/controller/control/tree/tree.service.d.ts +75 -0
- package/out/controller/control/tree/tree.service.d.ts.map +1 -1
- package/out/controller/control/tree/tree.service.js +145 -8
- package/out/controller/ctx/ctx.js +2 -2
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +7 -0
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
- package/out/interface/api/controller/common/i-api-mask-option.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts +1 -0
- package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts +2 -0
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts.map +1 -1
- package/out/interface/common/i-modal/i-modal.d.ts +3 -0
- package/out/interface/common/i-modal/i-modal.d.ts.map +1 -1
- package/out/interface/controller/controller/common/i-drag-change-info.d.ts +22 -14
- package/out/interface/controller/controller/common/i-drag-change-info.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-data-view-control.state.d.ts +8 -0
- package/out/interface/controller/state/control/i-data-view-control.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-kanban.state.d.ts +43 -8
- package/out/interface/controller/state/control/i-kanban.state.d.ts.map +1 -1
- package/out/interface/util/i-app-util/i-app-util.d.ts +6 -0
- package/out/interface/util/i-app-util/i-app-util.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +1 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +1 -0
- package/out/locale/zh-CN/index.d.ts +1 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +1 -0
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +2 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.js +1 -1
- package/out/ui-action/provider/custom-ui-action-provider.js +1 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +54 -40
- package/out/ui-action/provider/ui-action-provider-base.d.ts +1 -0
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +14 -2
- package/out/ui-action/uiaction-util.js +2 -2
- package/out/ui-logic/ui-logic.d.ts.map +1 -1
- package/out/ui-logic/ui-logic.js +5 -1
- package/out/utils/handlebars/helpers/abs/abs.d.ts +14 -0
- package/out/utils/handlebars/helpers/abs/abs.d.ts.map +1 -0
- package/out/utils/handlebars/helpers/abs/abs.js +19 -0
- package/out/utils/handlebars/helpers/index.d.ts.map +1 -1
- package/out/utils/handlebars/helpers/index.js +2 -0
- package/out/utils/handlebars/utils/helper/helper.d.ts.map +1 -1
- package/out/utils/handlebars/utils/helper/helper.js +1 -0
- package/out/utils/modal/modal.d.ts +3 -0
- package/out/utils/modal/modal.d.ts.map +1 -1
- package/out/utils/modal/modal.js +7 -0
- package/package.json +5 -5
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
/* eslint-disable no-restricted-globals */
|
|
1
3
|
/* eslint-disable no-nested-ternary */
|
|
2
4
|
/* eslint-disable prefer-destructuring */
|
|
3
|
-
import { RuntimeError, RuntimeModelError } from '@ibiz-template/core';
|
|
5
|
+
import { DataTypes, RuntimeError, RuntimeModelError, } from '@ibiz-template/core';
|
|
4
6
|
import { clone, isNil } from 'ramda';
|
|
5
7
|
import { calcDeCodeNameById } from '../../../model';
|
|
6
8
|
import { DataViewControlController } from '../data-view';
|
|
7
9
|
import { KanbanService } from './kanban.service';
|
|
8
10
|
import { UIActionUtil } from '../../../ui-action';
|
|
9
|
-
import { ButtonContainerState, UIActionButtonState } from '../../utils';
|
|
10
11
|
export class KanbanController extends DataViewControlController {
|
|
11
12
|
/**
|
|
12
13
|
* 允许调整顺序
|
|
@@ -28,6 +29,32 @@ export class KanbanController extends DataViewControlController {
|
|
|
28
29
|
get enableEditGroup() {
|
|
29
30
|
return this.model.enableCardEditGroup === true;
|
|
30
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* @description 拖拽模式
|
|
34
|
+
* @readonly
|
|
35
|
+
* @type {(0 | 1 | 2 | 3)} (无 | 仅分组 | 仅泳道 | 全部)
|
|
36
|
+
* @memberof KanbanController
|
|
37
|
+
*/
|
|
38
|
+
get draggableMode() {
|
|
39
|
+
if (this.controlParams.draggablemode) {
|
|
40
|
+
const draggablemode = Number(this.controlParams.draggablemode);
|
|
41
|
+
if (!isNaN(draggablemode))
|
|
42
|
+
return draggablemode;
|
|
43
|
+
}
|
|
44
|
+
return 3;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @description 获取泳道描述
|
|
48
|
+
* @readonly
|
|
49
|
+
* @type {(string | undefined)}
|
|
50
|
+
* @memberof KanbanController
|
|
51
|
+
*/
|
|
52
|
+
get laneDescription() {
|
|
53
|
+
var _a;
|
|
54
|
+
if (this.controlParams.lanedescription)
|
|
55
|
+
return this.controlParams.lanedescription;
|
|
56
|
+
return (_a = this.dataEntity) === null || _a === void 0 ? void 0 : _a.logicName;
|
|
57
|
+
}
|
|
31
58
|
async initControlService() {
|
|
32
59
|
this.service = new KanbanService(this.model);
|
|
33
60
|
await this.service.init(this.context);
|
|
@@ -41,7 +68,7 @@ export class KanbanController extends DataViewControlController {
|
|
|
41
68
|
this.state.readonly = !!(this.context.srfreadonly === true || this.context.srfreadonly === 'true');
|
|
42
69
|
// 支持调整顺序和分组时
|
|
43
70
|
this.state.draggable = this.enableEditOrder || this.enableEditGroup;
|
|
44
|
-
this.state.
|
|
71
|
+
this.state.lanes = [];
|
|
45
72
|
}
|
|
46
73
|
/**
|
|
47
74
|
* 初始化
|
|
@@ -54,6 +81,14 @@ export class KanbanController extends DataViewControlController {
|
|
|
54
81
|
await super.onCreated();
|
|
55
82
|
this.setToolbarHooks();
|
|
56
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* @description 执行分组
|
|
86
|
+
* @param {IApiMDGroupParams[]} _arg
|
|
87
|
+
* @param {IParams} [_params]
|
|
88
|
+
* @returns {*} {Promise<void>}
|
|
89
|
+
* @memberof KanbanController
|
|
90
|
+
*/
|
|
91
|
+
async execGroup(_arg, _params) { }
|
|
57
92
|
/**
|
|
58
93
|
* 本地排序items
|
|
59
94
|
* @author lxm
|
|
@@ -61,13 +96,24 @@ export class KanbanController extends DataViewControlController {
|
|
|
61
96
|
* @param {IData[]} items
|
|
62
97
|
*/
|
|
63
98
|
sortItems(items) {
|
|
99
|
+
var _a;
|
|
64
100
|
const sortField = this.model.minorSortAppDEFieldId;
|
|
65
101
|
const { minorSortDir } = this.model;
|
|
66
102
|
if (!sortField) {
|
|
67
|
-
|
|
103
|
+
this.state.draggable = false;
|
|
104
|
+
ibiz.log.warn(ibiz.i18n.t('runtime.controller.control.kanban.sortingProperties'));
|
|
105
|
+
return;
|
|
68
106
|
}
|
|
69
107
|
if (!minorSortDir) {
|
|
70
|
-
|
|
108
|
+
this.state.draggable = false;
|
|
109
|
+
ibiz.log.warn(ibiz.i18n.t('runtime.controller.control.kanban.sortDirection'));
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const sortFieldItem = (_a = this.dataEntity.appDEFields) === null || _a === void 0 ? void 0 : _a.find(_item => _item.codeName === sortField);
|
|
113
|
+
if (!sortFieldItem || !DataTypes.isNumber(sortFieldItem.stdDataType)) {
|
|
114
|
+
this.state.draggable = false;
|
|
115
|
+
ibiz.log.warn(ibiz.i18n.t('runtime.controller.control.kanban.invalidSortType'));
|
|
116
|
+
return;
|
|
71
117
|
}
|
|
72
118
|
const isAsc = minorSortDir === 'ASC';
|
|
73
119
|
// 格式化排序属性的值
|
|
@@ -89,37 +135,10 @@ export class KanbanController extends DataViewControlController {
|
|
|
89
135
|
items.sort((a, b) => isAsc ? a[sortField] - b[sortField] : b[sortField] - a[sortField]);
|
|
90
136
|
}
|
|
91
137
|
async afterLoad(args, items) {
|
|
92
|
-
var _a;
|
|
93
138
|
// 每次加载回来先本地排序,把数据的排序属性规范一下
|
|
94
139
|
this.sortItems(this.state.items);
|
|
95
140
|
super.afterLoad(args, items);
|
|
96
|
-
|
|
97
|
-
(_a = this.model.dedataViewItems) === null || _a === void 0 ? void 0 : _a.forEach((item) => {
|
|
98
|
-
if (item.itemType === 'ACTIONITEM') {
|
|
99
|
-
if (item.deuiactionGroup && item.deuiactionGroup.uiactionGroupDetails) {
|
|
100
|
-
actions.push(...item.deuiactionGroup.uiactionGroupDetails);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
if (actions && actions.length > 0) {
|
|
105
|
-
items.forEach((item) => {
|
|
106
|
-
const containerState = new ButtonContainerState();
|
|
107
|
-
actions.forEach((action) => {
|
|
108
|
-
const actionid = action.uiactionId;
|
|
109
|
-
if (actionid) {
|
|
110
|
-
const buttonState = new UIActionButtonState(action.id, this.context.srfappid, actionid);
|
|
111
|
-
containerState.addState(action.id, buttonState);
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
this.state.uaState[item.srfkey] = containerState;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
items.forEach((item) => {
|
|
118
|
-
if (this.state.uaState[item.srfkey] &&
|
|
119
|
-
Object.keys(this.state.uaState[item.srfkey]).length > 0) {
|
|
120
|
-
this.state.uaState[item.srfkey].update(this.context, item.getOrigin(), this.model.appDataEntityId);
|
|
121
|
-
}
|
|
122
|
-
});
|
|
141
|
+
this.handleLaneData();
|
|
123
142
|
return items;
|
|
124
143
|
}
|
|
125
144
|
/**
|
|
@@ -148,42 +167,62 @@ export class KanbanController extends DataViewControlController {
|
|
|
148
167
|
super.onRowClick(data);
|
|
149
168
|
}
|
|
150
169
|
/**
|
|
151
|
-
*
|
|
152
|
-
*
|
|
170
|
+
* @description 点击新建并设置设置选中分组
|
|
153
171
|
* @param {MouseEvent} event
|
|
154
|
-
* @param {(string | number)} group
|
|
172
|
+
* @param {(string | number)} group 分组
|
|
173
|
+
* @param {IKanbanLane} [lane] 泳道
|
|
155
174
|
* @memberof KanbanController
|
|
156
175
|
*/
|
|
157
|
-
onClickNew(event, group) {
|
|
176
|
+
onClickNew(event, group, lane) {
|
|
158
177
|
this.setSelectGroup(group);
|
|
159
|
-
|
|
178
|
+
const params = Object.assign(Object.assign({}, this.params), { srfgroup: group });
|
|
179
|
+
if (lane)
|
|
180
|
+
Object.assign(params, { srflane: lane.key });
|
|
181
|
+
UIActionUtil.execAndResolved('new', {
|
|
182
|
+
context: this.context,
|
|
183
|
+
params,
|
|
184
|
+
data: [],
|
|
185
|
+
view: this.view,
|
|
186
|
+
ctrl: this,
|
|
187
|
+
event,
|
|
188
|
+
}, this.view.model.appId);
|
|
160
189
|
}
|
|
161
190
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
191
|
+
* @description 分组工具栏点击,需携带分组
|
|
164
192
|
* @param {IUIActionGroupDetail} detail
|
|
165
193
|
* @param {MouseEvent} event
|
|
166
194
|
* @param {IKanbanGroupState} group
|
|
167
|
-
* @
|
|
195
|
+
* @returns {*} {Promise<void>}
|
|
168
196
|
* @memberof KanbanController
|
|
169
197
|
*/
|
|
170
198
|
async onGroupToolbarClick(detail, event, group) {
|
|
171
199
|
this.setSelectGroup(group.key);
|
|
172
|
-
|
|
200
|
+
const actionId = detail.uiactionId;
|
|
201
|
+
const params = Object.assign(Object.assign({}, this.params), { srfgroup: group.key });
|
|
202
|
+
await UIActionUtil.execAndResolved(actionId, {
|
|
203
|
+
context: this.context,
|
|
204
|
+
params,
|
|
205
|
+
data: group.selectedData || [],
|
|
206
|
+
view: this.view,
|
|
207
|
+
ctrl: this,
|
|
208
|
+
event,
|
|
209
|
+
}, detail.appId);
|
|
173
210
|
}
|
|
174
211
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
212
|
+
* @description 分组行为项点击, 需携带分组(有泳道时携带泳道)
|
|
177
213
|
* @param {IUIActionGroupDetail} detail
|
|
178
214
|
* @param {IData} item
|
|
179
215
|
* @param {MouseEvent} event
|
|
180
216
|
* @param {IKanbanGroupState} group
|
|
181
|
-
* @
|
|
217
|
+
* @param {IKanbanLane} [lane]
|
|
218
|
+
* @returns {*} {Promise<void>}
|
|
182
219
|
* @memberof KanbanController
|
|
183
220
|
*/
|
|
184
|
-
async onGroupActionClick(detail, item, event, group) {
|
|
221
|
+
async onGroupActionClick(detail, item, event, group, lane) {
|
|
185
222
|
this.setSelectGroup(group.key);
|
|
186
223
|
const params = Object.assign(Object.assign({}, this.params), { srfgroup: group });
|
|
224
|
+
if (lane)
|
|
225
|
+
Object.assign(params, { srflane: lane.key });
|
|
187
226
|
const actionId = detail.uiactionId;
|
|
188
227
|
await UIActionUtil.execAndResolved(actionId, {
|
|
189
228
|
context: this.context,
|
|
@@ -200,6 +239,78 @@ export class KanbanController extends DataViewControlController {
|
|
|
200
239
|
}
|
|
201
240
|
return super.handleDataGroup();
|
|
202
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* @description 处理泳道数据
|
|
244
|
+
* @returns {*} {Promise<void>}
|
|
245
|
+
* @memberof KanbanController
|
|
246
|
+
*/
|
|
247
|
+
async handleLaneData() {
|
|
248
|
+
var _a;
|
|
249
|
+
const { swimlaneCodeListId, swimlaneAppDEFieldId } = this.model;
|
|
250
|
+
if (!swimlaneAppDEFieldId)
|
|
251
|
+
return;
|
|
252
|
+
let lanes = [];
|
|
253
|
+
const unclassified = {
|
|
254
|
+
count: 0,
|
|
255
|
+
key: undefined,
|
|
256
|
+
isExpand: true,
|
|
257
|
+
caption: ibiz.i18n.t('runtime.controller.common.md.unclassified'),
|
|
258
|
+
};
|
|
259
|
+
const { items } = this.state;
|
|
260
|
+
if (swimlaneCodeListId) {
|
|
261
|
+
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
262
|
+
const codeListItems = await app.codeList.get(swimlaneCodeListId, this.context, this.params);
|
|
263
|
+
lanes = codeListItems.map(item => {
|
|
264
|
+
var _a;
|
|
265
|
+
return {
|
|
266
|
+
count: 0,
|
|
267
|
+
isExpand: true,
|
|
268
|
+
key: (_a = item.value) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
269
|
+
caption: item.text,
|
|
270
|
+
};
|
|
271
|
+
});
|
|
272
|
+
items.forEach(item => {
|
|
273
|
+
const lane = lanes.find(l => { var _a; return l.key === ((_a = item[swimlaneAppDEFieldId]) === null || _a === void 0 ? void 0 : _a.toLowerCase()); });
|
|
274
|
+
if (lane) {
|
|
275
|
+
lane.count += 1;
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
// 代码表没有的加入到未分类中
|
|
279
|
+
unclassified.count += 1;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
// 判断泳道属性是否为外键值
|
|
285
|
+
const deRss = (_a = this.dataEntity.minorAppDERSs) === null || _a === void 0 ? void 0 : _a.find(rss => rss.parentAppDEFieldId === swimlaneAppDEFieldId);
|
|
286
|
+
// 获取外键值文本属性
|
|
287
|
+
const textDEFieldId = (deRss === null || deRss === void 0 ? void 0 : deRss.parentTextAppDEFieldId) || swimlaneAppDEFieldId;
|
|
288
|
+
items.forEach(item => {
|
|
289
|
+
if (item[swimlaneAppDEFieldId]) {
|
|
290
|
+
const lane = lanes.find(l => l.key === item[swimlaneAppDEFieldId]);
|
|
291
|
+
if (lane) {
|
|
292
|
+
lane.count += 1;
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
lanes.push({
|
|
296
|
+
count: 1,
|
|
297
|
+
isExpand: true,
|
|
298
|
+
key: item[swimlaneAppDEFieldId],
|
|
299
|
+
caption: item[textDEFieldId],
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
// 没有值的加入到未分类中
|
|
305
|
+
unclassified.count += 1;
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
// 将未分类移动到最后
|
|
310
|
+
if (unclassified.count)
|
|
311
|
+
lanes.push(unclassified);
|
|
312
|
+
this.state.lanes = lanes;
|
|
313
|
+
}
|
|
203
314
|
/**
|
|
204
315
|
* 处理代码表分组
|
|
205
316
|
*
|
|
@@ -245,30 +356,34 @@ export class KanbanController extends DataViewControlController {
|
|
|
245
356
|
* @return {*} {Promise<void>}
|
|
246
357
|
*/
|
|
247
358
|
async onDragChange(info) {
|
|
248
|
-
var _a;
|
|
249
359
|
if (!this.enableEditGroup) {
|
|
250
360
|
if (info.from !== info.to) {
|
|
251
361
|
ibiz.message.warning(ibiz.i18n.t('runtime.controller.control.kanban.adjustmentsGroup'));
|
|
252
362
|
return;
|
|
253
363
|
}
|
|
254
364
|
}
|
|
255
|
-
const { from, to, fromIndex, toIndex } = info;
|
|
256
|
-
const
|
|
257
|
-
const
|
|
365
|
+
const { from, to, fromIndex, toIndex, fromLane, toLane } = info;
|
|
366
|
+
const { groupAppDEFieldId, minorSortAppDEFieldId, moveControlAction, laneAppDEFieldId = 'testname', } = this.model;
|
|
367
|
+
const groupField = groupAppDEFieldId;
|
|
368
|
+
const sortField = minorSortAppDEFieldId;
|
|
258
369
|
const fromGroup = this.state.groups.find(x => x.key === from);
|
|
259
370
|
const toGroup = this.state.groups.find(x => x.key === to);
|
|
260
371
|
if (!this.enableEditOrder) {
|
|
261
|
-
if (
|
|
372
|
+
if (from === to && fromLane === toLane) {
|
|
262
373
|
ibiz.message.warning(ibiz.i18n.t('runtime.controller.control.kanban.noAllowReorder'));
|
|
263
374
|
return;
|
|
264
375
|
}
|
|
265
376
|
// 只修改分组不管排序
|
|
266
377
|
const draggedItem = fromGroup.children[fromIndex];
|
|
267
|
-
|
|
378
|
+
// 变更分组
|
|
379
|
+
draggedItem[groupField] = to;
|
|
380
|
+
// 变更泳道
|
|
381
|
+
if (laneAppDEFieldId)
|
|
382
|
+
draggedItem[laneAppDEFieldId] = toLane;
|
|
268
383
|
return this.updateChangedItems([draggedItem]);
|
|
269
384
|
}
|
|
270
385
|
const originArr = [...toGroup.children];
|
|
271
|
-
const moveAction =
|
|
386
|
+
const moveAction = moveControlAction === null || moveControlAction === void 0 ? void 0 : moveControlAction.appDEMethodId;
|
|
272
387
|
if (!moveAction) {
|
|
273
388
|
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.controller.common.md.noMoveDataCconfig'));
|
|
274
389
|
}
|
|
@@ -3,7 +3,7 @@ import { IDETBUIActionItem, IDETree, IDETreeNode } from '@ibiz/model-core';
|
|
|
3
3
|
import { ITreeState, ITreeEvent, ITreeController, MDCtrlLoadParams, ITreeNodeData, IApiNewTreeNodeParams } from '../../../interface';
|
|
4
4
|
import { MDControlController } from '../../common';
|
|
5
5
|
import { ContextMenuController } from '../context-menu';
|
|
6
|
-
import { TreeService } from './tree.service';
|
|
6
|
+
import { LoadMoreInfoItem, TreeService } from './tree.service';
|
|
7
7
|
import { ControllerEvent } from '../../utils';
|
|
8
8
|
import { AppCounter } from '../../../service';
|
|
9
9
|
export type DropNodeRS = {
|
|
@@ -121,7 +121,7 @@ export declare class TreeController<T extends IDETree = IDETree, S extends ITree
|
|
|
121
121
|
* @returns {*}
|
|
122
122
|
* @memberof TreeController
|
|
123
123
|
*/
|
|
124
|
-
loadNodes(parentNode?: ITreeNodeData): Promise<ITreeNodeData[]>;
|
|
124
|
+
loadNodes(parentNode?: ITreeNodeData, isLoadMore?: boolean): Promise<ITreeNodeData[]>;
|
|
125
125
|
/**
|
|
126
126
|
* loadNodes加载完子数据之后的处理
|
|
127
127
|
* @author lxm
|
|
@@ -330,5 +330,20 @@ export declare class TreeController<T extends IDETree = IDETree, S extends ITree
|
|
|
330
330
|
* @return {*} {Promise<void>}
|
|
331
331
|
*/
|
|
332
332
|
createDeNodeData(nodeDatas: IData[]): Promise<void>;
|
|
333
|
+
/**
|
|
334
|
+
* @description 获取加载更多信息项
|
|
335
|
+
* @param {string} id
|
|
336
|
+
* @returns {*} {(LoadMoreInfoItem[] | undefined)}
|
|
337
|
+
* @memberof TreeController
|
|
338
|
+
*/
|
|
339
|
+
getLoadMoreInfoItems(id: string): LoadMoreInfoItem[] | undefined;
|
|
340
|
+
/**
|
|
341
|
+
* @description 获取加载更多最终节点数据
|
|
342
|
+
* @param {ITreeNodeData} parentNode
|
|
343
|
+
* @param {boolean} hasQuery
|
|
344
|
+
* @returns {*} {ITreeNodeData[]}
|
|
345
|
+
* @memberof TreeController
|
|
346
|
+
*/
|
|
347
|
+
getLoadMoreNodes(parentNode: ITreeNodeData, hasQuery: boolean): ITreeNodeData[];
|
|
333
348
|
}
|
|
334
349
|
//# sourceMappingURL=tree.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/tree/tree.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EAIf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EAEjB,OAAO,EAEP,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,UAAU,EACV,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"tree.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/tree/tree.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EAIf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EAEjB,OAAO,EAEP,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,UAAU,EACV,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,qBAAqB,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QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAClC,OAAO,CAAC,IAAI,CAAC;IAwFhB;;;;;;;OAOG;IACG,gBAAgB,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAiCjE;;;;;;;OAOG;IACG,cAAc,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB1E;;;;;OAKG;IACG,gBAAgB,CACpB,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,OAAO,CAAC;IAsBnB;;;;;;;;OAQG;IACH,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;IAiCnD;;;;;OAKG;IACH,cAAc,CAAC,MAAM,GAAE,KAAU,GAAG,IAAI;IAsBxC;;;;;;OAMG;IACI,WAAW,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI;IAiBxD;;;;;;;OAOG;IACG,gBAAgB,CAAC,SAAS,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBzD;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,EAAE,GAAG,SAAS;IAIhE;;;;;;OAMG;IACH,gBAAgB,CACd,UAAU,EAAE,aAAa,EACzB,QAAQ,EAAE,OAAO,GAChB,aAAa,EAAE;CAkDnB"}
|
|
@@ -8,7 +8,7 @@ import { UIActionUtil } from '../../../ui-action';
|
|
|
8
8
|
import { MDControlController } from '../../common';
|
|
9
9
|
import { ContextMenuController } from '../context-menu';
|
|
10
10
|
import { TreeService } from './tree.service';
|
|
11
|
-
import { calcDeCodeNameById, getChildNodeRSs } from '../../../model';
|
|
11
|
+
import { calcDeCodeNameById, getChildNodeRSs, getTreeNode, } from '../../../model';
|
|
12
12
|
import { CounterService, Srfuf } from '../../../service';
|
|
13
13
|
/**
|
|
14
14
|
* 树部件控制器
|
|
@@ -270,7 +270,7 @@ export class TreeController extends MDControlController {
|
|
|
270
270
|
* @returns {*}
|
|
271
271
|
* @memberof TreeController
|
|
272
272
|
*/
|
|
273
|
-
async loadNodes(parentNode) {
|
|
273
|
+
async loadNodes(parentNode, isLoadMore = false) {
|
|
274
274
|
const params = await this.getFetchParams();
|
|
275
275
|
const hasQuery = !!params.query;
|
|
276
276
|
this.state.isLoading = true;
|
|
@@ -281,6 +281,7 @@ export class TreeController extends MDControlController {
|
|
|
281
281
|
context: this.context.clone(),
|
|
282
282
|
params,
|
|
283
283
|
hasQuery,
|
|
284
|
+
isLoadMore,
|
|
284
285
|
ctrl: this,
|
|
285
286
|
view: this.view,
|
|
286
287
|
defaultExpandedKeys: this.state.expandedKeys,
|
|
@@ -319,9 +320,19 @@ export class TreeController extends MDControlController {
|
|
|
319
320
|
}
|
|
320
321
|
// 有父节点绑定到父节点数据上,无父节点替换rootNodes
|
|
321
322
|
if (parentNode) {
|
|
322
|
-
|
|
323
|
+
if (isLoadMore) {
|
|
324
|
+
parentNode._children = this.getLoadMoreNodes(parentNode, hasQuery);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
parentNode._children = nodes;
|
|
328
|
+
}
|
|
323
329
|
}
|
|
324
330
|
else {
|
|
331
|
+
if (isLoadMore) {
|
|
332
|
+
nodes.forEach(node => {
|
|
333
|
+
node._children = this.getLoadMoreNodes(node, hasQuery);
|
|
334
|
+
});
|
|
335
|
+
}
|
|
325
336
|
this.state.rootNodes = nodes;
|
|
326
337
|
}
|
|
327
338
|
await this.afterLoadNodes(nodes);
|
|
@@ -927,4 +938,69 @@ export class TreeController extends MDControlController {
|
|
|
927
938
|
}
|
|
928
939
|
}));
|
|
929
940
|
}
|
|
941
|
+
/**
|
|
942
|
+
* @description 获取加载更多信息项
|
|
943
|
+
* @param {string} id
|
|
944
|
+
* @returns {*} {(LoadMoreInfoItem[] | undefined)}
|
|
945
|
+
* @memberof TreeController
|
|
946
|
+
*/
|
|
947
|
+
getLoadMoreInfoItems(id) {
|
|
948
|
+
return this.service.loadMoreMap[id];
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* @description 获取加载更多最终节点数据
|
|
952
|
+
* @param {ITreeNodeData} parentNode
|
|
953
|
+
* @param {boolean} hasQuery
|
|
954
|
+
* @returns {*} {ITreeNodeData[]}
|
|
955
|
+
* @memberof TreeController
|
|
956
|
+
*/
|
|
957
|
+
getLoadMoreNodes(parentNode, hasQuery) {
|
|
958
|
+
const items = [];
|
|
959
|
+
const infoItems = this.getLoadMoreInfoItems(parentNode._id);
|
|
960
|
+
if (infoItems) {
|
|
961
|
+
const childNodeRSs = getChildNodeRSs(this.model, {
|
|
962
|
+
parentId: parentNode._nodeId,
|
|
963
|
+
hasQuery,
|
|
964
|
+
});
|
|
965
|
+
childNodeRSs === null || childNodeRSs === void 0 ? void 0 : childNodeRSs.forEach(item => {
|
|
966
|
+
const nodeModel = getTreeNode(this.model, item.childDETreeNodeId);
|
|
967
|
+
if (!nodeModel) {
|
|
968
|
+
return;
|
|
969
|
+
}
|
|
970
|
+
const infoItem = infoItems.find(_item => _item.nodeModelId === nodeModel.id);
|
|
971
|
+
if (!infoItem) {
|
|
972
|
+
return;
|
|
973
|
+
}
|
|
974
|
+
items.push(...(infoItem.items || []));
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
const targetNodes = [];
|
|
978
|
+
items.forEach((child) => {
|
|
979
|
+
var _a;
|
|
980
|
+
const targetNode = (_a = this.model.detreeNodes) === null || _a === void 0 ? void 0 : _a.find((item) => {
|
|
981
|
+
return item.id === child._nodeId;
|
|
982
|
+
});
|
|
983
|
+
// 开启了排除重复值,并且配置了标识属性
|
|
984
|
+
if (targetNode &&
|
|
985
|
+
targetNode.distinctMode &&
|
|
986
|
+
targetNode.idAppDEFieldId) {
|
|
987
|
+
// 同批次数据排重
|
|
988
|
+
const index = targetNodes.findIndex((item) => {
|
|
989
|
+
var _a, _b;
|
|
990
|
+
const id = targetNode.idAppDEFieldId;
|
|
991
|
+
if (id) {
|
|
992
|
+
return ((_a = item._deData) === null || _a === void 0 ? void 0 : _a[id]) === ((_b = child._deData) === null || _b === void 0 ? void 0 : _b[id]);
|
|
993
|
+
}
|
|
994
|
+
return false;
|
|
995
|
+
});
|
|
996
|
+
if (index < 0) {
|
|
997
|
+
targetNodes.push(child);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
else {
|
|
1001
|
+
targetNodes.push(child);
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
return targetNodes;
|
|
1005
|
+
}
|
|
930
1006
|
}
|
|
@@ -52,6 +52,43 @@ export interface TreeFetchOpts {
|
|
|
52
52
|
* @memberof TreeFetchOpts
|
|
53
53
|
*/
|
|
54
54
|
ctrl?: ITreeController;
|
|
55
|
+
/**
|
|
56
|
+
* @description 是否加载更多
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof TreeFetchOpts
|
|
59
|
+
*/
|
|
60
|
+
isLoadMore?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @description 加载更多信息项
|
|
64
|
+
* @export
|
|
65
|
+
* @interface LoadMoreInfoItem
|
|
66
|
+
*/
|
|
67
|
+
export interface LoadMoreInfoItem {
|
|
68
|
+
/**
|
|
69
|
+
* @description 节点模型id
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof LoadMoreInfoItem
|
|
72
|
+
*/
|
|
73
|
+
nodeModelId: string;
|
|
74
|
+
/**
|
|
75
|
+
* @description 当前页
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof LoadMoreInfoItem
|
|
78
|
+
*/
|
|
79
|
+
curPage: number;
|
|
80
|
+
/**
|
|
81
|
+
* @description 总页数
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof LoadMoreInfoItem
|
|
84
|
+
*/
|
|
85
|
+
totalPage: number;
|
|
86
|
+
/**
|
|
87
|
+
* @description 节点数据
|
|
88
|
+
* @type {TreeDataSetNodeData[]}
|
|
89
|
+
* @memberof LoadMoreInfoItem
|
|
90
|
+
*/
|
|
91
|
+
items: TreeDataSetNodeData[];
|
|
55
92
|
}
|
|
56
93
|
/**
|
|
57
94
|
* 树部件服务
|
|
@@ -62,6 +99,16 @@ export interface TreeFetchOpts {
|
|
|
62
99
|
* @extends {MDControlService<IDETree>}
|
|
63
100
|
*/
|
|
64
101
|
export declare class TreeService<T extends IDETree = IDETree> extends MDControlService<T> {
|
|
102
|
+
/**
|
|
103
|
+
* @description 加载更多信息项映射
|
|
104
|
+
* @type {{
|
|
105
|
+
* [parentDataId: string]: LoadMoreInfoItem[];
|
|
106
|
+
* }}
|
|
107
|
+
* @memberof TreeService
|
|
108
|
+
*/
|
|
109
|
+
loadMoreMap: {
|
|
110
|
+
[parentDataId: string]: LoadMoreInfoItem[];
|
|
111
|
+
};
|
|
65
112
|
/**
|
|
66
113
|
* 获取子节点数据
|
|
67
114
|
*
|
|
@@ -222,5 +269,33 @@ export declare class TreeService<T extends IDETree = IDETree> extends MDControlS
|
|
|
222
269
|
* @param {IModel} nodeModel 方法名
|
|
223
270
|
*/
|
|
224
271
|
calcStaticExpand(nodeModel: IModel): boolean;
|
|
272
|
+
/**
|
|
273
|
+
* @description 初始化分页参数
|
|
274
|
+
* @param {IDETreeDataSetNode} nodeModel
|
|
275
|
+
* @param {(ITreeNodeData | undefined)} parentNodeData
|
|
276
|
+
* @param {TreeFetchOpts} opts
|
|
277
|
+
* @param {IParams} params
|
|
278
|
+
* @memberof TreeService
|
|
279
|
+
*/
|
|
280
|
+
initPageParams(nodeModel: IDETreeDataSetNode, parentNodeData: ITreeNodeData | undefined, opts: TreeFetchOpts, params: IParams): void;
|
|
281
|
+
/**
|
|
282
|
+
* @description 更新分页节点数据
|
|
283
|
+
* @param {IDETreeDataSetNode} nodeModel
|
|
284
|
+
* @param {(ITreeNodeData | undefined)} parentNodeData
|
|
285
|
+
* @param {TreeFetchOpts} opts
|
|
286
|
+
* @param {(string | undefined)} dataSourceType
|
|
287
|
+
* @param {TreeDataSetNodeData[]} nodeDatas
|
|
288
|
+
* @memberof TreeService
|
|
289
|
+
*/
|
|
290
|
+
updatePageItems(nodeModel: IDETreeDataSetNode, parentNodeData: ITreeNodeData | undefined, opts: TreeFetchOpts, dataSourceType: string | undefined, nodeDatas: TreeDataSetNodeData[]): void;
|
|
291
|
+
/**
|
|
292
|
+
* @description 更新分页信息
|
|
293
|
+
* @param {IDETreeDataSetNode} nodeModel
|
|
294
|
+
* @param {(ITreeNodeData | undefined)} parentNodeData
|
|
295
|
+
* @param {TreeFetchOpts} opts
|
|
296
|
+
* @param {number} totalPage
|
|
297
|
+
* @memberof TreeService
|
|
298
|
+
*/
|
|
299
|
+
updatePageInfo(nodeModel: IDETreeDataSetNode, parentNodeData: ITreeNodeData | undefined, opts: TreeFetchOpts, totalPage: number): void;
|
|
225
300
|
}
|
|
226
301
|
//# sourceMappingURL=tree.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.service.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/tree/tree.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAc,MAAM,qBAAqB,CAAC;AAChE,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,eAAe,EACf,aAAa,EACb,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAQ5B,OAAO,EACL,gBAAgB,EAEhB,mBAAmB,EACnB,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAI1B,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"tree.service.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/tree/tree.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAc,MAAM,qBAAqB,CAAC;AAChE,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,eAAe,EACf,aAAa,EACb,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAQ5B,OAAO,EACL,gBAAgB,EAEhB,mBAAmB,EACnB,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAI1B,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,E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