@zgfe/modules-dm 1.0.1
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/README.md +37 -0
- package/es/components/demo.d.ts +8 -0
- package/es/components/demo.js +23 -0
- package/es/constants/api.d.ts +27 -0
- package/es/constants/api.js +58 -0
- package/es/index.d.ts +5 -0
- package/es/index.js +5 -0
- package/es/modules/dataCollection/collectionAttributeList.d.ts +20 -0
- package/es/modules/dataCollection/collectionAttributeList.js +458 -0
- package/es/modules/dataCollection/collectionEventList.d.ts +13 -0
- package/es/modules/dataCollection/collectionEventList.js +317 -0
- package/es/modules/dataCollection/demo/index.d.ts +2 -0
- package/es/modules/dataCollection/demo/index.js +6 -0
- package/es/modules/dataCollection/index.d.ts +3 -0
- package/es/modules/dataCollection/index.js +97 -0
- package/es/modules/dataCollection/styles/index.less +249 -0
- package/es/modules/dataCollection/tablePlus.d.ts +34 -0
- package/es/modules/dataCollection/tablePlus.js +598 -0
- package/es/modules/dataManage/demo/index.d.ts +2 -0
- package/es/modules/dataManage/demo/index.js +6 -0
- package/es/modules/dataManage/index.d.ts +4 -0
- package/es/modules/dataManage/index.js +58 -0
- package/es/modules/dataManage/styles/index.less +26 -0
- package/es/modules/dataPlan/addEventOrUser.d.ts +34 -0
- package/es/modules/dataPlan/addEventOrUser.js +280 -0
- package/es/modules/dataPlan/addPlan.d.ts +10 -0
- package/es/modules/dataPlan/addPlan.js +644 -0
- package/es/modules/dataPlan/demo/index.d.ts +2 -0
- package/es/modules/dataPlan/demo/index.js +6 -0
- package/es/modules/dataPlan/eventList.d.ts +23 -0
- package/es/modules/dataPlan/eventList.js +21 -0
- package/es/modules/dataPlan/index.d.ts +4 -0
- package/es/modules/dataPlan/index.js +233 -0
- package/es/modules/dataPlan/search.d.ts +11 -0
- package/es/modules/dataPlan/search.js +42 -0
- package/es/modules/dataPlan/styles/index.less +269 -0
- package/es/modules/dataPlan/tablePlus.d.ts +22 -0
- package/es/modules/dataPlan/tablePlus.js +106 -0
- package/es/modules/dataPlan/userAttributeList.d.ts +19 -0
- package/es/modules/dataPlan/userAttributeList.js +77 -0
- package/es/types/flow.d.ts +395 -0
- package/es/types/flow.js +77 -0
- package/es/types.d.ts +412 -0
- package/es/types.js +106 -0
- package/es/utils/ajax.d.ts +3 -0
- package/es/utils/ajax.js +7 -0
- package/package.json +60 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './styles/index.less';
|
|
3
|
+
interface userPropPlanListType {
|
|
4
|
+
key?: string;
|
|
5
|
+
callTime?: string;
|
|
6
|
+
identify?: string;
|
|
7
|
+
propName: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
dataStatus?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface PropsType {
|
|
12
|
+
searchData: string;
|
|
13
|
+
userAttrData: userPropPlanListType[];
|
|
14
|
+
selectedRowKeys: React.Key[];
|
|
15
|
+
tableCheck: Function;
|
|
16
|
+
allCheck: Function;
|
|
17
|
+
}
|
|
18
|
+
declare const UserAttributeList: React.FC<PropsType>;
|
|
19
|
+
export default UserAttributeList;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
+
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
|
+
|
|
11
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
|
|
13
|
+
import { Select, Table, Checkbox } from 'antd';
|
|
14
|
+
var Option = Select.Option;
|
|
15
|
+
import React, { useEffect, useState } from 'react';
|
|
16
|
+
import './styles/index.less';
|
|
17
|
+
|
|
18
|
+
var UserAttributeList = function UserAttributeList(props) {
|
|
19
|
+
var classPrefix = 'user-list'; // console.log('userAttrData', props.userAttrData);
|
|
20
|
+
|
|
21
|
+
var _useState = useState([]),
|
|
22
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
23
|
+
renderData = _useState2[0],
|
|
24
|
+
setRenderData = _useState2[1];
|
|
25
|
+
|
|
26
|
+
useEffect(function () {
|
|
27
|
+
setRenderData(props.userAttrData);
|
|
28
|
+
}, [props.userAttrData]); // 表格列
|
|
29
|
+
|
|
30
|
+
var columns = [{
|
|
31
|
+
title: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Checkbox, {
|
|
32
|
+
style: {
|
|
33
|
+
marginRight: '10px'
|
|
34
|
+
},
|
|
35
|
+
onChange: function onChange(e) {
|
|
36
|
+
props.allCheck(e);
|
|
37
|
+
}
|
|
38
|
+
}), "\u5C5E\u6027\u540D\u79F0"),
|
|
39
|
+
dataIndex: 'propName',
|
|
40
|
+
key: 'propName',
|
|
41
|
+
render: function render(text, record, index) {
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: "table-single"
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
45
|
+
style: {
|
|
46
|
+
marginRight: '10px'
|
|
47
|
+
},
|
|
48
|
+
checked: props.selectedRowKeys.indexOf(record.key) != -1,
|
|
49
|
+
onChange: function onChange(e) {
|
|
50
|
+
props.tableCheck(e, record);
|
|
51
|
+
}
|
|
52
|
+
}), text);
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
title: '属性状态',
|
|
56
|
+
dataIndex: 'dataStatus',
|
|
57
|
+
key: 'dataStatus',
|
|
58
|
+
render: function render(value, record, index) {
|
|
59
|
+
return /*#__PURE__*/React.createElement("div", null, value ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("i", {
|
|
60
|
+
className: "point-active"
|
|
61
|
+
}), "\u6709\u6570\u636E") : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("i", {
|
|
62
|
+
className: "point-active-null"
|
|
63
|
+
}), "\u65E0\u6570\u636E"));
|
|
64
|
+
}
|
|
65
|
+
}];
|
|
66
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: classPrefix
|
|
68
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
69
|
+
className: "".concat(classPrefix, "-table"),
|
|
70
|
+
columns: columns,
|
|
71
|
+
dataSource: renderData,
|
|
72
|
+
bordered: true,
|
|
73
|
+
pagination: false
|
|
74
|
+
}));
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export default UserAttributeList;
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import ZModulesCDP from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* 可视化数据集
|
|
4
|
+
*/
|
|
5
|
+
declare namespace CdpFlowTypes {
|
|
6
|
+
/**
|
|
7
|
+
* 节点类型
|
|
8
|
+
*/
|
|
9
|
+
enum Shape {
|
|
10
|
+
/**
|
|
11
|
+
* 数据表
|
|
12
|
+
*/
|
|
13
|
+
table = "table",
|
|
14
|
+
/**
|
|
15
|
+
* 连接
|
|
16
|
+
*/
|
|
17
|
+
join = "join",
|
|
18
|
+
/**
|
|
19
|
+
* 表合并
|
|
20
|
+
*/
|
|
21
|
+
merge = "merge",
|
|
22
|
+
/**
|
|
23
|
+
* 行转列
|
|
24
|
+
*/
|
|
25
|
+
row2Column = "row2Column",
|
|
26
|
+
/**
|
|
27
|
+
* 列转行
|
|
28
|
+
*/
|
|
29
|
+
column2Row = "column2Row",
|
|
30
|
+
/**
|
|
31
|
+
* 数据拆分
|
|
32
|
+
*/
|
|
33
|
+
split = "split",
|
|
34
|
+
/**
|
|
35
|
+
* 聚合
|
|
36
|
+
*/
|
|
37
|
+
group = "group",
|
|
38
|
+
/**
|
|
39
|
+
* 字段设置
|
|
40
|
+
*/
|
|
41
|
+
columnSetting = "columnSetting",
|
|
42
|
+
/**
|
|
43
|
+
* 输出
|
|
44
|
+
*/
|
|
45
|
+
output = "output",
|
|
46
|
+
/**
|
|
47
|
+
* 连接线
|
|
48
|
+
*/
|
|
49
|
+
line = "line"
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 流程节点
|
|
53
|
+
*/
|
|
54
|
+
interface Node {
|
|
55
|
+
/**
|
|
56
|
+
* 节点id
|
|
57
|
+
*/
|
|
58
|
+
id: string;
|
|
59
|
+
/**
|
|
60
|
+
* 节点类型
|
|
61
|
+
*/
|
|
62
|
+
shape: Shape;
|
|
63
|
+
/**
|
|
64
|
+
* 节点展示名称
|
|
65
|
+
*/
|
|
66
|
+
label: string;
|
|
67
|
+
/**
|
|
68
|
+
* 节点绑定业务数据
|
|
69
|
+
*/
|
|
70
|
+
data: NodeData.Table | NodeData.Join | NodeData.ColumnSetting | NodeData.Group | NodeData.Merge | NodeData.Output;
|
|
71
|
+
/**
|
|
72
|
+
* 画布坐标
|
|
73
|
+
*/
|
|
74
|
+
position: {
|
|
75
|
+
x: number;
|
|
76
|
+
y: number;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* 节点尺寸
|
|
80
|
+
*/
|
|
81
|
+
size: {
|
|
82
|
+
width: number;
|
|
83
|
+
height: number;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 连接线
|
|
88
|
+
*/
|
|
89
|
+
interface Line {
|
|
90
|
+
/**
|
|
91
|
+
* 连接线id
|
|
92
|
+
*/
|
|
93
|
+
id: string;
|
|
94
|
+
/**
|
|
95
|
+
* 节点类型
|
|
96
|
+
*/
|
|
97
|
+
shape: Shape.line;
|
|
98
|
+
/**
|
|
99
|
+
* 来源节点关系
|
|
100
|
+
*/
|
|
101
|
+
source: {
|
|
102
|
+
/**
|
|
103
|
+
* 来源节点id
|
|
104
|
+
*/
|
|
105
|
+
cell: string;
|
|
106
|
+
/**
|
|
107
|
+
* 对应连接桩位置
|
|
108
|
+
*/
|
|
109
|
+
port: string;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* 目标节点
|
|
113
|
+
*/
|
|
114
|
+
target: {
|
|
115
|
+
/**
|
|
116
|
+
* 目标节点id
|
|
117
|
+
*/
|
|
118
|
+
cell: string;
|
|
119
|
+
/**
|
|
120
|
+
* 对应连接桩位置
|
|
121
|
+
*/
|
|
122
|
+
port: string;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 可视化数据集任务数据
|
|
127
|
+
*/
|
|
128
|
+
interface FlowData {
|
|
129
|
+
/**
|
|
130
|
+
* 所属应用id
|
|
131
|
+
*/
|
|
132
|
+
appId: number;
|
|
133
|
+
/**
|
|
134
|
+
* 流程图节点
|
|
135
|
+
*/
|
|
136
|
+
nodeList: Node[];
|
|
137
|
+
/**
|
|
138
|
+
* 连接线列表
|
|
139
|
+
*/
|
|
140
|
+
lineList: Line[];
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* 任务优先级
|
|
144
|
+
*/
|
|
145
|
+
enum JobLevel {
|
|
146
|
+
lower = "lower",
|
|
147
|
+
middle = "middle",
|
|
148
|
+
high = "high"
|
|
149
|
+
}
|
|
150
|
+
interface JobData {
|
|
151
|
+
/**
|
|
152
|
+
* 任务名称
|
|
153
|
+
*/
|
|
154
|
+
name?: string;
|
|
155
|
+
/**
|
|
156
|
+
* 任务描述
|
|
157
|
+
*/
|
|
158
|
+
desc?: string;
|
|
159
|
+
/**
|
|
160
|
+
* 任务优先级
|
|
161
|
+
*/
|
|
162
|
+
level?: JobLevel;
|
|
163
|
+
/**
|
|
164
|
+
* 更新设置
|
|
165
|
+
*/
|
|
166
|
+
updateSetting?: ZModulesCDP.DataSet.CreateParam['updateSetting'];
|
|
167
|
+
/**
|
|
168
|
+
* 更新方式
|
|
169
|
+
*/
|
|
170
|
+
syncType?: ZModulesCDP.DataSet.CreateParam['syncType'];
|
|
171
|
+
/**
|
|
172
|
+
* 增量更新依据字段
|
|
173
|
+
* 当updateType为增量更新时必传
|
|
174
|
+
*/
|
|
175
|
+
updateBy?: ZModulesCDP.DataSet.CreateParam['updateBy'];
|
|
176
|
+
/**
|
|
177
|
+
* 更新时间
|
|
178
|
+
*/
|
|
179
|
+
lastUpdateTime?: string;
|
|
180
|
+
/**
|
|
181
|
+
* 创建时间
|
|
182
|
+
*/
|
|
183
|
+
createTime?: string;
|
|
184
|
+
/**
|
|
185
|
+
* 更新次数
|
|
186
|
+
*/
|
|
187
|
+
updateTimes?: number;
|
|
188
|
+
/**
|
|
189
|
+
* 创建人
|
|
190
|
+
*/
|
|
191
|
+
createUser?: string;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* 节点数据
|
|
195
|
+
*/
|
|
196
|
+
namespace NodeData {
|
|
197
|
+
interface Base {
|
|
198
|
+
icon?: string;
|
|
199
|
+
label?: string;
|
|
200
|
+
status?: 'success' | 'failed';
|
|
201
|
+
code?: number;
|
|
202
|
+
/**
|
|
203
|
+
* 执行code,用于预览数据和查看日志的凭证
|
|
204
|
+
*/
|
|
205
|
+
runCode?: string;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* 数据表信息
|
|
209
|
+
*/
|
|
210
|
+
interface Table extends Base {
|
|
211
|
+
shape: Shape.table;
|
|
212
|
+
/**
|
|
213
|
+
* 数据集id
|
|
214
|
+
*/
|
|
215
|
+
datasetId: number;
|
|
216
|
+
/**
|
|
217
|
+
* 表名称
|
|
218
|
+
*/
|
|
219
|
+
tableName: string;
|
|
220
|
+
/**
|
|
221
|
+
* 选中字段列表
|
|
222
|
+
*/
|
|
223
|
+
columnList?: ZModulesCDP.DataSet.Column[];
|
|
224
|
+
/**
|
|
225
|
+
* 抽取设置规则列表
|
|
226
|
+
*/
|
|
227
|
+
columnRules?: ZModulesCDP.DataSet.ColumnRule[];
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* 连接
|
|
231
|
+
*/
|
|
232
|
+
interface Join extends Base {
|
|
233
|
+
shape: Shape.join;
|
|
234
|
+
/**
|
|
235
|
+
* 连接类型
|
|
236
|
+
*/
|
|
237
|
+
type: 'inner' | 'right' | 'left' | 'all';
|
|
238
|
+
/**
|
|
239
|
+
* 连接条件
|
|
240
|
+
* [[table1.id,table2.id], [table1.name,table2.name]]
|
|
241
|
+
*/
|
|
242
|
+
joinOn: [ZModulesCDP.DataSet.Column, ZModulesCDP.DataSet.Column][];
|
|
243
|
+
/**
|
|
244
|
+
* 合并结果
|
|
245
|
+
*/
|
|
246
|
+
resultTable: {
|
|
247
|
+
/**
|
|
248
|
+
* 主表字段
|
|
249
|
+
*/
|
|
250
|
+
table1: ModifyColumn[];
|
|
251
|
+
/**
|
|
252
|
+
* 从表字段
|
|
253
|
+
*/
|
|
254
|
+
table2: ModifyColumn[];
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* 字段设置
|
|
259
|
+
*/
|
|
260
|
+
interface ColumnSetting extends Base {
|
|
261
|
+
shape: Shape.columnSetting;
|
|
262
|
+
/**
|
|
263
|
+
* 字段列表
|
|
264
|
+
*/
|
|
265
|
+
columns: {
|
|
266
|
+
/**
|
|
267
|
+
* 原始字段
|
|
268
|
+
*/
|
|
269
|
+
origin: ZModulesCDP.DataSet.Column;
|
|
270
|
+
/**
|
|
271
|
+
* 修改后的类型
|
|
272
|
+
*/
|
|
273
|
+
modifyType?: ZModulesCDP.DataSet.Column['type'];
|
|
274
|
+
/**
|
|
275
|
+
* 修改后的名称
|
|
276
|
+
*/
|
|
277
|
+
modifyName?: string;
|
|
278
|
+
}[];
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* 聚合
|
|
282
|
+
*/
|
|
283
|
+
interface Group extends Base {
|
|
284
|
+
shape: Shape.group;
|
|
285
|
+
/**
|
|
286
|
+
* 聚合字段列表
|
|
287
|
+
*/
|
|
288
|
+
group: {
|
|
289
|
+
/**
|
|
290
|
+
* 聚合字段
|
|
291
|
+
*/
|
|
292
|
+
column: ZModulesCDP.DataSet.Column;
|
|
293
|
+
/**
|
|
294
|
+
* 聚合函数类型
|
|
295
|
+
*/
|
|
296
|
+
func: 'max' | 'min' | 'sum' | 'avg' | 'count';
|
|
297
|
+
}[];
|
|
298
|
+
/**
|
|
299
|
+
* 分组字段列表
|
|
300
|
+
*/
|
|
301
|
+
groupBy: ZModulesCDP.DataSet.Column[];
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* 合并
|
|
305
|
+
*/
|
|
306
|
+
interface Merge extends Base {
|
|
307
|
+
shape?: Shape.merge;
|
|
308
|
+
groupInfoList: {
|
|
309
|
+
/**
|
|
310
|
+
* 表唯一标记code
|
|
311
|
+
*/
|
|
312
|
+
code: string;
|
|
313
|
+
/**
|
|
314
|
+
* 选中字段列表
|
|
315
|
+
*/
|
|
316
|
+
columnList?: ZModulesCDP.DataSet.Column[];
|
|
317
|
+
}[];
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* 输出
|
|
321
|
+
*/
|
|
322
|
+
interface Output extends Base {
|
|
323
|
+
shape?: Shape.output;
|
|
324
|
+
/**
|
|
325
|
+
* 数据集id(选择已有数据集时有)
|
|
326
|
+
*/
|
|
327
|
+
datasetId?: number;
|
|
328
|
+
/**
|
|
329
|
+
* 表名称
|
|
330
|
+
*/
|
|
331
|
+
tableName?: string;
|
|
332
|
+
/**
|
|
333
|
+
* 数据集名称
|
|
334
|
+
*/
|
|
335
|
+
datasetName?: string;
|
|
336
|
+
/**
|
|
337
|
+
* 数据集描述
|
|
338
|
+
*/
|
|
339
|
+
datasetDesc?: string;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* 预览数据
|
|
344
|
+
*/
|
|
345
|
+
interface OverviewData {
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* 输出节点字段比较列结构
|
|
349
|
+
*/
|
|
350
|
+
interface CompareColumn {
|
|
351
|
+
origin?: ZModulesCDP.DataSet.Column;
|
|
352
|
+
name: string;
|
|
353
|
+
/**
|
|
354
|
+
* 字段是否在输出结构中存在
|
|
355
|
+
*/
|
|
356
|
+
output: {
|
|
357
|
+
/**
|
|
358
|
+
* 表明字段名是否存在
|
|
359
|
+
*/
|
|
360
|
+
exist: boolean;
|
|
361
|
+
type: string;
|
|
362
|
+
/**
|
|
363
|
+
* 表明字段类型是否一致
|
|
364
|
+
*/
|
|
365
|
+
typeNotMatch: boolean;
|
|
366
|
+
origin: ZModulesCDP.DataSet.Column;
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* 字段是否在数据集结构中存在
|
|
370
|
+
*/
|
|
371
|
+
dataset: boolean;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* 修改字段
|
|
375
|
+
*/
|
|
376
|
+
interface ModifyColumn {
|
|
377
|
+
/**
|
|
378
|
+
* react处理循环数据用
|
|
379
|
+
*/
|
|
380
|
+
key?: string;
|
|
381
|
+
/**
|
|
382
|
+
* 原始字段
|
|
383
|
+
*/
|
|
384
|
+
origin: ZModulesCDP.DataSet.Column;
|
|
385
|
+
/**
|
|
386
|
+
* 修改后的类型
|
|
387
|
+
*/
|
|
388
|
+
modifyType?: ZModulesCDP.DataSet.Column['type'];
|
|
389
|
+
/**
|
|
390
|
+
* 修改后的名称
|
|
391
|
+
*/
|
|
392
|
+
modifyName?: string;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
export default CdpFlowTypes;
|
package/es/types/flow.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 可视化数据集
|
|
3
|
+
*/
|
|
4
|
+
var CdpFlowTypes;
|
|
5
|
+
|
|
6
|
+
(function (CdpFlowTypes) {
|
|
7
|
+
/**
|
|
8
|
+
* 节点类型
|
|
9
|
+
*/
|
|
10
|
+
var Shape;
|
|
11
|
+
|
|
12
|
+
(function (Shape) {
|
|
13
|
+
/**
|
|
14
|
+
* 数据表
|
|
15
|
+
*/
|
|
16
|
+
Shape["table"] = "table";
|
|
17
|
+
/**
|
|
18
|
+
* 连接
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
Shape["join"] = "join";
|
|
22
|
+
/**
|
|
23
|
+
* 表合并
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
Shape["merge"] = "merge";
|
|
27
|
+
/**
|
|
28
|
+
* 行转列
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
Shape["row2Column"] = "row2Column";
|
|
32
|
+
/**
|
|
33
|
+
* 列转行
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
Shape["column2Row"] = "column2Row";
|
|
37
|
+
/**
|
|
38
|
+
* 数据拆分
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
Shape["split"] = "split";
|
|
42
|
+
/**
|
|
43
|
+
* 聚合
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
Shape["group"] = "group";
|
|
47
|
+
/**
|
|
48
|
+
* 字段设置
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
Shape["columnSetting"] = "columnSetting";
|
|
52
|
+
/**
|
|
53
|
+
* 输出
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
Shape["output"] = "output";
|
|
57
|
+
/**
|
|
58
|
+
* 连接线
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
Shape["line"] = "line";
|
|
62
|
+
})(Shape = CdpFlowTypes.Shape || (CdpFlowTypes.Shape = {}));
|
|
63
|
+
/**
|
|
64
|
+
* 任务优先级
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
var JobLevel;
|
|
69
|
+
|
|
70
|
+
(function (JobLevel) {
|
|
71
|
+
JobLevel["lower"] = "lower";
|
|
72
|
+
JobLevel["middle"] = "middle";
|
|
73
|
+
JobLevel["high"] = "high";
|
|
74
|
+
})(JobLevel = CdpFlowTypes.JobLevel || (CdpFlowTypes.JobLevel = {}));
|
|
75
|
+
})(CdpFlowTypes || (CdpFlowTypes = {}));
|
|
76
|
+
|
|
77
|
+
export default CdpFlowTypes;
|