@ibiz-template/runtime 0.7.41-alpha.95 → 0.7.41-alpha.96
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 +143 -112
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/calendar/calendar.controller.d.ts +6 -0
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +13 -0
- package/out/controller/control/gantt/gantt.controller.d.ts +31 -39
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +31 -39
- package/out/controller/control/kanban/kanban.controller.d.ts +5 -0
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +6 -1
- package/out/controller/control/map/map.controller.d.ts.map +1 -1
- package/out/controller/control/map/map.controller.js +7 -2
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-column/tree-grid-ex-column.controller.d.ts +2 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-column/tree-grid-ex-column.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts +84 -63
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +86 -80
- package/out/interface/api/controller/control/i-api-drbar.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-drtab.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-gantt.controller.d.ts +19 -5
- package/out/interface/api/controller/control/i-api-gantt.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts +0 -7
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-map.controller.d.ts +8 -2
- package/out/interface/api/controller/control/i-api-map.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts +58 -2
- package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-wizard-panel.controller.d.ts +39 -1
- package/out/interface/api/controller/control/i-api-wizard-panel.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.d.ts +1 -0
- package/out/interface/api/controller/control/index.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.js +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.d.ts +47 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.d.ts.map +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.js +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.d.ts +2 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.d.ts.map +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.js +1 -0
- package/out/interface/api/state/control/i-api-drbar.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-drtab.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-gantt.state.d.ts +6 -0
- package/out/interface/api/state/control/i-api-gantt.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-kanban.state.d.ts +49 -0
- package/out/interface/api/state/control/i-api-kanban.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-map.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-tree-grid-ex.state.d.ts +8 -1
- package/out/interface/api/state/control/i-api-tree-grid-ex.state.d.ts.map +1 -1
- package/out/interface/api/state/control/index.d.ts +1 -1
- package/out/interface/api/state/control/index.d.ts.map +1 -1
- package/out/interface/api/state/control/search-bar/i-api-search-bar.state.d.ts +2 -2
- package/out/interface/controller/controller/common/i-drag-change-info.d.ts +1 -3
- package/out/interface/controller/controller/common/i-drag-change-info.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-gantt.controller.d.ts +8 -0
- package/out/interface/controller/controller/control/i-gantt.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-kanban.controller.d.ts +7 -0
- package/out/interface/controller/controller/control/i-kanban.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree-grid-ex.controller.d.ts +0 -14
- package/out/interface/controller/controller/control/i-tree-grid-ex.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/tree-grid-ex-column/i-tree-grid-ex-column.controller.d.ts +2 -1
- package/out/interface/controller/controller/control/tree-grid-ex-column/i-tree-grid-ex-column.controller.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-gantt.state.d.ts +1 -1
- package/out/interface/controller/state/control/i-gantt.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-kanban.state.d.ts +2 -38
- package/out/interface/controller/state/control/i-kanban.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree-grid-ex.state.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -36182,6 +36182,19 @@ var CalendarController = class extends MDControlController {
|
|
|
36182
36182
|
async goToLastPage() {
|
|
36183
36183
|
return [];
|
|
36184
36184
|
}
|
|
36185
|
+
/**
|
|
36186
|
+
* @description 转换各类多语言
|
|
36187
|
+
* @protected
|
|
36188
|
+
* @memberof CalendarController
|
|
36189
|
+
*/
|
|
36190
|
+
convertMultipleLanguages() {
|
|
36191
|
+
const { sysCalendarItems = [] } = this.model;
|
|
36192
|
+
sysCalendarItems.forEach((item) => {
|
|
36193
|
+
var _a3;
|
|
36194
|
+
if ((_a3 = item.nameLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
36195
|
+
item.name = ibiz.i18n.t(item.nameLanguageRes.lanResTag, item.name);
|
|
36196
|
+
});
|
|
36197
|
+
}
|
|
36185
36198
|
};
|
|
36186
36199
|
|
|
36187
36200
|
// src/controller/control/chart/chart.controller.ts
|
|
@@ -60521,7 +60534,12 @@ var KanbanController = class extends DataViewControlController {
|
|
|
60521
60534
|
detail.appId
|
|
60522
60535
|
);
|
|
60523
60536
|
}
|
|
60524
|
-
|
|
60537
|
+
/**
|
|
60538
|
+
* @description 处理数据分组
|
|
60539
|
+
* @returns {*} {Promise<void>}
|
|
60540
|
+
* @memberof KanbanController
|
|
60541
|
+
*/
|
|
60542
|
+
async handleDataGroup() {
|
|
60525
60543
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
60526
60544
|
throw new RuntimeError46(
|
|
60527
60545
|
ibiz.i18n.t("runtime.controller.control.kanban.groupedOn")
|
|
@@ -61054,6 +61072,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61054
61072
|
get allowRowEdit() {
|
|
61055
61073
|
return this.state.rowEditOpen;
|
|
61056
61074
|
}
|
|
61075
|
+
/**
|
|
61076
|
+
* @description 初始化state
|
|
61077
|
+
* @protected
|
|
61078
|
+
* @memberof TreeGridExController
|
|
61079
|
+
*/
|
|
61057
61080
|
initState() {
|
|
61058
61081
|
super.initState();
|
|
61059
61082
|
this.state.columnStates = [];
|
|
@@ -61061,11 +61084,23 @@ var TreeGridExController = class extends TreeController {
|
|
|
61061
61084
|
this.state.rows = {};
|
|
61062
61085
|
this.state.rowEditOpen = true;
|
|
61063
61086
|
}
|
|
61087
|
+
/**
|
|
61088
|
+
* @description 生命周期-创建完成
|
|
61089
|
+
* @protected
|
|
61090
|
+
* @returns {*} {Promise<void>}
|
|
61091
|
+
* @memberof TreeGridExController
|
|
61092
|
+
*/
|
|
61064
61093
|
async onCreated() {
|
|
61065
61094
|
await super.onCreated();
|
|
61066
61095
|
await this.initGridColumns();
|
|
61067
61096
|
this.initColumnStates();
|
|
61068
61097
|
}
|
|
61098
|
+
/**
|
|
61099
|
+
* @description 初始化部件服务
|
|
61100
|
+
* @protected
|
|
61101
|
+
* @returns {*} {Promise<void>}
|
|
61102
|
+
* @memberof TreeGridExController
|
|
61103
|
+
*/
|
|
61069
61104
|
async initService() {
|
|
61070
61105
|
this.service = new TreeGridExService(this.model);
|
|
61071
61106
|
await this.service.init(this.context);
|
|
@@ -61100,12 +61135,9 @@ var TreeGridExController = class extends TreeController {
|
|
|
61100
61135
|
await Promise.all(asyncTasks);
|
|
61101
61136
|
}
|
|
61102
61137
|
/**
|
|
61103
|
-
* 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61104
|
-
*
|
|
61105
|
-
* @author zk
|
|
61106
|
-
* @date 2023-09-21 06:09:28
|
|
61138
|
+
* @description 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61107
61139
|
* @protected
|
|
61108
|
-
* @
|
|
61140
|
+
* @returns {*} {Promise<void>}
|
|
61109
61141
|
* @memberof TreeGridExController
|
|
61110
61142
|
*/
|
|
61111
61143
|
async initGridColumns() {
|
|
@@ -61118,13 +61150,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61118
61150
|
}
|
|
61119
61151
|
}
|
|
61120
61152
|
/**
|
|
61121
|
-
* 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61122
|
-
*
|
|
61123
|
-
* @author zk
|
|
61124
|
-
* @date 2023-09-21 06:09:37
|
|
61153
|
+
* @description 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61125
61154
|
* @protected
|
|
61126
61155
|
* @param {IDETreeColumn} column
|
|
61127
|
-
* @
|
|
61156
|
+
* @returns {*} {Promise<void>}
|
|
61128
61157
|
* @memberof TreeGridExController
|
|
61129
61158
|
*/
|
|
61130
61159
|
async initColumnsController(column) {
|
|
@@ -61142,11 +61171,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61142
61171
|
}
|
|
61143
61172
|
}
|
|
61144
61173
|
/**
|
|
61145
|
-
*
|
|
61146
|
-
*
|
|
61174
|
+
* @description 部件加载之后
|
|
61147
61175
|
* @param {MDCtrlLoadParams} args
|
|
61148
61176
|
* @param {IData[]} items
|
|
61149
|
-
* @
|
|
61177
|
+
* @returns {*} {Promise<IData[]>}
|
|
61150
61178
|
* @memberof TreeGridExController
|
|
61151
61179
|
*/
|
|
61152
61180
|
async afterLoad(args, items) {
|
|
@@ -61155,10 +61183,9 @@ var TreeGridExController = class extends TreeController {
|
|
|
61155
61183
|
return items;
|
|
61156
61184
|
}
|
|
61157
61185
|
/**
|
|
61158
|
-
* 更新列状态
|
|
61159
|
-
*
|
|
61186
|
+
* @description 更新列状态
|
|
61160
61187
|
* @param {IData} rows
|
|
61161
|
-
* @
|
|
61188
|
+
* @returns {*} {Promise<void>}
|
|
61162
61189
|
* @memberof TreeGridExController
|
|
61163
61190
|
*/
|
|
61164
61191
|
async updateRows(rows) {
|
|
@@ -61175,10 +61202,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
61175
61202
|
});
|
|
61176
61203
|
}
|
|
61177
61204
|
/**
|
|
61178
|
-
* 初始化树表格(增强)列状态
|
|
61179
|
-
*
|
|
61180
|
-
* @author zk
|
|
61181
|
-
* @date 2023-09-21 06:09:43
|
|
61205
|
+
* @description 初始化树表格(增强)列状态
|
|
61182
61206
|
* @protected
|
|
61183
61207
|
* @memberof TreeGridExController
|
|
61184
61208
|
*/
|
|
@@ -61199,10 +61223,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
61199
61223
|
this.calcColumnFixed();
|
|
61200
61224
|
}
|
|
61201
61225
|
/**
|
|
61202
|
-
* 计算列的固定状态
|
|
61203
|
-
*
|
|
61204
|
-
* @author zk
|
|
61205
|
-
* @date 2023-09-21 06:09:50
|
|
61226
|
+
* @description 计算列的固定状态
|
|
61206
61227
|
* @protected
|
|
61207
61228
|
* @memberof TreeGridExController
|
|
61208
61229
|
*/
|
|
@@ -61218,11 +61239,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61218
61239
|
});
|
|
61219
61240
|
}
|
|
61220
61241
|
/**
|
|
61221
|
-
*
|
|
61222
|
-
* @
|
|
61223
|
-
* @
|
|
61224
|
-
* @
|
|
61225
|
-
* @return {*} {(ITreeGridExRowState | undefined)}
|
|
61242
|
+
* @description 获取表格行状态
|
|
61243
|
+
* @param {string} key
|
|
61244
|
+
* @returns {*} {(ITreeGridExRowState | undefined)}
|
|
61245
|
+
* @memberof TreeGridExController
|
|
61226
61246
|
*/
|
|
61227
61247
|
getRowState(key) {
|
|
61228
61248
|
const nodeData = this.getNodeData(key);
|
|
@@ -61230,6 +61250,12 @@ var TreeGridExController = class extends TreeController {
|
|
|
61230
61250
|
return this.state.rows[nodeData._uuid];
|
|
61231
61251
|
}
|
|
61232
61252
|
}
|
|
61253
|
+
/**
|
|
61254
|
+
* @description 节点加载之后
|
|
61255
|
+
* @param {ITreeNodeData[]} nodes 树节点数据
|
|
61256
|
+
* @returns {*} {Promise<void>}
|
|
61257
|
+
* @memberof TreeGridExController
|
|
61258
|
+
*/
|
|
61233
61259
|
async afterLoadNodes(nodes) {
|
|
61234
61260
|
await super.afterLoadNodes(nodes);
|
|
61235
61261
|
recursiveIterate16(
|
|
@@ -61263,6 +61289,12 @@ var TreeGridExController = class extends TreeController {
|
|
|
61263
61289
|
);
|
|
61264
61290
|
});
|
|
61265
61291
|
}
|
|
61292
|
+
/**
|
|
61293
|
+
* @description 保存数据
|
|
61294
|
+
* @param {ITreeNodeData} nodeData 树节点数据
|
|
61295
|
+
* @returns {*} {Promise<void>}
|
|
61296
|
+
* @memberof TreeGridExController
|
|
61297
|
+
*/
|
|
61266
61298
|
async save(nodeData) {
|
|
61267
61299
|
if (this.state.isSimple) {
|
|
61268
61300
|
ibiz.log.debug(ibiz.i18n.t("runtime.controller.common.md.simpleMode"));
|
|
@@ -61327,6 +61359,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61327
61359
|
await this.updateRows(this.state.rows);
|
|
61328
61360
|
await this._evt.emit("onSaveSuccess", void 0);
|
|
61329
61361
|
}
|
|
61362
|
+
/**
|
|
61363
|
+
* @description 保存所有变更数据
|
|
61364
|
+
* @returns {*} {Promise<void>}
|
|
61365
|
+
* @memberof TreeGridExController
|
|
61366
|
+
*/
|
|
61330
61367
|
async saveAll() {
|
|
61331
61368
|
const needSaveData = Object.values(this.state.rows).filter((row) => row.modified).map((row) => row.data);
|
|
61332
61369
|
if (!needSaveData.length) {
|
|
@@ -61339,10 +61376,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61339
61376
|
);
|
|
61340
61377
|
}
|
|
61341
61378
|
/**
|
|
61342
|
-
* 树表格状态变更通知
|
|
61343
|
-
*
|
|
61344
|
-
* @
|
|
61345
|
-
* @
|
|
61379
|
+
* @description 树表格状态变更通知
|
|
61380
|
+
* @param {TreeGridExRowState} row
|
|
61381
|
+
* @param {TreeGridExNotifyState} state
|
|
61382
|
+
* @memberof TreeGridExController
|
|
61346
61383
|
*/
|
|
61347
61384
|
gridStateNotify(row, state) {
|
|
61348
61385
|
Object.values(this.columns).forEach((column) => {
|
|
@@ -61350,14 +61387,13 @@ var TreeGridExController = class extends TreeController {
|
|
|
61350
61387
|
});
|
|
61351
61388
|
}
|
|
61352
61389
|
/**
|
|
61353
|
-
* 设置行属性的值
|
|
61354
|
-
*
|
|
61355
|
-
* @
|
|
61356
|
-
* @
|
|
61357
|
-
* @param {
|
|
61358
|
-
* @
|
|
61359
|
-
* @
|
|
61360
|
-
* @param {boolean} ignore 忽略脏值检查
|
|
61390
|
+
* @description 设置行属性的值
|
|
61391
|
+
* @param {TreeGridExRowState} row 行状态
|
|
61392
|
+
* @param {string} name 属性名称
|
|
61393
|
+
* @param {unknown} value 值
|
|
61394
|
+
* @param {boolean} [ignore=false] 忽略脏值检查
|
|
61395
|
+
* @returns {*} {Promise<void>}
|
|
61396
|
+
* @memberof TreeGridExController
|
|
61361
61397
|
*/
|
|
61362
61398
|
async setRowValue(row, name2, value, ignore = false) {
|
|
61363
61399
|
if (Object.prototype.hasOwnProperty.call(row.data, name2) && !isValueChange(row.data[name2], value)) {
|
|
@@ -61375,12 +61411,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61375
61411
|
}
|
|
61376
61412
|
}
|
|
61377
61413
|
/**
|
|
61378
|
-
* 通知所有表格编辑项成员表格编辑项数据变更
|
|
61379
|
-
*
|
|
61380
|
-
* @
|
|
61381
|
-
* @
|
|
61382
|
-
* @
|
|
61383
|
-
* @param {string[]} names 更新的属性
|
|
61414
|
+
* @description 通知所有表格编辑项成员表格编辑项数据变更
|
|
61415
|
+
* @param {TreeGridExRowState} row
|
|
61416
|
+
* @param {string[]} names
|
|
61417
|
+
* @returns {*} {Promise<void>}
|
|
61418
|
+
* @memberof TreeGridExController
|
|
61384
61419
|
*/
|
|
61385
61420
|
async dataChangeNotify(row, names) {
|
|
61386
61421
|
await handleAllSettled(
|
|
@@ -61389,17 +61424,20 @@ var TreeGridExController = class extends TreeController {
|
|
|
61389
61424
|
})
|
|
61390
61425
|
);
|
|
61391
61426
|
}
|
|
61427
|
+
/**
|
|
61428
|
+
* @description 切换行编辑状态
|
|
61429
|
+
* @returns {*} {Promise<void>}
|
|
61430
|
+
* @memberof TreeGridExController
|
|
61431
|
+
*/
|
|
61392
61432
|
async toggleRowEdit() {
|
|
61393
61433
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
61394
61434
|
}
|
|
61395
61435
|
/**
|
|
61396
|
-
*
|
|
61397
|
-
*
|
|
61398
|
-
* @
|
|
61399
|
-
* @
|
|
61400
|
-
* @
|
|
61401
|
-
* @param {boolean} isCreate
|
|
61402
|
-
* @return {*} {IData}
|
|
61436
|
+
* @description 计算默认值
|
|
61437
|
+
* @param {ITreeNodeData} data 节点数据
|
|
61438
|
+
* @param {boolean} isCreate 是否为新建
|
|
61439
|
+
* @returns {*} {IData}
|
|
61440
|
+
* @memberof TreeGridExController
|
|
61403
61441
|
*/
|
|
61404
61442
|
calcDefaultValue(data, isCreate) {
|
|
61405
61443
|
const result = {};
|
|
@@ -61427,23 +61465,19 @@ var TreeGridExController = class extends TreeController {
|
|
|
61427
61465
|
return result;
|
|
61428
61466
|
}
|
|
61429
61467
|
/**
|
|
61430
|
-
* 切换单行的编辑状态
|
|
61431
|
-
* @
|
|
61432
|
-
* @
|
|
61433
|
-
* @param {
|
|
61434
|
-
* @
|
|
61468
|
+
* @description 切换单行的编辑状态
|
|
61469
|
+
* @param {TreeGridExRowState} row 行状态
|
|
61470
|
+
* @param {boolean} [editable] 是否为编辑状态
|
|
61471
|
+
* @param {boolean} [isSave=true] 是否保存数据
|
|
61472
|
+
* @returns {*} {Promise<void>}
|
|
61473
|
+
* @memberof TreeGridExController
|
|
61435
61474
|
*/
|
|
61436
61475
|
async switchRowEdit(row, editable, isSave = true) {
|
|
61437
|
-
if (!this.allowRowEdit)
|
|
61438
|
-
return;
|
|
61439
|
-
}
|
|
61440
|
-
if (row.data._nodeType !== "DE") {
|
|
61476
|
+
if (!this.allowRowEdit || row.data._nodeType !== "DE")
|
|
61441
61477
|
return;
|
|
61442
|
-
}
|
|
61443
61478
|
const toState = editable === void 0 ? !row.showRowEdit : editable;
|
|
61444
|
-
if (row.showRowEdit === toState)
|
|
61479
|
+
if (row.showRowEdit === toState)
|
|
61445
61480
|
return;
|
|
61446
|
-
}
|
|
61447
61481
|
if (toState === false) {
|
|
61448
61482
|
if (isSave) {
|
|
61449
61483
|
await this.save(row.data);
|
|
@@ -61477,11 +61511,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61477
61511
|
this._evt.emit("onRowEditChange", { row });
|
|
61478
61512
|
}
|
|
61479
61513
|
/**
|
|
61480
|
-
* 树节点点击事件
|
|
61481
|
-
*
|
|
61482
|
-
* @param {
|
|
61514
|
+
* @description 树节点点击事件
|
|
61515
|
+
* @param {ITreeNodeData} _nodeData
|
|
61516
|
+
* @param {MouseEvent} event
|
|
61483
61517
|
* @returns {*} {Promise<void>}
|
|
61484
|
-
* @memberof
|
|
61518
|
+
* @memberof TreeGridExController
|
|
61485
61519
|
*/
|
|
61486
61520
|
async onTreeNodeClick(_nodeData, event) {
|
|
61487
61521
|
var _a3, _b2;
|
|
@@ -62683,7 +62717,10 @@ var MapController = class extends MDControlController {
|
|
|
62683
62717
|
this.state.isLoaded = true;
|
|
62684
62718
|
return [];
|
|
62685
62719
|
}
|
|
62686
|
-
|
|
62720
|
+
const silent = this.getSilent(args) === true;
|
|
62721
|
+
if (!silent) {
|
|
62722
|
+
await this.startLoading();
|
|
62723
|
+
}
|
|
62687
62724
|
try {
|
|
62688
62725
|
const isInitialLoad = args.isInitialLoad === true;
|
|
62689
62726
|
const { context } = this.handlerAbilityParams(args);
|
|
@@ -62709,7 +62746,9 @@ var MapController = class extends MDControlController {
|
|
|
62709
62746
|
});
|
|
62710
62747
|
throw error;
|
|
62711
62748
|
} finally {
|
|
62712
|
-
|
|
62749
|
+
if (!silent) {
|
|
62750
|
+
await this.endLoading();
|
|
62751
|
+
}
|
|
62713
62752
|
}
|
|
62714
62753
|
this.actionNotification("FETCHSUCCESS");
|
|
62715
62754
|
return this.state.items;
|
|
@@ -66456,8 +66495,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
66456
66495
|
await this.service.init(this.context);
|
|
66457
66496
|
}
|
|
66458
66497
|
/**
|
|
66459
|
-
* 设置甘特图样式
|
|
66460
|
-
*
|
|
66498
|
+
* @description 设置甘特图样式
|
|
66461
66499
|
* @param {IGanttStyle} style
|
|
66462
66500
|
* @memberof GanttController
|
|
66463
66501
|
*/
|
|
@@ -66465,10 +66503,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66465
66503
|
this.state.ganttStyle = style;
|
|
66466
66504
|
}
|
|
66467
66505
|
/**
|
|
66468
|
-
* 设置激活数据
|
|
66469
|
-
*
|
|
66506
|
+
* @description 设置激活数据
|
|
66470
66507
|
* @param {IGanttNodeData} item
|
|
66471
|
-
* @
|
|
66508
|
+
* @returns {*} {Promise<void>}
|
|
66472
66509
|
* @memberof GanttController
|
|
66473
66510
|
*/
|
|
66474
66511
|
async setActive(item) {
|
|
@@ -66481,11 +66518,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66481
66518
|
return this.evt.emit("onActive", { ...nodeParams, nodeData: item });
|
|
66482
66519
|
}
|
|
66483
66520
|
/**
|
|
66484
|
-
* 部件刷新,走初始加载(规避预置后续刷新和通知刷新同时进行)
|
|
66485
|
-
*
|
|
66486
|
-
* @
|
|
66487
|
-
* @date 2024-05-06 20:28:59
|
|
66488
|
-
* @return {*} {Promise<void>}
|
|
66521
|
+
* @description 部件刷新,走初始加载(规避预置后续刷新和通知刷新同时进行)
|
|
66522
|
+
* @returns {*} {Promise<void>}
|
|
66523
|
+
* @memberof GanttController
|
|
66489
66524
|
*/
|
|
66490
66525
|
async refresh() {
|
|
66491
66526
|
this.doNextActive(
|
|
@@ -66504,11 +66539,11 @@ var GanttController = class extends TreeGridExController {
|
|
|
66504
66539
|
);
|
|
66505
66540
|
}
|
|
66506
66541
|
/**
|
|
66507
|
-
* 刷新指定树节点的子节点数据
|
|
66508
|
-
*
|
|
66509
|
-
* @param {(ITreeNodeData | IData)} nodeData 指定树节点数据,可以是节点数据,也可以是对应的实体数据
|
|
66542
|
+
* @description 刷新指定树节点的子节点数据
|
|
66543
|
+
* @param {{ _id?: string; srfkey?: string }} nodeData 指定树节点数据,可以是节点数据,也可以是对应的实体数据
|
|
66510
66544
|
* @param {boolean} [refreshParent=false] 是否是刷新给定节点数据的父节点的子节点数据
|
|
66511
|
-
* @
|
|
66545
|
+
* @returns {*} {Promise<void>}
|
|
66546
|
+
* @memberof GanttController
|
|
66512
66547
|
*/
|
|
66513
66548
|
async refreshNodeChildren(nodeData, refreshParent = false) {
|
|
66514
66549
|
const key = nodeData.srfkey ? "srfkey" : "_id";
|
|
@@ -66538,10 +66573,10 @@ var GanttController = class extends TreeGridExController {
|
|
|
66538
66573
|
});
|
|
66539
66574
|
}
|
|
66540
66575
|
/**
|
|
66541
|
-
* 处理默认展开
|
|
66542
|
-
*
|
|
66543
|
-
* @
|
|
66544
|
-
* @
|
|
66576
|
+
* @description 处理默认展开
|
|
66577
|
+
* @param {IGanttNodeData[]} data 节点数据
|
|
66578
|
+
* @returns {*} {Promise<void>}
|
|
66579
|
+
* @memberof GanttController
|
|
66545
66580
|
*/
|
|
66546
66581
|
async handleDefaultExpandNodes(data) {
|
|
66547
66582
|
for (let i = 0; i < data.length; i++) {
|
|
@@ -66557,11 +66592,10 @@ var GanttController = class extends TreeGridExController {
|
|
|
66557
66592
|
}
|
|
66558
66593
|
}
|
|
66559
66594
|
/**
|
|
66560
|
-
* 甘特图树节点点击事件
|
|
66561
|
-
*
|
|
66595
|
+
* @description 甘特图树节点点击事件
|
|
66562
66596
|
* @param {IGanttNodeData} _nodeData
|
|
66563
66597
|
* @param {MouseEvent} event
|
|
66564
|
-
* @
|
|
66598
|
+
* @returns {*} {Promise<void>}
|
|
66565
66599
|
* @memberof GanttController
|
|
66566
66600
|
*/
|
|
66567
66601
|
async onTreeNodeClick(_nodeData, event) {
|
|
@@ -66600,12 +66634,12 @@ var GanttController = class extends TreeGridExController {
|
|
|
66600
66634
|
}
|
|
66601
66635
|
}
|
|
66602
66636
|
/**
|
|
66603
|
-
* 设置行属性的值
|
|
66604
|
-
*
|
|
66637
|
+
* @description 设置行属性的值
|
|
66605
66638
|
* @param {TreeGridExRowState} row
|
|
66606
66639
|
* @param {string} name
|
|
66607
66640
|
* @param {unknown} value
|
|
66608
|
-
* @
|
|
66641
|
+
* @param {boolean} [ignore=false]
|
|
66642
|
+
* @returns {*} {Promise<void>}
|
|
66609
66643
|
* @memberof GanttController
|
|
66610
66644
|
*/
|
|
66611
66645
|
async setRowValue(row, name2, value, ignore = false) {
|
|
@@ -66630,9 +66664,10 @@ var GanttController = class extends TreeGridExController {
|
|
|
66630
66664
|
}
|
|
66631
66665
|
}
|
|
66632
66666
|
/**
|
|
66633
|
-
* 修改节点时间
|
|
66634
|
-
*
|
|
66635
|
-
* @param {
|
|
66667
|
+
* @description 修改节点时间
|
|
66668
|
+
* @param {IGanttNodeData} nodeData 节点数据
|
|
66669
|
+
* @param {{ begin?: string; end?: string }} { begin, end } 开始时间,结束时间
|
|
66670
|
+
* @returns {*} {Promise<void>}
|
|
66636
66671
|
* @memberof GanttController
|
|
66637
66672
|
*/
|
|
66638
66673
|
async modifyNodeTime(nodeData, { begin, end }) {
|
|
@@ -66653,10 +66688,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66653
66688
|
await this.save(rowState.data);
|
|
66654
66689
|
}
|
|
66655
66690
|
/**
|
|
66656
|
-
*
|
|
66657
|
-
*
|
|
66658
|
-
* @
|
|
66659
|
-
* @return {*} {Promise<void>}
|
|
66691
|
+
* @description 保存数据
|
|
66692
|
+
* @param {IGanttNodeData} nodeData 节点数据
|
|
66693
|
+
* @returns {*} {Promise<void>}
|
|
66660
66694
|
* @memberof GanttController
|
|
66661
66695
|
*/
|
|
66662
66696
|
async save(nodeData) {
|
|
@@ -66714,10 +66748,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66714
66748
|
await this.evt.emit("onSaveSuccess", void 0);
|
|
66715
66749
|
}
|
|
66716
66750
|
/**
|
|
66717
|
-
* 删除
|
|
66718
|
-
*
|
|
66751
|
+
* @description 删除
|
|
66719
66752
|
* @param {MDCtrlRemoveParams} [args]
|
|
66720
|
-
* @
|
|
66753
|
+
* @returns {*} {Promise<void>}
|
|
66721
66754
|
* @memberof GanttController
|
|
66722
66755
|
*/
|
|
66723
66756
|
async remove(args) {
|
|
@@ -66805,8 +66838,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
66805
66838
|
await this.evt.emit("onRemoveSuccess", void 0);
|
|
66806
66839
|
}
|
|
66807
66840
|
/**
|
|
66808
|
-
* 后台删除结束后界面删除逻辑
|
|
66809
|
-
*
|
|
66841
|
+
* @description 后台删除结束后界面删除逻辑
|
|
66810
66842
|
* @param {GanttDataSetNodeData} data
|
|
66811
66843
|
* @memberof GanttController
|
|
66812
66844
|
*/
|
|
@@ -66832,10 +66864,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66832
66864
|
}
|
|
66833
66865
|
}
|
|
66834
66866
|
/**
|
|
66835
|
-
* 新建行
|
|
66836
|
-
*
|
|
66867
|
+
* @description 新建行
|
|
66837
66868
|
* @param {MDCtrlLoadParams} [args={}]
|
|
66838
|
-
* @
|
|
66869
|
+
* @returns {*} {Promise<void>}
|
|
66839
66870
|
* @memberof GanttController
|
|
66840
66871
|
*/
|
|
66841
66872
|
async newRow(args = {}) {
|