@cloud-app-dev/vidc 1.0.37 → 1.0.41
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/es/AppLayout/AppHeader/index.d.ts +18 -0
- package/es/AppLayout/AppHeader/index.js +5 -6
- package/es/AppLayout/AppHorizontalMenu/MenuEmptyBox.d.ts +1 -0
- package/es/AppLayout/AppHorizontalMenu/SubGroup.d.ts +9 -0
- package/es/AppLayout/AppHorizontalMenu/index.d.ts +13 -0
- package/es/AppLayout/AppHorizontalMenu/index.js +6 -13
- package/es/AppLayout/AppInlineMenu/SubGroup.d.ts +9 -0
- package/es/AppLayout/AppInlineMenu/SubGroup.js +29 -70
- package/es/AppLayout/AppInlineMenu/index.d.ts +12 -0
- package/es/AppLayout/AppInlineMenu/index.js +10 -15
- package/es/AppLayout/AppLogo/index.d.ts +13 -0
- package/es/AppLayout/AppLogo/index.js +9 -10
- package/es/AppLayout/AppTools/index.d.ts +7 -9
- package/es/AppLayout/FunctionPreview/index.d.ts +22 -0
- package/es/AppLayout/FunctionPreview/index.js +33 -39
- package/es/AppLayout/Header/ListenceRoute.d.ts +5 -0
- package/es/AppLayout/Header/ListenceRoute.js +1 -1
- package/es/AppLayout/Header/ModifyPassword/index.d.ts +6 -0
- package/es/AppLayout/Header/ModifyPassword/index.js +72 -38
- package/es/AppLayout/Header/ModifyUserAvatar/index.d.ts +10 -0
- package/es/AppLayout/Header/ModifyUserAvatar/index.js +4 -10
- package/es/AppLayout/Header/NotifyAlarm.js +1 -2
- package/es/AppLayout/Header/Tools.d.ts +11 -0
- package/es/AppLayout/Header/Tools.js +2 -3
- package/es/AppLayout/Header/ToolsItem.d.ts +1 -0
- package/es/AppLayout/Header/ToolsItem.js +7 -14
- package/es/AppLayout/Header/UserAction.d.ts +10 -0
- package/es/AppLayout/Header/UserAction.js +28 -34
- package/es/AppLayout/Header/index.d.ts +9 -0
- package/es/AppLayout/Header/index.js +10 -22
- package/es/AppLayout/index.d.ts +10 -12
- package/es/AppLayout/index.js +2 -1
- package/es/OrgUserTree/index.d.ts +6 -0
- package/es/OrgUserTree/index.js +4 -0
- package/es/PlaceTree/index.js +2 -1
- package/es/TreeMode/index.d.ts +1 -0
- package/es/TreeMode/index.js +10 -1
- package/es/WorkerFlow/Form/UserSet.js +5 -2
- package/es/WorkerFlow/index.js +12 -5
- package/es/WorkerFlow/utils.d.ts +2 -0
- package/es/WorkerFlow/utils.js +34 -9
- package/package.json +2 -2
- package/scripts/entry.js +1 -1
package/es/WorkerFlow/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _useChangeEffect from "@cloud-app-dev/basic-components/es/useChangeEffect";
|
|
2
|
-
import
|
|
2
|
+
import "antd/lib/modal/style";
|
|
3
|
+
import _Modal from "antd/lib/modal";
|
|
3
4
|
|
|
4
5
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5
6
|
|
|
@@ -61,6 +62,11 @@ function WorkerFlow(_ref, ref) {
|
|
|
61
62
|
|
|
62
63
|
var drawerRef = useRef(null);
|
|
63
64
|
|
|
65
|
+
var _Modal$useModal = _Modal.useModal(),
|
|
66
|
+
_Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
|
|
67
|
+
modal = _Modal$useModal2[0],
|
|
68
|
+
contextHolder = _Modal$useModal2[1];
|
|
69
|
+
|
|
64
70
|
var updateNode = function updateNode() {
|
|
65
71
|
return setConfig(Object.assign({}, config));
|
|
66
72
|
}; // 链表操作: 几种行为, 添加行为,删除行为,点击行为 pRef.childNode -> node.childNode -> 后继
|
|
@@ -117,8 +123,9 @@ function WorkerFlow(_ref, ref) {
|
|
|
117
123
|
return;
|
|
118
124
|
}
|
|
119
125
|
|
|
126
|
+
var title = "\u662F\u5426\u5220\u9664\u8282\u70B9\"".concat(type === NodeTypes.BRANCH ? node.conditionNodes[index].nodeName : node.nodeName, "\"\uFF1F");
|
|
120
127
|
var options = {
|
|
121
|
-
title:
|
|
128
|
+
title: title,
|
|
122
129
|
okText: '确定',
|
|
123
130
|
cancelText: '取消'
|
|
124
131
|
};
|
|
@@ -153,7 +160,7 @@ function WorkerFlow(_ref, ref) {
|
|
|
153
160
|
}));
|
|
154
161
|
};
|
|
155
162
|
|
|
156
|
-
|
|
163
|
+
modal.confirm(Object.assign(Object.assign({}, options), {
|
|
157
164
|
onOk: onOk
|
|
158
165
|
}));
|
|
159
166
|
} // 获取节点
|
|
@@ -182,7 +189,7 @@ function WorkerFlow(_ref, ref) {
|
|
|
182
189
|
node.form = data.form || [];
|
|
183
190
|
node.userType = data.userType;
|
|
184
191
|
node.usersHandType = data.usersHandType;
|
|
185
|
-
node.owner = data.nodeUserList.map(function (v) {
|
|
192
|
+
node.owner = data.userType === 4 ? '直属主管' : data.nodeUserList.map(function (v) {
|
|
186
193
|
return v.name;
|
|
187
194
|
}).join(',');
|
|
188
195
|
node.emptyUserList = data.emptyUserList;
|
|
@@ -279,7 +286,7 @@ function WorkerFlow(_ref, ref) {
|
|
|
279
286
|
}), /*#__PURE__*/React.createElement(EndNode, {
|
|
280
287
|
nodeName: "\u6D41\u7A0B\u7ED3\u675F",
|
|
281
288
|
id: endId
|
|
282
|
-
})))), /*#__PURE__*/React.createElement(RefDrawer, {
|
|
289
|
+
}))), contextHolder), /*#__PURE__*/React.createElement(RefDrawer, {
|
|
283
290
|
ref: drawerRef
|
|
284
291
|
}));
|
|
285
292
|
}
|
package/es/WorkerFlow/utils.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { NodeItem, SubmitFlowItemType } from './interface';
|
|
2
2
|
export declare function getJAVATaskData(data: NodeItem): SubmitFlowItemType[];
|
|
3
|
+
export declare function getNextTaskId(node: NodeItem): string | undefined;
|
|
4
|
+
export declare function getNextNode(node: NodeItem): NodeItem | undefined;
|
|
3
5
|
export declare function filterNoticeNode(data: NodeItem): NodeItem;
|
|
4
6
|
export declare function getUserFormKeys(data: NodeItem): string[];
|
package/es/WorkerFlow/utils.js
CHANGED
|
@@ -14,7 +14,7 @@ import _ from 'lodash';
|
|
|
14
14
|
export function getJAVATaskData(data) {
|
|
15
15
|
var arr = [];
|
|
16
16
|
|
|
17
|
-
var fn = function fn(node) {
|
|
17
|
+
var fn = function fn(node, _nextNode) {
|
|
18
18
|
var _a, _b, _c, _d;
|
|
19
19
|
|
|
20
20
|
if (node.bpmnType === 'userTask') {
|
|
@@ -52,7 +52,12 @@ export function getJAVATaskData(data) {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
if (((_b = node.childNode) === null || _b === void 0 ? void 0 : _b.bpmnType) === 'userTask') {
|
|
55
|
-
item.nextTaskId = node.childNode
|
|
55
|
+
item.nextTaskId = getNextTaskId(node.childNode);
|
|
56
|
+
} // 连接条件nextTaskId
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
if (!node.childNode) {
|
|
60
|
+
item.nextTaskId = _nextNode === null || _nextNode === void 0 ? void 0 : _nextNode.id;
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
if (node.form) {
|
|
@@ -73,18 +78,16 @@ export function getJAVATaskData(data) {
|
|
|
73
78
|
arr.push(item);
|
|
74
79
|
}
|
|
75
80
|
|
|
81
|
+
var nextNode = getNextNode(node.childNode);
|
|
82
|
+
|
|
76
83
|
if (node.conditionNodes) {
|
|
77
84
|
node.conditionNodes.forEach(function (item) {
|
|
78
|
-
fn(item);
|
|
85
|
+
fn(item, nextNode);
|
|
79
86
|
});
|
|
80
87
|
}
|
|
81
88
|
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
fn(node.childNode.childNode);
|
|
85
|
-
} else {
|
|
86
|
-
fn(node.childNode);
|
|
87
|
-
}
|
|
89
|
+
if (nextNode) {
|
|
90
|
+
fn(nextNode, _nextNode);
|
|
88
91
|
}
|
|
89
92
|
};
|
|
90
93
|
|
|
@@ -96,6 +99,28 @@ export function getJAVATaskData(data) {
|
|
|
96
99
|
|
|
97
100
|
return arr;
|
|
98
101
|
}
|
|
102
|
+
export function getNextTaskId(node) {
|
|
103
|
+
if (!node) {
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (node.type !== 2) {
|
|
108
|
+
return node.id;
|
|
109
|
+
} else {
|
|
110
|
+
return getNextTaskId(node.childNode);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
export function getNextNode(node) {
|
|
114
|
+
if (!node) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (node.type !== 2) {
|
|
119
|
+
return node;
|
|
120
|
+
} else {
|
|
121
|
+
return getNextNode(node.childNode);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
99
124
|
export function filterNoticeNode(data) {
|
|
100
125
|
var newData = _.cloneDeep(data);
|
|
101
126
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@cloud-app-dev/vidc",
|
|
4
4
|
"description": "Video Image Data Componennts",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.41",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "dumi dev",
|
|
8
8
|
"docs:build": "dumi build",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"rc-queue-anim": "^2.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@cloud-app-dev/basic-components": "^1.0.
|
|
41
|
+
"@cloud-app-dev/basic-components": "^1.0.54",
|
|
42
42
|
"@types/chroma-js": "^2.1.3",
|
|
43
43
|
"@types/lodash": "^4.14.172",
|
|
44
44
|
"@umijs/test": "^3.0.5",
|
package/scripts/entry.js
CHANGED