@cloud-app-dev/vidc 1.0.37 → 1.0.38
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.
|
@@ -73,6 +73,9 @@ function UserSet(_ref) {
|
|
|
73
73
|
return cloneDeep(Object.assign(Object.assign({}, old), options));
|
|
74
74
|
});
|
|
75
75
|
}, []);
|
|
76
|
+
var users = useMemo(function () {
|
|
77
|
+
return state[state.type];
|
|
78
|
+
}, [state]);
|
|
76
79
|
var data = useMemo(function () {
|
|
77
80
|
return {
|
|
78
81
|
userType: state.type,
|
|
@@ -106,7 +109,7 @@ function UserSet(_ref) {
|
|
|
106
109
|
})), /*#__PURE__*/React.createElement(Content, {
|
|
107
110
|
type: state.type,
|
|
108
111
|
emptyUsers: state.emptyUsers,
|
|
109
|
-
users:
|
|
112
|
+
users: users,
|
|
110
113
|
chargeLevel: state.chargeLevel,
|
|
111
114
|
usersHandType: state.usersHandType,
|
|
112
115
|
onChange: function onChange(options) {
|
|
@@ -205,7 +208,7 @@ function UserSelectType3(_ref4) {
|
|
|
205
208
|
emptyUsers = _ref4.emptyUsers;
|
|
206
209
|
var userList = useMemo(function () {
|
|
207
210
|
return users.filter(function (v) {
|
|
208
|
-
return v.key === '
|
|
211
|
+
return v.key === 'groupId';
|
|
209
212
|
});
|
|
210
213
|
}, [users]);
|
|
211
214
|
return /*#__PURE__*/React.createElement("div", {
|
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.js
CHANGED
|
@@ -15,7 +15,7 @@ export function getJAVATaskData(data) {
|
|
|
15
15
|
var arr = [];
|
|
16
16
|
|
|
17
17
|
var fn = function fn(node) {
|
|
18
|
-
var _a, _b, _c, _d;
|
|
18
|
+
var _a, _b, _c, _d, _e;
|
|
19
19
|
|
|
20
20
|
if (node.bpmnType === 'userTask') {
|
|
21
21
|
var item = {
|
|
@@ -51,12 +51,12 @@ export function getJAVATaskData(data) {
|
|
|
51
51
|
item.multiVariableName = "assigneeList_".concat(node.id);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
if (((_b = node.childNode) === null || _b === void 0 ? void 0 : _b.bpmnType) === 'userTask') {
|
|
54
|
+
if (((_b = node.childNode) === null || _b === void 0 ? void 0 : _b.bpmnType) === 'userTask' && ((_c = node.childNode) === null || _c === void 0 ? void 0 : _c.type) !== 2) {
|
|
55
55
|
item.nextTaskId = node.childNode.id;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
if (node.form) {
|
|
59
|
-
item.formAuthority = JSON.stringify((
|
|
59
|
+
item.formAuthority = JSON.stringify((_d = node.form) === null || _d === void 0 ? void 0 : _d.map(function (v) {
|
|
60
60
|
return {
|
|
61
61
|
formAuth: v.auth,
|
|
62
62
|
formVariableName: v.name
|
|
@@ -64,7 +64,7 @@ export function getJAVATaskData(data) {
|
|
|
64
64
|
}));
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
if (((
|
|
67
|
+
if (((_e = node.childNode) === null || _e === void 0 ? void 0 : _e.type) === 2) {
|
|
68
68
|
item.copyUserIds = node.childNode.nodeUserList.map(function (v) {
|
|
69
69
|
return v.value;
|
|
70
70
|
});
|
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.38",
|
|
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.51",
|
|
42
42
|
"@types/chroma-js": "^2.1.3",
|
|
43
43
|
"@types/lodash": "^4.14.172",
|
|
44
44
|
"@umijs/test": "^3.0.5",
|