@zgfe/modules-dm 1.0.34-heyh.2 → 1.0.34-heyh.9
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/modules/dataCollection/components/createVirtualDrawer.js +11 -6
- package/es/modules/dataCollection/components/eventGroupingDrawer.js +37 -29
- package/es/modules/dataCollection/components/selectAttributes.js +5 -2
- package/es/modules/dataCollection/components/sortableComponnet.js +13 -5
- package/es/modules/dataCollection/components/tablePlus.js +3 -1
- package/es/modules/dataCollection/components/virtualTablePlus.js +36 -4
- package/es/modules/dataCollection/index.js +1 -1
- package/es/modules/dataCollection/styles/index.less +96 -60
- package/es/modules/dataCollection/virtualEventList.js +3 -2
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
11
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
14
|
-
import { Input, Button, Select, Drawer, Form } from 'antd';
|
|
14
|
+
import { Input, Button, Select, Drawer, Form, message } from 'antd';
|
|
15
15
|
import { Fragment } from 'react';
|
|
16
16
|
var TextArea = Input.TextArea;
|
|
17
17
|
import request from '../../../utils/ajax';
|
|
@@ -76,9 +76,11 @@ var CreateVirtualDrawer = function CreateVirtualDrawer(props) {
|
|
|
76
76
|
platform: currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform
|
|
77
77
|
}, data)
|
|
78
78
|
}).then(function (res) {
|
|
79
|
-
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
79
|
+
if ((res === null || res === void 0 ? void 0 : res.code) === '100000' && res.data === 1) {
|
|
80
80
|
refresh();
|
|
81
81
|
setCreateVirtualShow(false);
|
|
82
|
+
} else {
|
|
83
|
+
message.error(res === null || res === void 0 ? void 0 : res.msg);
|
|
82
84
|
}
|
|
83
85
|
});
|
|
84
86
|
} else {
|
|
@@ -89,9 +91,11 @@ var CreateVirtualDrawer = function CreateVirtualDrawer(props) {
|
|
|
89
91
|
platform: currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform
|
|
90
92
|
}, data)
|
|
91
93
|
}).then(function (res) {
|
|
92
|
-
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
94
|
+
if ((res === null || res === void 0 ? void 0 : res.code) === '100000' && res.data === 1) {
|
|
93
95
|
refresh();
|
|
94
96
|
setCreateVirtualShow(false);
|
|
97
|
+
} else {
|
|
98
|
+
message.error(res === null || res === void 0 ? void 0 : res.msg);
|
|
95
99
|
}
|
|
96
100
|
});
|
|
97
101
|
}
|
|
@@ -107,7 +111,7 @@ var CreateVirtualDrawer = function CreateVirtualDrawer(props) {
|
|
|
107
111
|
};
|
|
108
112
|
return /*#__PURE__*/React.createElement(Drawer, {
|
|
109
113
|
className: classPrefix,
|
|
110
|
-
width:
|
|
114
|
+
width: 700,
|
|
111
115
|
title: "".concat(virtualDrawerType === 'edit' ? '编辑' : virtualDrawerType === 'see' ? '查看' : '创建', "\u865A\u62DF\u4E8B\u4EF6"),
|
|
112
116
|
placement: "right",
|
|
113
117
|
destroyOnClose: true,
|
|
@@ -148,7 +152,8 @@ var CreateVirtualDrawer = function CreateVirtualDrawer(props) {
|
|
|
148
152
|
message: '仅能输入英文、符号、数字'
|
|
149
153
|
}]
|
|
150
154
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
151
|
-
maxLength:
|
|
155
|
+
maxLength: 20,
|
|
156
|
+
disabled: virtualDrawerType === 'edit'
|
|
152
157
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
153
158
|
label: "\u522B\u540D",
|
|
154
159
|
name: "aliasName",
|
|
@@ -157,7 +162,7 @@ var CreateVirtualDrawer = function CreateVirtualDrawer(props) {
|
|
|
157
162
|
message: '请输入虚拟事件名称'
|
|
158
163
|
}]
|
|
159
164
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
160
|
-
maxLength:
|
|
165
|
+
maxLength: 20
|
|
161
166
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
162
167
|
label: "\u5206\u7EC4",
|
|
163
168
|
name: "eventGroupId"
|
|
@@ -10,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
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; }
|
|
11
11
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
13
|
+
import { BizGlobalDataContext, IconFont, BizLoading } from '@zgfe/business-lib';
|
|
14
14
|
import { Input, Modal, message, Drawer, Popover, Checkbox, Select, Button } from 'antd';
|
|
15
15
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
16
16
|
import request from '../../../utils/ajax';
|
|
@@ -33,7 +33,12 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
33
33
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
34
34
|
isDragDisabled = _useState4[0],
|
|
35
35
|
setIsDragDisabled = _useState4[1];
|
|
36
|
+
var _useState5 = useState(false),
|
|
37
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
38
|
+
loading = _useState6[0],
|
|
39
|
+
setLoading = _useState6[1];
|
|
36
40
|
var queryList = function queryList() {
|
|
41
|
+
setLoading(true);
|
|
37
42
|
request(apis.queryCollectionEventList, {
|
|
38
43
|
method: 'post',
|
|
39
44
|
data: {
|
|
@@ -46,6 +51,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
46
51
|
eventListHandle(res.data);
|
|
47
52
|
setGroupingData(res.data);
|
|
48
53
|
}
|
|
54
|
+
setLoading(false);
|
|
49
55
|
});
|
|
50
56
|
};
|
|
51
57
|
useEffect(function () {
|
|
@@ -117,26 +123,26 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
117
123
|
}
|
|
118
124
|
};
|
|
119
125
|
// 移动
|
|
120
|
-
var
|
|
121
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
122
|
-
eventMoveShow = _useState6[0],
|
|
123
|
-
setEventMoveShow = _useState6[1];
|
|
124
|
-
var _useState7 = useState(-1),
|
|
126
|
+
var _useState7 = useState(undefined),
|
|
125
127
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
var _useState9 = useState(
|
|
128
|
+
eventMoveShow = _useState8[0],
|
|
129
|
+
setEventMoveShow = _useState8[1];
|
|
130
|
+
var _useState9 = useState(-1),
|
|
129
131
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
var _useState11 = useState(
|
|
132
|
+
eventMoveChangeId = _useState10[0],
|
|
133
|
+
setEventMoveChangeId = _useState10[1];
|
|
134
|
+
var _useState11 = useState([]),
|
|
133
135
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
var _useState13 = useState(
|
|
136
|
+
eventMoveOption = _useState12[0],
|
|
137
|
+
setEventMoveOption = _useState12[1];
|
|
138
|
+
var _useState13 = useState(0),
|
|
137
139
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
eventMoveLength = _useState14[0],
|
|
141
|
+
setEventMoveLength = _useState14[1];
|
|
142
|
+
var _useState15 = useState(''),
|
|
143
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
144
|
+
eventMoveIds = _useState16[0],
|
|
145
|
+
setEventMoveIds = _useState16[1];
|
|
140
146
|
var eventMove = function eventMove(groupId) {
|
|
141
147
|
var data = eventMoveData(groupId, groupingData, setGroupingData);
|
|
142
148
|
setEventMoveOption(data.groupingOption);
|
|
@@ -193,18 +199,18 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
193
199
|
}, "\u786E\u5B9A")));
|
|
194
200
|
};
|
|
195
201
|
// 创建分组 & 修改分组名
|
|
196
|
-
var
|
|
197
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
198
|
-
createOrEditGrpup = _useState16[0],
|
|
199
|
-
setCreateOrEditGrpup = _useState16[1];
|
|
200
|
-
var _useState17 = useState(-1),
|
|
202
|
+
var _useState17 = useState(null),
|
|
201
203
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
var _useState19 = useState(
|
|
204
|
+
createOrEditGrpup = _useState18[0],
|
|
205
|
+
setCreateOrEditGrpup = _useState18[1];
|
|
206
|
+
var _useState19 = useState(-1),
|
|
205
207
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
206
|
-
|
|
207
|
-
|
|
208
|
+
grpupModalSelectGrpupId = _useState20[0],
|
|
209
|
+
setGrpupModalSelectGrpupId = _useState20[1];
|
|
210
|
+
var _useState21 = useState(''),
|
|
211
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
212
|
+
grpupNameInput = _useState22[0],
|
|
213
|
+
setGrpupNameInput = _useState22[1];
|
|
208
214
|
var GrpupModalHandle = function GrpupModalHandle() {
|
|
209
215
|
if (grpupNameInput === '') {
|
|
210
216
|
message.error('请填写分组名');
|
|
@@ -240,7 +246,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
240
246
|
};
|
|
241
247
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
|
|
242
248
|
className: classPrefix,
|
|
243
|
-
width:
|
|
249
|
+
width: 700,
|
|
244
250
|
title: /*#__PURE__*/React.createElement("div", null, "\u4E8B\u4EF6\u5206\u7EC4\u7BA1\u7406", /*#__PURE__*/React.createElement("span", null, "\u7EDF\u4E00\u7BA1\u7406\u57CB\u70B9\u4E8B\u4EF6\u548C\u865A\u62DF\u4E8B\u4EF6\u4E1A\u52A1\u5206\u7EC4\uFF0C\u652F\u6301\u5BF9\u4E8B\u4EF6\u8C03\u6574\u6392\u5E8F\u548C\u9690\u85CF")),
|
|
245
251
|
placement: "right",
|
|
246
252
|
onClose: function onClose() {
|
|
@@ -262,6 +268,8 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
262
268
|
setEventMoveShow(undefined);
|
|
263
269
|
}
|
|
264
270
|
}))
|
|
271
|
+
}, /*#__PURE__*/React.createElement(BizLoading, {
|
|
272
|
+
spinning: loading
|
|
265
273
|
}, /*#__PURE__*/React.createElement(DragDropContext, {
|
|
266
274
|
onDragEnd: onDragEnd
|
|
267
275
|
}, groupingData.map(function (item, index) {
|
|
@@ -350,7 +358,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
350
358
|
}))));
|
|
351
359
|
}));
|
|
352
360
|
});
|
|
353
|
-
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
361
|
+
})))), /*#__PURE__*/React.createElement(Modal, {
|
|
354
362
|
wrapClassName: "create-or-edit-grpup-modal",
|
|
355
363
|
title: "".concat(createOrEditGrpup === 'create' ? '创建分组' : '修改分组名'),
|
|
356
364
|
bodyStyle: {
|
|
@@ -125,7 +125,7 @@ var SelectAttributes = function SelectAttributes(props) {
|
|
|
125
125
|
}, [searchValue]);
|
|
126
126
|
// 渲染属性列表
|
|
127
127
|
var selectAttributesRender = function selectAttributesRender() {
|
|
128
|
-
return selectAttributesData.map(function (item
|
|
128
|
+
return selectAttributesData.map(function (item) {
|
|
129
129
|
if (item.id === selectEventId) {
|
|
130
130
|
return item.attrList.map(function (_item) {
|
|
131
131
|
return attrShowList.indexOf(_item.label) !== -1 ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -145,8 +145,11 @@ var SelectAttributes = function SelectAttributes(props) {
|
|
|
145
145
|
title: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IconFont, {
|
|
146
146
|
type: "tishi1"
|
|
147
147
|
}), "\u63D0\u793A", /*#__PURE__*/React.createElement(IconFont, {
|
|
148
|
-
type: "qingchu"
|
|
148
|
+
type: "qingchu",
|
|
149
|
+
onClick: handleCancel
|
|
149
150
|
})),
|
|
151
|
+
wrapClassName: "".concat(classPrefix, "-modal-box"),
|
|
152
|
+
closeIcon: null,
|
|
150
153
|
open: selectAttributesShow,
|
|
151
154
|
onOk: handleOk,
|
|
152
155
|
onCancel: handleCancel
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
2
|
-
import { Checkbox } from 'antd';
|
|
2
|
+
import { Checkbox, Tooltip } from 'antd';
|
|
3
3
|
import request from '../../../utils/ajax';
|
|
4
4
|
import apis from '../../../constants/api';
|
|
5
5
|
import React, { useContext } from 'react';
|
|
@@ -21,27 +21,35 @@ var SortableComponnet = function SortableComponnet(props) {
|
|
|
21
21
|
var _data$value = data.value,
|
|
22
22
|
item = _data$value.item,
|
|
23
23
|
index = _data$value.index;
|
|
24
|
-
|
|
24
|
+
var name = item.alias_name ? item.alias_name : item.event_name;
|
|
25
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
26
|
+
title: "".concat(item.owner === 'zg_vtl' ? '虚拟事件' : '元事件', " | ").concat(name),
|
|
27
|
+
key: index
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
25
29
|
className: "checkbox-item ".concat(item.event_hidden ? 'event-hidden' : '', " column-").concat(groupId),
|
|
26
30
|
checked: item.checked,
|
|
27
31
|
key: index,
|
|
28
32
|
onChange: function onChange() {
|
|
29
33
|
return onChangeItem(groupId, item.event_id);
|
|
30
34
|
}
|
|
31
|
-
},
|
|
35
|
+
}, name));
|
|
32
36
|
});
|
|
33
37
|
// 不可拖动的元素(未分组数据)
|
|
34
38
|
var SortableItemNotDrag = function SortableItemNotDrag(data) {
|
|
35
39
|
var item = data.item,
|
|
36
40
|
index = data.index;
|
|
37
|
-
|
|
41
|
+
var name = item.alias_name ? item.alias_name : item.event_name;
|
|
42
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
43
|
+
title: "".concat(item.owner === 'zg_vtl' ? '虚拟事件' : '元事件', " | ").concat(name),
|
|
44
|
+
key: index
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
38
46
|
className: "checkbox-item ".concat(item.event_hidden ? 'event-hidden' : '', " column-").concat(groupId),
|
|
39
47
|
checked: item.checked,
|
|
40
48
|
key: index,
|
|
41
49
|
onChange: function onChange() {
|
|
42
50
|
return onChangeItem(groupId, item.event_id);
|
|
43
51
|
}
|
|
44
|
-
},
|
|
52
|
+
}, name));
|
|
45
53
|
};
|
|
46
54
|
// 整个元素排序的容器
|
|
47
55
|
var SortableList = SortableContainer(function () {
|
|
@@ -411,7 +411,9 @@ var TablePlus = function TablePlus(props) {
|
|
|
411
411
|
}, record.alias_name),
|
|
412
412
|
trigger: "hover",
|
|
413
413
|
placement: "top"
|
|
414
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
414
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
415
|
+
className: 'alias_name_text'
|
|
416
|
+
}, record.alias_name)), /*#__PURE__*/React.createElement(IconFont, {
|
|
415
417
|
className: "edit-alias-name",
|
|
416
418
|
onClick: function onClick() {
|
|
417
419
|
setAliasNameInput(record.alias_name);
|
|
@@ -192,7 +192,9 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
192
192
|
key: 'aliasName',
|
|
193
193
|
width: 167,
|
|
194
194
|
render: function render(_, record) {
|
|
195
|
-
return /*#__PURE__*/React.createElement(
|
|
195
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
196
|
+
className: "alias_name"
|
|
197
|
+
}, /*#__PURE__*/React.createElement(Popover, {
|
|
196
198
|
content: /*#__PURE__*/React.createElement("div", {
|
|
197
199
|
style: {
|
|
198
200
|
width: '200px',
|
|
@@ -201,7 +203,9 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
201
203
|
}, record.aliasName),
|
|
202
204
|
trigger: "hover",
|
|
203
205
|
placement: "top"
|
|
204
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
206
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
207
|
+
className: 'alias_name_text'
|
|
208
|
+
}, record.aliasName)));
|
|
205
209
|
}
|
|
206
210
|
}, {
|
|
207
211
|
title: '首次上报时间',
|
|
@@ -223,12 +227,40 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
223
227
|
title: '描述',
|
|
224
228
|
dataIndex: 'description',
|
|
225
229
|
key: 'description',
|
|
226
|
-
width: 187
|
|
230
|
+
width: 187,
|
|
231
|
+
render: function render(text) {
|
|
232
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Popover, {
|
|
233
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
234
|
+
style: {
|
|
235
|
+
width: '200px',
|
|
236
|
+
wordBreak: 'break-all'
|
|
237
|
+
}
|
|
238
|
+
}, text),
|
|
239
|
+
trigger: "hover",
|
|
240
|
+
placement: "top"
|
|
241
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
242
|
+
className: 'description'
|
|
243
|
+
}, text)));
|
|
244
|
+
}
|
|
227
245
|
}, {
|
|
228
246
|
title: '包含埋点事件',
|
|
229
247
|
dataIndex: 'bindEvent',
|
|
230
248
|
key: 'bindEvent',
|
|
231
|
-
width: 187
|
|
249
|
+
width: 187,
|
|
250
|
+
render: function render(text) {
|
|
251
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Popover, {
|
|
252
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
253
|
+
style: {
|
|
254
|
+
width: '200px',
|
|
255
|
+
wordBreak: 'break-all'
|
|
256
|
+
}
|
|
257
|
+
}, text),
|
|
258
|
+
trigger: "hover",
|
|
259
|
+
placement: "top"
|
|
260
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
261
|
+
className: 'bind-event'
|
|
262
|
+
}, text)));
|
|
263
|
+
}
|
|
232
264
|
}, {
|
|
233
265
|
title: '创建人',
|
|
234
266
|
dataIndex: 'createUser',
|
|
@@ -72,7 +72,7 @@ var DataCollection = function DataCollection(props) {
|
|
|
72
72
|
}
|
|
73
73
|
}, authority[100020] && /*#__PURE__*/React.createElement(Radio.Button, {
|
|
74
74
|
value: 1
|
|
75
|
-
}, "\
|
|
75
|
+
}, "\u5143\u4E8B\u4EF6"), /*#__PURE__*/React.createElement(Radio.Button, {
|
|
76
76
|
value: 3
|
|
77
77
|
}, "\u865A\u62DF\u4E8B\u4EF6"), authority[100021] && /*#__PURE__*/React.createElement(Radio.Button, {
|
|
78
78
|
value: 2
|
|
@@ -115,10 +115,6 @@
|
|
|
115
115
|
word-break: break-all;
|
|
116
116
|
background: red;
|
|
117
117
|
}
|
|
118
|
-
.alias_name {
|
|
119
|
-
border: none;
|
|
120
|
-
cursor: pointer;
|
|
121
|
-
}
|
|
122
118
|
.ant-input:focus,
|
|
123
119
|
.ant-input-focused {
|
|
124
120
|
background-color: #fff !important;
|
|
@@ -260,6 +256,16 @@
|
|
|
260
256
|
}
|
|
261
257
|
.alias_name {
|
|
262
258
|
display: flex;
|
|
259
|
+
border: none;
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
.alias_name_text {
|
|
262
|
+
display: -webkit-box;
|
|
263
|
+
max-width: 167px;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
cursor: pointer;
|
|
266
|
+
-webkit-box-orient: vertical;
|
|
267
|
+
-webkit-line-clamp: 1;
|
|
268
|
+
}
|
|
263
269
|
.edit-alias-name {
|
|
264
270
|
display: none;
|
|
265
271
|
margin-left: 10px;
|
|
@@ -269,6 +275,15 @@
|
|
|
269
275
|
color: @primary-color;
|
|
270
276
|
}
|
|
271
277
|
}
|
|
278
|
+
.bind-event,
|
|
279
|
+
.description {
|
|
280
|
+
display: -webkit-box;
|
|
281
|
+
max-width: 180px;
|
|
282
|
+
overflow: hidden;
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
-webkit-box-orient: vertical;
|
|
285
|
+
-webkit-line-clamp: 1;
|
|
286
|
+
}
|
|
272
287
|
.ant-table-row:hover {
|
|
273
288
|
.collect-icon {
|
|
274
289
|
opacity: 1;
|
|
@@ -486,11 +501,16 @@
|
|
|
486
501
|
width: 100%;
|
|
487
502
|
.checkbox-item {
|
|
488
503
|
width: 25%;
|
|
504
|
+
.ant-checkbox + span {
|
|
505
|
+
user-select: none;
|
|
506
|
+
display: -webkit-box;
|
|
507
|
+
max-width: 100%;
|
|
508
|
+
overflow: hidden;
|
|
509
|
+
cursor: pointer;
|
|
510
|
+
-webkit-box-orient: vertical;
|
|
511
|
+
-webkit-line-clamp: 1;
|
|
512
|
+
}
|
|
489
513
|
}
|
|
490
|
-
// width: 25%;
|
|
491
|
-
// .ant-checkbox {
|
|
492
|
-
// top: 0em;
|
|
493
|
-
// }
|
|
494
514
|
}
|
|
495
515
|
.checkbox-item {
|
|
496
516
|
display: flex;
|
|
@@ -579,68 +599,84 @@
|
|
|
579
599
|
}
|
|
580
600
|
|
|
581
601
|
.select-attributes {
|
|
582
|
-
&-
|
|
583
|
-
.ant-select-dropdown {
|
|
584
|
-
display: none !important;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.select-attributes-box {
|
|
590
|
-
display: flex;
|
|
591
|
-
width: 616px;
|
|
592
|
-
height: 380px;
|
|
593
|
-
background: #fff;
|
|
594
|
-
border-radius: 10px;
|
|
595
|
-
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
|
|
596
|
-
&-left {
|
|
602
|
+
&-box {
|
|
597
603
|
display: flex;
|
|
598
|
-
|
|
599
|
-
width: 205px;
|
|
604
|
+
width: 616px;
|
|
600
605
|
height: 380px;
|
|
601
|
-
|
|
602
|
-
|
|
606
|
+
background: #fff;
|
|
607
|
+
border-radius: 10px;
|
|
603
608
|
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
|
|
604
|
-
|
|
605
|
-
display: flex;
|
|
606
|
-
justify-content: space-between;
|
|
607
|
-
padding: 6px 12px;
|
|
608
|
-
}
|
|
609
|
-
.active {
|
|
610
|
-
color: #fff;
|
|
611
|
-
background: #165dff;
|
|
612
|
-
border-radius: 4px;
|
|
613
|
-
> :nth-child(2) {
|
|
614
|
-
padding: 0px 4px;
|
|
615
|
-
border: 1px solid #fff;
|
|
616
|
-
border-radius: 10px;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
&-right {
|
|
621
|
-
width: 100%;
|
|
622
|
-
height: 380px;
|
|
623
|
-
padding: 8px;
|
|
624
|
-
> :nth-child(2) {
|
|
609
|
+
&-left {
|
|
625
610
|
display: flex;
|
|
626
611
|
flex-direction: column;
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
height: 320px;
|
|
631
|
-
margin-top: 8px;
|
|
612
|
+
width: 205px;
|
|
613
|
+
height: 380px;
|
|
614
|
+
padding: 8px;
|
|
632
615
|
overflow-y: auto;
|
|
616
|
+
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
|
|
633
617
|
> div {
|
|
634
618
|
display: flex;
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
align-items: center;
|
|
638
|
-
align-self: stretch;
|
|
639
|
-
height: 32px;
|
|
640
|
-
padding: 0px 16px;
|
|
619
|
+
justify-content: space-between;
|
|
620
|
+
padding: 6px 12px;
|
|
641
621
|
}
|
|
642
622
|
.active {
|
|
643
|
-
|
|
623
|
+
color: #fff;
|
|
624
|
+
background: #165dff;
|
|
625
|
+
border-radius: 4px;
|
|
626
|
+
> :nth-child(2) {
|
|
627
|
+
padding: 0px 4px;
|
|
628
|
+
border: 1px solid #fff;
|
|
629
|
+
border-radius: 10px;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
&-right {
|
|
634
|
+
width: 100%;
|
|
635
|
+
height: 380px;
|
|
636
|
+
padding: 8px;
|
|
637
|
+
> :nth-child(2) {
|
|
638
|
+
display: flex;
|
|
639
|
+
flex-direction: column;
|
|
640
|
+
gap: 8px;
|
|
641
|
+
align-items: flex-start;
|
|
642
|
+
width: 100%;
|
|
643
|
+
height: 320px;
|
|
644
|
+
margin-top: 8px;
|
|
645
|
+
overflow-y: auto;
|
|
646
|
+
> div {
|
|
647
|
+
display: flex;
|
|
648
|
+
flex-shrink: 0;
|
|
649
|
+
gap: 10px;
|
|
650
|
+
align-items: center;
|
|
651
|
+
align-self: stretch;
|
|
652
|
+
height: 32px;
|
|
653
|
+
padding: 0px 16px;
|
|
654
|
+
}
|
|
655
|
+
.active {
|
|
656
|
+
background: #e8efff;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
&-select {
|
|
662
|
+
.ant-select-dropdown {
|
|
663
|
+
display: none !important;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
&-modal-box {
|
|
667
|
+
.ant-modal-close-x {
|
|
668
|
+
display: none;
|
|
669
|
+
}
|
|
670
|
+
.ant-modal-title {
|
|
671
|
+
position: relative;
|
|
672
|
+
.tishi1 {
|
|
673
|
+
margin-right: 8px;
|
|
674
|
+
color: #fd9f41;
|
|
675
|
+
}
|
|
676
|
+
.qingchu {
|
|
677
|
+
position: absolute;
|
|
678
|
+
top: 0;
|
|
679
|
+
right: 0;
|
|
644
680
|
}
|
|
645
681
|
}
|
|
646
682
|
}
|
|
@@ -51,7 +51,7 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
51
51
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
52
52
|
pageNumber = _useState10[0],
|
|
53
53
|
setPageNumber = _useState10[1];
|
|
54
|
-
var _useState11 = useState(
|
|
54
|
+
var _useState11 = useState(20),
|
|
55
55
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
56
56
|
pageSize = _useState12[0],
|
|
57
57
|
setPageSize = _useState12[1];
|
|
@@ -298,8 +298,9 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
298
298
|
textAlign: 'right'
|
|
299
299
|
},
|
|
300
300
|
showQuickJumper: true,
|
|
301
|
-
showSizeChanger: total >
|
|
301
|
+
showSizeChanger: total > pageSize,
|
|
302
302
|
defaultCurrent: 1,
|
|
303
|
+
defaultPageSize: pageSize,
|
|
303
304
|
current: pageNumber,
|
|
304
305
|
total: total,
|
|
305
306
|
onChange: onPaginationChange
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.34-heyh.
|
|
3
|
+
"version": "1.0.34-heyh.9",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/lodash": "^4.14.182",
|
|
41
41
|
"@umijs/fabric": "^2.8.1",
|
|
42
42
|
"@umijs/test": "^3.0.5",
|
|
43
|
-
"@zgfe/business-lib": "1.1
|
|
43
|
+
"@zgfe/business-lib": "1.2.3-heyh.1",
|
|
44
44
|
"antd": "4.24.10",
|
|
45
45
|
"dumi": "^1.1.0",
|
|
46
46
|
"father-build": "^1.17.2",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"umi-request": "^1.4.0",
|
|
53
53
|
"yorkie": "^2.0.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "8794a4cab7a3ae235aa723c9c0ea99e812bd9157",
|
|
56
56
|
"gitHooks": {
|
|
57
57
|
"pre-commit": "lint-staged"
|
|
58
58
|
}
|