@ibiz-template/runtime 0.6.0 → 0.6.1-dev.0
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 +343 -83
- package/dist/index.system.min.js +1 -1
- package/out/command/app/open-app-view/open-app-view.d.ts +1 -1
- package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
- package/out/command/app/open-app-view/open-app-view.js +3 -3
- package/out/controller/constant/control/tree-grid-ex/tree-grid-ex-notify.state.d.ts +2 -1
- package/out/controller/constant/control/tree-grid-ex/tree-grid-ex-notify.state.d.ts.map +1 -1
- package/out/controller/constant/control/tree-grid-ex/tree-grid-ex-notify.state.js +1 -0
- package/out/controller/control/app-menu/app-menu.controller.d.ts +1 -1
- package/out/controller/control/app-menu/app-menu.controller.d.ts.map +1 -1
- package/out/controller/control/app-menu/app-menu.controller.js +2 -2
- package/out/controller/control/gantt/gantt.controller.d.ts +50 -14
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +285 -41
- package/out/controller/control/gantt/gantt.service.d.ts +7 -9
- package/out/controller/control/gantt/gantt.service.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.service.js +29 -9
- package/out/controller/control/tab-exp-panel/tab-exp-panel.controller.d.ts.map +1 -1
- package/out/controller/control/tab-exp-panel/tab-exp-panel.controller.js +1 -0
- package/out/controller/notification/internal-message.controller.d.ts.map +1 -1
- package/out/controller/notification/internal-message.controller.js +2 -3
- package/out/engine/view-base.engine.d.ts.map +1 -1
- package/out/engine/view-base.engine.js +8 -3
- package/out/interface/controller/common/i-nav-view-msg/i-nav-view-msg.d.ts +9 -0
- package/out/interface/controller/common/i-nav-view-msg/i-nav-view-msg.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-gantt.event.d.ts +10 -0
- package/out/interface/controller/event/control/i-gantt.event.d.ts.map +1 -1
- package/out/interface/util/i-open-view-util/i-open-view-util.d.ts +1 -1
- package/out/interface/util/i-open-view-util/i-open-view-util.d.ts.map +1 -1
- package/out/service/vo/gantt-node-data/gantt-node-data-util.js +1 -1
- package/package.json +2 -2
- package/src/command/app/open-app-view/open-app-view.ts +3 -2
- package/src/controller/constant/control/tree-grid-ex/tree-grid-ex-notify.state.ts +1 -0
- package/src/controller/control/app-menu/app-menu.controller.ts +2 -0
- package/src/controller/control/gantt/gantt.controller.ts +354 -53
- package/src/controller/control/gantt/gantt.service.ts +38 -17
- package/src/controller/control/tab-exp-panel/tab-exp-panel.controller.ts +1 -0
- package/src/controller/notification/internal-message.controller.ts +2 -3
- package/src/engine/view-base.engine.ts +10 -3
- package/src/interface/controller/common/i-nav-view-msg/i-nav-view-msg.ts +10 -0
- package/src/interface/controller/event/control/i-gantt.event.ts +8 -1
- package/src/interface/util/i-open-view-util/i-open-view-util.ts +1 -0
- package/src/service/vo/gantt-node-data/gantt-node-data-util.ts +1 -1
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
IDETreeNode,
|
|
5
5
|
IDETreeNodeRS,
|
|
6
6
|
} from '@ibiz/model-core';
|
|
7
|
-
import {
|
|
7
|
+
import { ModelError } from '@ibiz-template/core';
|
|
8
8
|
import { IGanttNodeData } from '../../../interface';
|
|
9
9
|
import { getChildNodeRSs, getRootNode, getTreeNode } from '../../../model';
|
|
10
10
|
import { handleAllSettled } from '../../../utils';
|
|
@@ -26,28 +26,49 @@ import {
|
|
|
26
26
|
*/
|
|
27
27
|
export class GanttService extends TreeService {
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* 获取节点草稿
|
|
30
30
|
*
|
|
31
|
-
* @
|
|
32
|
-
* @param {
|
|
33
|
-
* @param {
|
|
34
|
-
* @param {
|
|
35
|
-
* @
|
|
36
|
-
* @return {*} {Promise<IHttpResponse<IData>>}
|
|
31
|
+
* @param {IDETreeDataSetNode} nodeModel
|
|
32
|
+
* @param {(IDETreeNodeRS | undefined)} nodeRS
|
|
33
|
+
* @param {(IGanttNodeData | undefined)} parentNodeData
|
|
34
|
+
* @param {TreeFetchOpts} opts
|
|
35
|
+
* @return {*} {Promise<IGanttNodeData>}
|
|
37
36
|
* @memberof GanttService
|
|
38
37
|
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
): Promise<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
async getNodeDraft(
|
|
39
|
+
nodeModel: IDETreeDataSetNode,
|
|
40
|
+
nodeRS: IDETreeNodeRS | undefined,
|
|
41
|
+
parentNodeData: IGanttNodeData | undefined,
|
|
42
|
+
opts: TreeFetchOpts,
|
|
43
|
+
): Promise<IGanttNodeData> {
|
|
44
|
+
const { appDataEntityId } = nodeModel;
|
|
45
|
+
|
|
46
|
+
// 处理查询参数,没有关系的时候不处理参数了
|
|
47
|
+
const { context, params, navContext, navParams } = nodeRS
|
|
48
|
+
? this.getNodeRSFilterParams(nodeRS, parentNodeData, opts)
|
|
49
|
+
: {
|
|
50
|
+
context: opts.context,
|
|
51
|
+
params: opts.params,
|
|
52
|
+
navContext: {},
|
|
53
|
+
navParams: {},
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const response = await this.app.deService.exec(
|
|
57
|
+
appDataEntityId!,
|
|
58
|
+
'getdraft',
|
|
48
59
|
context,
|
|
49
60
|
params,
|
|
50
61
|
);
|
|
62
|
+
const { data } = response;
|
|
63
|
+
if (nodeRS?.parentDER1N?.pickupDEFName && parentNodeData) {
|
|
64
|
+
data[nodeRS.parentDER1N.pickupDEFName] = parentNodeData._value;
|
|
65
|
+
}
|
|
66
|
+
return new GanttDataSetNodeData(this.model, nodeModel, parentNodeData, {
|
|
67
|
+
data: response.data,
|
|
68
|
+
leaf: true,
|
|
69
|
+
navContext,
|
|
70
|
+
navParams,
|
|
71
|
+
});
|
|
51
72
|
}
|
|
52
73
|
|
|
53
74
|
/**
|
|
@@ -156,10 +156,9 @@ export class InternalMessageController implements IInternalMessageController {
|
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
// todo 后台接口适配
|
|
160
159
|
await this.service.markRead(message.id);
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
find.status = 'READ';
|
|
161
|
+
this.unreadCount -= 1;
|
|
163
162
|
|
|
164
163
|
this.evt.emit('unreadCountChange', this.unreadCount);
|
|
165
164
|
this.evt.emit('dataChange');
|
|
@@ -133,9 +133,7 @@ export class ViewEngineBase implements IViewEngine {
|
|
|
133
133
|
if (model.showCaptionBar === false) {
|
|
134
134
|
names.push('view_captionbar');
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
names.push('view_toolbar', 'toolbar');
|
|
138
|
-
}
|
|
136
|
+
|
|
139
137
|
const toolBarList = ['lefttoolbar', 'righttoolbar', 'footertoolbar'];
|
|
140
138
|
toolBarList.forEach(name => {
|
|
141
139
|
if (!getControl(model, name)) {
|
|
@@ -150,6 +148,15 @@ export class ViewEngineBase implements IViewEngine {
|
|
|
150
148
|
if (!this.calcViewFooterVisible()) {
|
|
151
149
|
names.push('view_footer');
|
|
152
150
|
}
|
|
151
|
+
if (
|
|
152
|
+
!this.isExistAndInLayout('lefttoolbar') &&
|
|
153
|
+
!this.isExistAndInLayout('righttoolbar') &&
|
|
154
|
+
model.showCaptionBar === false
|
|
155
|
+
) {
|
|
156
|
+
names.push('view_toolbar');
|
|
157
|
+
}
|
|
158
|
+
} else if (!getControl(model, 'toolbar')) {
|
|
159
|
+
names.push('view_toolbar', 'toolbar');
|
|
153
160
|
}
|
|
154
161
|
return names;
|
|
155
162
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ITreeGridExRowState } from '../../state';
|
|
2
|
+
import { EventBase } from '../argument';
|
|
1
3
|
import { ITreeGridExEvent } from './i-tree-grid-ex.event';
|
|
2
4
|
|
|
3
5
|
/**
|
|
@@ -9,4 +11,9 @@ import { ITreeGridExEvent } from './i-tree-grid-ex.event';
|
|
|
9
11
|
* @interface IGanttEvent
|
|
10
12
|
* @extends {IMDControlEvent}
|
|
11
13
|
*/
|
|
12
|
-
export interface IGanttEvent extends ITreeGridExEvent {
|
|
14
|
+
export interface IGanttEvent extends ITreeGridExEvent {
|
|
15
|
+
onNewRow: {
|
|
16
|
+
event: { row: ITreeGridExRowState } & EventBase;
|
|
17
|
+
emitArgs: { row: ITreeGridExRowState };
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -20,7 +20,7 @@ export const calcDataItemValue = (
|
|
|
20
20
|
return nodeDataItem.detreeColumnId === fieldCodeName;
|
|
21
21
|
});
|
|
22
22
|
if (targetTreeNodeDataItem && targetTreeNodeDataItem.appDEFieldId) {
|
|
23
|
-
result = data[targetTreeNodeDataItem.appDEFieldId];
|
|
23
|
+
result = data[targetTreeNodeDataItem.appDEFieldId!.toLowerCase()];
|
|
24
24
|
}
|
|
25
25
|
return result;
|
|
26
26
|
};
|