@zgfe/modules-dm 1.0.42-alpha.8 → 1.0.56-zhongyuan.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/es/components/demo.js +1 -1
- package/es/constants/api.d.ts +37 -0
- package/es/constants/api.js +62 -1
- package/es/index.d.ts +4 -3
- package/es/index.js +4 -3
- package/es/modules/CutsModal.d.ts +66 -0
- package/es/modules/CutsModal.js +52 -0
- package/es/modules/{dataCollection → dataManage}/collectionAttributeList.d.ts +3 -0
- package/es/modules/dataManage/collectionAttributeList.js +943 -0
- package/es/modules/{dataCollection → dataManage}/collectionEventList.d.ts +6 -0
- package/es/modules/dataManage/collectionEventList.js +883 -0
- package/es/modules/dataManage/components/createAttrDrawer.d.ts +4 -0
- package/es/modules/dataManage/components/createAttrDrawer.js +264 -0
- package/es/modules/dataManage/components/createMetaDrawer.d.ts +4 -0
- package/es/modules/dataManage/components/createMetaDrawer.js +618 -0
- package/es/modules/{dataCollection → dataManage}/components/createVirtualDrawer.js +20 -20
- package/es/modules/dataManage/components/creditPop/imgs/link.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png01.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png02.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png03.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png04.png +0 -0
- package/es/modules/dataManage/components/creditPop/index.d.ts +5 -0
- package/es/modules/dataManage/components/creditPop/index.js +89 -0
- package/es/modules/dataManage/components/creditPop/index.less +121 -0
- package/es/modules/dataManage/components/deleteConfirm.d.ts +9 -0
- package/es/modules/dataManage/components/deleteConfirm.js +36 -0
- package/es/modules/dataManage/components/deleteUserAttrConfirm.d.ts +9 -0
- package/es/modules/dataManage/components/deleteUserAttrConfirm.js +57 -0
- package/es/modules/dataManage/components/depositPop/imgs/link.png +0 -0
- package/es/modules/dataManage/components/depositPop/imgs/png01.png +0 -0
- package/es/modules/dataManage/components/depositPop/imgs/png02.png +0 -0
- package/es/modules/dataManage/components/depositPop/index.d.ts +5 -0
- package/es/modules/dataManage/components/depositPop/index.js +89 -0
- package/es/modules/dataManage/components/depositPop/index.less +115 -0
- package/es/modules/dataManage/components/developModal/index.css +36 -0
- package/es/modules/dataManage/components/developModal/index.d.ts +5 -0
- package/es/modules/dataManage/components/developModal/index.js +224 -0
- package/es/modules/dataManage/components/developModal/index.less +36 -0
- package/es/modules/dataManage/components/editTxt/index.d.ts +5 -0
- package/es/modules/dataManage/components/editTxt/index.js +123 -0
- package/es/modules/dataManage/components/editTxt/index.less +44 -0
- package/es/modules/dataManage/components/editTxt/types.d.ts +48 -0
- package/es/modules/{dataCollection → dataManage}/components/eventFilter/index.js +13 -13
- package/es/modules/{dataCollection → dataManage}/components/eventFilter/styles/index.less +1 -1
- package/es/modules/{dataCollection → dataManage}/components/eventGroupingDrawer.js +44 -47
- package/es/modules/dataManage/components/importAttrDialog/demo/index.d.ts +2 -0
- package/es/modules/dataManage/components/importAttrDialog/demo/index.js +28 -0
- package/es/modules/dataManage/components/importAttrDialog/index.d.ts +7 -0
- package/es/modules/dataManage/components/importAttrDialog/index.js +157 -0
- package/es/modules/dataManage/components/importAttrDialog/styles/index.less +90 -0
- package/es/modules/dataManage/components/importMetaDialog/demo/index.d.ts +2 -0
- package/es/modules/dataManage/components/importMetaDialog/demo/index.js +28 -0
- package/es/modules/dataManage/components/importMetaDialog/index.d.ts +7 -0
- package/es/modules/dataManage/components/importMetaDialog/index.js +157 -0
- package/es/modules/dataManage/components/importMetaDialog/styles/index.less +91 -0
- package/es/modules/{dataCollection → dataManage}/components/selectAttributes.js +10 -10
- package/es/modules/{dataCollection → dataManage}/components/tablePlus.d.ts +4 -0
- package/es/modules/dataManage/components/tablePlus.js +1207 -0
- package/es/modules/{dataCollection → dataManage}/components/virtualTablePlus.js +10 -10
- package/es/modules/dataManage/demo/index.js +79 -16
- package/es/modules/dataManage/detailedData/DetailedDataForm.d.ts +5 -0
- package/es/modules/dataManage/detailedData/DetailedDataForm.js +216 -0
- package/es/modules/dataManage/detailedData/index.d.ts +24 -0
- package/es/modules/dataManage/detailedData/index.js +403 -0
- package/es/modules/dataManage/detailedData/useColumns.d.ts +34 -0
- package/es/modules/dataManage/detailedData/useColumns.js +135 -0
- package/es/modules/dataManage/index.d.ts +9 -19
- package/es/modules/dataManage/index.js +176 -17
- package/es/modules/dataManage/styles/detailed.less +74 -0
- package/es/modules/dataManage/styles/index.less +1177 -18
- package/es/modules/{dataCollection → dataManage}/types.d.ts +8 -0
- package/es/modules/dataManage/types.js +1 -0
- package/es/modules/{dataCollection → dataManage}/virtualEventList.js +13 -13
- package/es/modules/dataMap/component/data.d.ts +7 -0
- package/es/modules/dataMap/component/data.js +257 -0
- package/es/modules/dataMap/component/drawerAdd.d.ts +6 -0
- package/es/modules/dataMap/component/drawerAdd.js +376 -0
- package/es/modules/dataMap/component/leftTree.d.ts +6 -0
- package/es/modules/dataMap/component/leftTree.js +227 -0
- package/es/modules/dataMap/component/rightDetail.d.ts +7 -0
- package/es/modules/dataMap/component/rightDetail.js +680 -0
- package/es/modules/dataMap/component/selectAttr.d.ts +7 -0
- package/es/modules/dataMap/component/selectAttr.js +92 -0
- package/es/modules/dataMap/css/index.css +163 -0
- package/es/modules/dataMap/css/index.less +177 -0
- package/es/modules/dataMap/demo/index.d.ts +2 -0
- package/es/modules/dataMap/demo/index.js +6 -0
- package/es/modules/dataMap/img/empty-data.png +0 -0
- package/es/modules/dataMap/index.d.ts +2 -0
- package/es/modules/dataMap/index.js +80 -0
- package/es/modules/dataMap/mapDetail.d.ts +3 -0
- package/es/modules/dataMap/mapDetail.js +44 -0
- package/es/modules/dataMap/mapSetting.d.ts +6 -0
- package/es/modules/dataMap/mapSetting.js +148 -0
- package/es/modules/dataPlan/addEventOrUser.js +31 -30
- package/es/modules/dataPlan/addPlan.js +29 -27
- package/es/modules/dataPlan/eventList.js +2 -2
- package/es/modules/dataPlan/index.js +10 -10
- package/es/modules/dataPlan/search.js +6 -5
- package/es/modules/dataPlan/tablePlus.js +3 -3
- package/es/modules/dataPlan/userAttributeList.js +5 -5
- package/es/modules/dataReal/css/index.css +48 -0
- package/es/modules/dataReal/css/index.less +51 -0
- package/es/modules/dataReal/demo/index.d.ts +2 -0
- package/es/modules/dataReal/demo/index.js +6 -0
- package/es/modules/dataReal/index1.d.ts +28 -0
- package/es/modules/dataReal/index1.js +215 -0
- package/es/modules/dataReal/table.d.ts +5 -0
- package/es/modules/dataReal/table.js +258 -0
- package/es/store/index.js +11 -11
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +9 -1
- package/package.json +8 -4
- package/es/modules/dataCollection/collectionAttributeList.js +0 -508
- package/es/modules/dataCollection/collectionEventList.js +0 -466
- package/es/modules/dataCollection/components/tablePlus.js +0 -676
- package/es/modules/dataCollection/index.d.ts +0 -19
- package/es/modules/dataCollection/index.js +0 -93
- package/es/modules/dataCollection/styles/index.less +0 -842
- /package/es/modules/{dataCollection → dataManage}/components/createVirtualDrawer.d.ts +0 -0
- /package/es/modules/{dataCollection/components/eventFilter → dataManage/components/editTxt}/types.js +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/eventFilter/index.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/eventFilter/types.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage/components/eventFilter}/types.js +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/eventGroupingDrawer.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/eventItem.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/eventItem.js +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/selectAttributes.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/virtualTablePlus.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage}/virtualEventList.d.ts +0 -0
|
@@ -1,676 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
-
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."); }
|
|
9
|
-
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); }
|
|
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
|
-
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
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
14
|
-
import { Input, Table, Select, message, Modal, Popover, Checkbox } from 'antd';
|
|
15
|
-
import request from '../../../utils/ajax';
|
|
16
|
-
import apis from '../../../constants/api';
|
|
17
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
18
|
-
import '../styles/index.less';
|
|
19
|
-
import _ from 'lodash';
|
|
20
|
-
import { getAppID, getTableScroll } from '../../../utils';
|
|
21
|
-
import { DmContext } from '../../../store';
|
|
22
|
-
var TablePlus = function TablePlus(props) {
|
|
23
|
-
var classPrefix = 'table-plus';
|
|
24
|
-
var tableHandleData = props.tableHandleData,
|
|
25
|
-
queryPlanData = props.queryPlanData,
|
|
26
|
-
isOpen = props.isOpen;
|
|
27
|
-
var _useContext = useContext(BizGlobalDataContext),
|
|
28
|
-
currentApp = _useContext.currentApp,
|
|
29
|
-
isDemo = _useContext.isDemo,
|
|
30
|
-
authority = _useContext.authority;
|
|
31
|
-
var _useContext2 = useContext(DmContext),
|
|
32
|
-
state = _useContext2.state;
|
|
33
|
-
// 表格class处理
|
|
34
|
-
var rowClassNameHandle = function rowClassNameHandle(record) {
|
|
35
|
-
if (record.groupId != undefined) {
|
|
36
|
-
return 'group-row';
|
|
37
|
-
} else {
|
|
38
|
-
var _queryPlanData$unexpe;
|
|
39
|
-
return (queryPlanData === null || queryPlanData === void 0 ? void 0 : (_queryPlanData$unexpe = queryPlanData.unexpectedEventList) === null || _queryPlanData$unexpe === void 0 ? void 0 : _queryPlanData$unexpe.indexOf(record.event_name)) != -1 && isOpen == 1 && record.owner != 'zg_abp' ? 'error-row' : '';
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
// 修改事件别名
|
|
43
|
-
var _useState = useState(false),
|
|
44
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
45
|
-
aliasNameShow = _useState2[0],
|
|
46
|
-
setaliasNameShow = _useState2[1];
|
|
47
|
-
var _useState3 = useState(''),
|
|
48
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
49
|
-
aliasNameInput = _useState4[0],
|
|
50
|
-
setAliasNameInput = _useState4[1];
|
|
51
|
-
var _useState5 = useState(-1),
|
|
52
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
53
|
-
aliasNameId = _useState6[0],
|
|
54
|
-
setAliasNameId = _useState6[1];
|
|
55
|
-
// 修改事件别名
|
|
56
|
-
var aliasNameEdit = function aliasNameEdit() {
|
|
57
|
-
if (eventNameInput.length > 20) {
|
|
58
|
-
message.error('名称不可超过20字符');
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
request(apis.updateEventInfo, {
|
|
62
|
-
method: 'post',
|
|
63
|
-
data: {
|
|
64
|
-
appId: getAppID(currentApp),
|
|
65
|
-
aliasName: aliasNameInput,
|
|
66
|
-
eventId: aliasNameId
|
|
67
|
-
}
|
|
68
|
-
}).then(function (res) {
|
|
69
|
-
if (res.data === 0) {
|
|
70
|
-
message.error(res.msg);
|
|
71
|
-
} else {
|
|
72
|
-
message.success('修改成功');
|
|
73
|
-
props.Refresh();
|
|
74
|
-
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
75
|
-
}
|
|
76
|
-
}).finally(function () {
|
|
77
|
-
setaliasNameShow(false);
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
// 控制修改分组名弹框 显示隐藏
|
|
81
|
-
var _useState7 = useState(false),
|
|
82
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
83
|
-
eventNameShow = _useState8[0],
|
|
84
|
-
setEventNameShow = _useState8[1];
|
|
85
|
-
// 修改分组名数据
|
|
86
|
-
var _useState9 = useState(''),
|
|
87
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
88
|
-
eventNameInput = _useState10[0],
|
|
89
|
-
setEventNameInput = _useState10[1];
|
|
90
|
-
var _useState11 = useState({}),
|
|
91
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
92
|
-
eventNameData = _useState12[0],
|
|
93
|
-
setEventNameData = _useState12[1];
|
|
94
|
-
// 修改分组名
|
|
95
|
-
var eventNameEdit = function eventNameEdit() {
|
|
96
|
-
if (eventNameInput.length > 20) {
|
|
97
|
-
message.error('名称不可超过20字符');
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
request(apis.upsertEventGroup, {
|
|
101
|
-
method: 'post',
|
|
102
|
-
data: {
|
|
103
|
-
eventGroupName: eventNameInput,
|
|
104
|
-
eventGroupId: eventNameData.groupId,
|
|
105
|
-
appId: getAppID(currentApp),
|
|
106
|
-
platform: 0
|
|
107
|
-
}
|
|
108
|
-
}).then(function (res) {
|
|
109
|
-
if (res.code == '00') {
|
|
110
|
-
message.success('修改成功');
|
|
111
|
-
props.Refresh();
|
|
112
|
-
setEventNameShow(false);
|
|
113
|
-
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
// 删除分组
|
|
118
|
-
var eventNameDel = function eventNameDel(eventGroupId) {
|
|
119
|
-
var deteleFlag = true;
|
|
120
|
-
tableHandleData.map(function (item) {
|
|
121
|
-
item._groupId == eventGroupId ? deteleFlag = false : null;
|
|
122
|
-
});
|
|
123
|
-
if (!deteleFlag) return message.error('分组内存在事件,无法删除');
|
|
124
|
-
Modal.confirm({
|
|
125
|
-
wrapClassName: 'dm-modal-confirm',
|
|
126
|
-
centered: true,
|
|
127
|
-
title: '是否确认删除?',
|
|
128
|
-
okText: '确认',
|
|
129
|
-
cancelText: '取消',
|
|
130
|
-
maskClosable: false,
|
|
131
|
-
onOk: function onOk() {
|
|
132
|
-
request(apis.deleteEventGroup, {
|
|
133
|
-
method: 'post',
|
|
134
|
-
data: {
|
|
135
|
-
appId: getAppID(currentApp),
|
|
136
|
-
eventGroupId: eventGroupId
|
|
137
|
-
}
|
|
138
|
-
}).then(function (res) {
|
|
139
|
-
if (res) {
|
|
140
|
-
message.success('删除成功');
|
|
141
|
-
props.Refresh();
|
|
142
|
-
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
};
|
|
148
|
-
// 删除事件
|
|
149
|
-
var eventItemDel = function eventItemDel(record) {
|
|
150
|
-
if (record.owner !== 'zg_abp') {
|
|
151
|
-
if (record.owner === 'zg') {
|
|
152
|
-
request(apis.checkEventStatus, {
|
|
153
|
-
method: 'get',
|
|
154
|
-
params: {
|
|
155
|
-
appId: getAppID(currentApp),
|
|
156
|
-
eventId: record.event_id
|
|
157
|
-
}
|
|
158
|
-
}).then(function (res) {
|
|
159
|
-
// 该事件在虚拟事件中有使用
|
|
160
|
-
if (res.data === 1) {
|
|
161
|
-
eventDelModal(record.event_id, '检测到该事件在虚拟事件中使用, 删除后,将停止采集该事件数据,也将不在分析平台中显示!');
|
|
162
|
-
} else {
|
|
163
|
-
eventDelModal(record.event_id, '删除后,将停止采集该事件数据,也将不在分析平台中显示!');
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
} else {
|
|
167
|
-
eventDelModal(record.event_id, '删除后,将停止采集该事件数据,也将不在分析平台中显示!');
|
|
168
|
-
}
|
|
169
|
-
} else {
|
|
170
|
-
message.error('内置事件无法删除');
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
var eventDelModal = function eventDelModal(eventId, text) {
|
|
174
|
-
Modal.confirm({
|
|
175
|
-
wrapClassName: 'dm-modal-confirm',
|
|
176
|
-
centered: true,
|
|
177
|
-
title: '是否确认删除?',
|
|
178
|
-
content: text,
|
|
179
|
-
okText: '确认',
|
|
180
|
-
cancelText: '取消',
|
|
181
|
-
maskClosable: false,
|
|
182
|
-
onOk: function onOk() {
|
|
183
|
-
request(apis.deleteEventMeta, {
|
|
184
|
-
method: 'post',
|
|
185
|
-
data: {
|
|
186
|
-
appId: getAppID(currentApp),
|
|
187
|
-
eventId: eventId
|
|
188
|
-
}
|
|
189
|
-
}).then(function (res) {
|
|
190
|
-
if (res) {
|
|
191
|
-
message.success('删除成功');
|
|
192
|
-
props.Refresh();
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
// 修改:显示状态 | 采集状态 | 收藏&取消收藏
|
|
199
|
-
var eventHiddenChange = function eventHiddenChange(e, type, record) {
|
|
200
|
-
var _temp;
|
|
201
|
-
switch (type) {
|
|
202
|
-
case 'hidden':
|
|
203
|
-
_temp = {
|
|
204
|
-
hidden: e
|
|
205
|
-
};
|
|
206
|
-
break;
|
|
207
|
-
case 'is_stop':
|
|
208
|
-
_temp = {
|
|
209
|
-
isStop: e
|
|
210
|
-
};
|
|
211
|
-
break;
|
|
212
|
-
case 'mark_type':
|
|
213
|
-
_temp = {
|
|
214
|
-
markType: e == null ? 1 : 0
|
|
215
|
-
};
|
|
216
|
-
break;
|
|
217
|
-
}
|
|
218
|
-
request(apis.updateEventInfo, {
|
|
219
|
-
method: 'post',
|
|
220
|
-
data: _objectSpread({
|
|
221
|
-
appId: getAppID(currentApp),
|
|
222
|
-
eventId: record.event_id
|
|
223
|
-
}, _temp)
|
|
224
|
-
}).then(function () {
|
|
225
|
-
message.success('修改成功');
|
|
226
|
-
props.Refresh();
|
|
227
|
-
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
228
|
-
});
|
|
229
|
-
};
|
|
230
|
-
// 复制事件名称
|
|
231
|
-
var copyEventName = function copyEventName(event_name) {
|
|
232
|
-
if (navigator.clipboard) {
|
|
233
|
-
navigator.clipboard.writeText(event_name);
|
|
234
|
-
message.success('复制成功');
|
|
235
|
-
} else {
|
|
236
|
-
var eventCopyer = function eventCopyer(event) {
|
|
237
|
-
event.preventDefault();
|
|
238
|
-
event.clipboardData.setData('text/plain', event_name);
|
|
239
|
-
};
|
|
240
|
-
document.addEventListener('copy', eventCopyer);
|
|
241
|
-
document.execCommand('copy');
|
|
242
|
-
document.removeEventListener('copy', eventCopyer);
|
|
243
|
-
message.success('复制成功');
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
// 手否筛选收藏
|
|
247
|
-
var _useState13 = useState(false),
|
|
248
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
249
|
-
markActive = _useState14[0],
|
|
250
|
-
setMarkActive = _useState14[1];
|
|
251
|
-
// 分组操作-勾选数据
|
|
252
|
-
var _useState15 = useState({}),
|
|
253
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
254
|
-
groupCheckedData = _useState16[0],
|
|
255
|
-
setGroupCheckedData = _useState16[1];
|
|
256
|
-
var eventItemCheckbox = function eventItemCheckbox(e, data) {
|
|
257
|
-
var _groupCheckedData = _.cloneDeep(groupCheckedData);
|
|
258
|
-
if (e.target.checked) {
|
|
259
|
-
_groupCheckedData[data._groupId] == undefined ? _groupCheckedData[data._groupId] = [] : null;
|
|
260
|
-
_groupCheckedData[data._groupId].push(data.event_id);
|
|
261
|
-
} else {
|
|
262
|
-
_.remove(_groupCheckedData[data._groupId], function (x) {
|
|
263
|
-
return x === data.event_id;
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
setGroupCheckedData(_groupCheckedData);
|
|
267
|
-
};
|
|
268
|
-
// 判断每一行的选中
|
|
269
|
-
var checkedItemHandle = function checkedItemHandle(record) {
|
|
270
|
-
if (Object.keys(groupCheckedData).length <= 0) {
|
|
271
|
-
return false;
|
|
272
|
-
} else {
|
|
273
|
-
return groupCheckedData[record._groupId] && groupCheckedData[record._groupId].indexOf(record.event_id) != -1;
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
// 移入到组、移出分组、复制到组
|
|
277
|
-
var groupHandle = function groupHandle(type, data, eventGroupId) {
|
|
278
|
-
var _temp = {};
|
|
279
|
-
if (eventGroupId != undefined) _temp = {
|
|
280
|
-
eventGroupId: eventGroupId
|
|
281
|
-
};
|
|
282
|
-
if (type != 'copy') _temp = _objectSpread(_objectSpread({}, _temp), {}, {
|
|
283
|
-
oldEventGroupId: data.groupId
|
|
284
|
-
});
|
|
285
|
-
request(apis.operateGroupRelations, {
|
|
286
|
-
method: 'post',
|
|
287
|
-
data: _objectSpread({
|
|
288
|
-
appId: getAppID(currentApp),
|
|
289
|
-
platform: 0,
|
|
290
|
-
hasPublicAttrView: true,
|
|
291
|
-
eventIds: groupCheckedData[data.groupId].join(',')
|
|
292
|
-
}, _temp)
|
|
293
|
-
}).then(function (res) {
|
|
294
|
-
if (res.code == '00') {
|
|
295
|
-
message.success('成功');
|
|
296
|
-
var _groupCheckedData = _.cloneDeep(groupCheckedData);
|
|
297
|
-
delete _groupCheckedData[eventGroupId];
|
|
298
|
-
setGroupCheckedData({});
|
|
299
|
-
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
300
|
-
}
|
|
301
|
-
}).finally(function () {
|
|
302
|
-
props.Refresh();
|
|
303
|
-
});
|
|
304
|
-
};
|
|
305
|
-
var groupPopoverContent = function groupPopoverContent(data, type) {
|
|
306
|
-
var element = props.groupData.map(function (item, index) {
|
|
307
|
-
if (type == 'copy' && item.groupId == -1) return null; // 复制到组,移出未分组
|
|
308
|
-
return item.groupId != undefined && item.groupId != data.groupId ? /*#__PURE__*/React.createElement("div", {
|
|
309
|
-
onClick: function onClick() {
|
|
310
|
-
return groupHandle(type, data, item.groupId);
|
|
311
|
-
},
|
|
312
|
-
style: {
|
|
313
|
-
lineHeight: '30px',
|
|
314
|
-
cursor: 'pointer'
|
|
315
|
-
},
|
|
316
|
-
key: index
|
|
317
|
-
}, item.groupId == -1 ? '未分组' : item.groupName) : null;
|
|
318
|
-
});
|
|
319
|
-
// 复制分组时:除未分组外,如只有一个分组,则不展示复制分组
|
|
320
|
-
return props.groupData.length < 2 && type == 'copy' ? null : element;
|
|
321
|
-
};
|
|
322
|
-
var columns = [{
|
|
323
|
-
title: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IconFont, {
|
|
324
|
-
style: {
|
|
325
|
-
color: markActive ? '#fd9f41' : '#999',
|
|
326
|
-
marginRight: '4px'
|
|
327
|
-
},
|
|
328
|
-
onClick: function onClick() {
|
|
329
|
-
props.markTypeFilter(!markActive);
|
|
330
|
-
setMarkActive(!markActive);
|
|
331
|
-
},
|
|
332
|
-
type: markActive ? 'shoucang' : 'shoucang-kong'
|
|
333
|
-
}), "\u540D\u79F0"),
|
|
334
|
-
dataIndex: 'event_name',
|
|
335
|
-
key: 'event_name',
|
|
336
|
-
fixed: 'left',
|
|
337
|
-
width: 380,
|
|
338
|
-
render: function render(text, record) {
|
|
339
|
-
if (record.groupId) {
|
|
340
|
-
var _groupCheckedData$rec;
|
|
341
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
342
|
-
className: "group-box"
|
|
343
|
-
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
344
|
-
type: "left"
|
|
345
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
346
|
-
className: "group-text"
|
|
347
|
-
}, record.groupId == -1 ? '未分组' : record.groupName), ((_groupCheckedData$rec = groupCheckedData[record.groupId]) === null || _groupCheckedData$rec === void 0 ? void 0 : _groupCheckedData$rec.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover, {
|
|
348
|
-
content: function content() {
|
|
349
|
-
return groupPopoverContent(record, 'move-in');
|
|
350
|
-
},
|
|
351
|
-
trigger: "click",
|
|
352
|
-
placement: "bottom"
|
|
353
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
354
|
-
className: "group-handle"
|
|
355
|
-
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
356
|
-
type: "yidong"
|
|
357
|
-
}), "\u79FB\u52A8\u5230\u7EC4")), record.groupId != -1 && /*#__PURE__*/React.createElement(React.Fragment, null, groupPopoverContent(record, 'copy') != null && /*#__PURE__*/React.createElement(Popover, {
|
|
358
|
-
content: function content() {
|
|
359
|
-
return groupPopoverContent(record, 'copy');
|
|
360
|
-
},
|
|
361
|
-
trigger: "click",
|
|
362
|
-
placement: "bottom"
|
|
363
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
364
|
-
className: "group-handle"
|
|
365
|
-
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
366
|
-
type: "yidong"
|
|
367
|
-
}), "\u590D\u5236\u5230\u7EC4")), /*#__PURE__*/React.createElement("span", {
|
|
368
|
-
className: "group-handle",
|
|
369
|
-
onClick: function onClick() {
|
|
370
|
-
return groupHandle('move-out', record);
|
|
371
|
-
}
|
|
372
|
-
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
373
|
-
type: "yidong"
|
|
374
|
-
}), "\u79FB\u51FA\u5206\u7EC4"))));
|
|
375
|
-
} else {
|
|
376
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
377
|
-
className: "event_name"
|
|
378
|
-
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
379
|
-
checked: checkedItemHandle(record),
|
|
380
|
-
onChange: function onChange(e) {
|
|
381
|
-
return eventItemCheckbox(e, record);
|
|
382
|
-
}
|
|
383
|
-
}), /*#__PURE__*/React.createElement(IconFont, {
|
|
384
|
-
className: record.mark_type == 1 ? 'collect-icon-active' : 'collect-icon',
|
|
385
|
-
onClick: function onClick() {
|
|
386
|
-
return eventHiddenChange(record.mark_type, 'mark_type', record);
|
|
387
|
-
},
|
|
388
|
-
type: record.mark_type == 1 ? 'shoucang' : 'shoucang-kong'
|
|
389
|
-
}), /*#__PURE__*/React.createElement(Popover, {
|
|
390
|
-
content: text
|
|
391
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
392
|
-
className: "event_name-text"
|
|
393
|
-
}, text)), /*#__PURE__*/React.createElement(IconFont, {
|
|
394
|
-
className: "copy-text",
|
|
395
|
-
onClick: function onClick() {
|
|
396
|
-
return copyEventName(record.event_name);
|
|
397
|
-
},
|
|
398
|
-
type: "fuzhi"
|
|
399
|
-
}));
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}, {
|
|
403
|
-
title: '别名',
|
|
404
|
-
dataIndex: 'alias_name',
|
|
405
|
-
key: 'alias_name',
|
|
406
|
-
width: 167,
|
|
407
|
-
render: function render(_, record) {
|
|
408
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
409
|
-
className: "alias_name"
|
|
410
|
-
}, /*#__PURE__*/React.createElement(Popover, {
|
|
411
|
-
content: /*#__PURE__*/React.createElement("div", {
|
|
412
|
-
style: {
|
|
413
|
-
width: '200px',
|
|
414
|
-
wordBreak: 'break-all'
|
|
415
|
-
}
|
|
416
|
-
}, record.alias_name),
|
|
417
|
-
trigger: "hover",
|
|
418
|
-
placement: "top"
|
|
419
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
420
|
-
className: 'alias_name_text'
|
|
421
|
-
}, record.alias_name)), /*#__PURE__*/React.createElement(IconFont, {
|
|
422
|
-
className: "edit-alias-name",
|
|
423
|
-
onClick: function onClick() {
|
|
424
|
-
if (!authority[1000003]) {
|
|
425
|
-
message.error('无操作权限');
|
|
426
|
-
return;
|
|
427
|
-
}
|
|
428
|
-
setAliasNameInput(record.alias_name);
|
|
429
|
-
setAliasNameId(record.event_id);
|
|
430
|
-
setaliasNameShow(true);
|
|
431
|
-
},
|
|
432
|
-
type: "zhongmingming"
|
|
433
|
-
}));
|
|
434
|
-
}
|
|
435
|
-
}, {
|
|
436
|
-
title: '首次上报时间',
|
|
437
|
-
dataIndex: 'insert_time',
|
|
438
|
-
key: 'insert_time',
|
|
439
|
-
width: 187,
|
|
440
|
-
render: function render(text) {
|
|
441
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
442
|
-
className: "insert_time"
|
|
443
|
-
}, text);
|
|
444
|
-
}
|
|
445
|
-
}, {
|
|
446
|
-
title: '末次上报时间',
|
|
447
|
-
dataIndex: 'last_insert_time',
|
|
448
|
-
key: 'last_insert_time',
|
|
449
|
-
width: 187,
|
|
450
|
-
render: function render(_, record) {
|
|
451
|
-
return /*#__PURE__*/React.createElement("div", null, record.last_insert_time);
|
|
452
|
-
}
|
|
453
|
-
}, {
|
|
454
|
-
title: /*#__PURE__*/React.createElement(Select, {
|
|
455
|
-
defaultValue: -1,
|
|
456
|
-
bordered: false,
|
|
457
|
-
className: "select-style",
|
|
458
|
-
suffixIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
459
|
-
type: "paixu"
|
|
460
|
-
}),
|
|
461
|
-
onChange: function onChange(e) {
|
|
462
|
-
return props.eventActiveFilter(e, 'event_hidden');
|
|
463
|
-
},
|
|
464
|
-
options: [{
|
|
465
|
-
value: -1,
|
|
466
|
-
label: '所有显示状态'
|
|
467
|
-
}, {
|
|
468
|
-
value: 1,
|
|
469
|
-
label: '隐藏'
|
|
470
|
-
}, {
|
|
471
|
-
value: 0,
|
|
472
|
-
label: '显示'
|
|
473
|
-
}]
|
|
474
|
-
}),
|
|
475
|
-
dataIndex: 'event_hidden',
|
|
476
|
-
key: 'event_hidden',
|
|
477
|
-
width: 167,
|
|
478
|
-
render: function render(_, record) {
|
|
479
|
-
return /*#__PURE__*/React.createElement(Select, {
|
|
480
|
-
defaultValue: record.event_hidden,
|
|
481
|
-
style: {
|
|
482
|
-
width: 150
|
|
483
|
-
},
|
|
484
|
-
value: record.event_hidden,
|
|
485
|
-
disabled: rowClassNameHandle(record) == 'error-row' || isDemo ? true : false,
|
|
486
|
-
onChange: function onChange(e) {
|
|
487
|
-
return eventHiddenChange(e, 'hidden', record);
|
|
488
|
-
},
|
|
489
|
-
options: [{
|
|
490
|
-
value: 1,
|
|
491
|
-
label: '隐藏'
|
|
492
|
-
}, {
|
|
493
|
-
value: 0,
|
|
494
|
-
label: '显示'
|
|
495
|
-
}]
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
}, {
|
|
499
|
-
title: /*#__PURE__*/React.createElement(Select, {
|
|
500
|
-
defaultValue: -1,
|
|
501
|
-
bordered: false,
|
|
502
|
-
className: "select-style",
|
|
503
|
-
suffixIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
504
|
-
type: "paixu"
|
|
505
|
-
}),
|
|
506
|
-
onChange: function onChange(e) {
|
|
507
|
-
return props.eventActiveFilter(e, 'is_stop');
|
|
508
|
-
},
|
|
509
|
-
options: [{
|
|
510
|
-
value: -1,
|
|
511
|
-
label: '所有采集状态'
|
|
512
|
-
}, {
|
|
513
|
-
value: 1,
|
|
514
|
-
label: '停止采集'
|
|
515
|
-
}, {
|
|
516
|
-
value: 0,
|
|
517
|
-
label: '采集中'
|
|
518
|
-
}]
|
|
519
|
-
}),
|
|
520
|
-
dataIndex: 'is_stop',
|
|
521
|
-
key: 'is_stop',
|
|
522
|
-
width: 167,
|
|
523
|
-
render: function render(_, record) {
|
|
524
|
-
return /*#__PURE__*/React.createElement(Select, {
|
|
525
|
-
defaultValue: record.is_stop,
|
|
526
|
-
style: {
|
|
527
|
-
width: 150
|
|
528
|
-
},
|
|
529
|
-
disabled: rowClassNameHandle(record) == 'error-row' || isDemo ? true : false,
|
|
530
|
-
onChange: function onChange(e) {
|
|
531
|
-
return eventHiddenChange(e, 'is_stop', record);
|
|
532
|
-
},
|
|
533
|
-
options: [{
|
|
534
|
-
value: 1,
|
|
535
|
-
label: '停止采集'
|
|
536
|
-
}, {
|
|
537
|
-
value: 0,
|
|
538
|
-
label: '采集中'
|
|
539
|
-
}]
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
}, {
|
|
543
|
-
title: '事件属性',
|
|
544
|
-
dataIndex: 'event_attrs',
|
|
545
|
-
key: 'event_attrs',
|
|
546
|
-
width: 167,
|
|
547
|
-
render: function render(_, record) {
|
|
548
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
549
|
-
className: "event_attrs"
|
|
550
|
-
}, record.event_attrs.length, /*#__PURE__*/React.createElement(IconFont, {
|
|
551
|
-
type: "bianji1",
|
|
552
|
-
onClick: function onClick() {
|
|
553
|
-
if (!authority[1000003]) {
|
|
554
|
-
message.error('无修改权限');
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
props.eventAttrDataHandle(record);
|
|
558
|
-
}
|
|
559
|
-
}));
|
|
560
|
-
}
|
|
561
|
-
}, {
|
|
562
|
-
title: '操作',
|
|
563
|
-
dataIndex: 'set',
|
|
564
|
-
key: 'set',
|
|
565
|
-
width: 110,
|
|
566
|
-
fixed: 'right',
|
|
567
|
-
render: function render(_, record) {
|
|
568
|
-
if (record.groupId) {
|
|
569
|
-
if (record.groupId == -1) return '';
|
|
570
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
571
|
-
className: "edit-del"
|
|
572
|
-
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
573
|
-
onClick: function onClick() {
|
|
574
|
-
if (!authority[1700636344]) {
|
|
575
|
-
message.error('无修改权限');
|
|
576
|
-
return;
|
|
577
|
-
}
|
|
578
|
-
setEventNameData({
|
|
579
|
-
groupName: record.groupName,
|
|
580
|
-
groupId: record.groupId
|
|
581
|
-
});
|
|
582
|
-
setEventNameInput(record.groupName);
|
|
583
|
-
setEventNameShow(true);
|
|
584
|
-
},
|
|
585
|
-
type: "bianji"
|
|
586
|
-
}), /*#__PURE__*/React.createElement(IconFont, {
|
|
587
|
-
onClick: function onClick() {
|
|
588
|
-
if (!authority[1700636359]) {
|
|
589
|
-
message.error('无修改权限');
|
|
590
|
-
return;
|
|
591
|
-
}
|
|
592
|
-
eventNameDel(record.groupId);
|
|
593
|
-
},
|
|
594
|
-
type: "shanchu"
|
|
595
|
-
}));
|
|
596
|
-
} else {
|
|
597
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
598
|
-
className: "set ".concat(record.owner == 'zg_abp' ? 'set-error' : ''),
|
|
599
|
-
onClick: function onClick() {
|
|
600
|
-
if (!authority[1000004]) {
|
|
601
|
-
message.error('无修改权限');
|
|
602
|
-
return;
|
|
603
|
-
}
|
|
604
|
-
eventItemDel(record);
|
|
605
|
-
}
|
|
606
|
-
}, "\u5220\u9664");
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}];
|
|
610
|
-
var _useState17 = useState(''),
|
|
611
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
612
|
-
scrollY = _useState18[0],
|
|
613
|
-
setScrollY = _useState18[1];
|
|
614
|
-
//页面加载完成后才能获取到对应的元素及其位置
|
|
615
|
-
useEffect(function () {
|
|
616
|
-
var _Y = getTableScroll(102);
|
|
617
|
-
// console.log('_Y', _Y);
|
|
618
|
-
setScrollY(_Y);
|
|
619
|
-
}, []);
|
|
620
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
621
|
-
className: classPrefix
|
|
622
|
-
}, /*#__PURE__*/React.createElement(Table, {
|
|
623
|
-
className: "".concat(classPrefix, "-table"),
|
|
624
|
-
id: "tablePlus",
|
|
625
|
-
columns: columns,
|
|
626
|
-
rowKey: "key",
|
|
627
|
-
loading: props.loading,
|
|
628
|
-
dataSource: tableHandleData,
|
|
629
|
-
rowClassName: function rowClassName(record, index) {
|
|
630
|
-
return rowClassNameHandle(record);
|
|
631
|
-
},
|
|
632
|
-
scroll: {
|
|
633
|
-
x: 1300,
|
|
634
|
-
y: scrollY
|
|
635
|
-
},
|
|
636
|
-
pagination: false,
|
|
637
|
-
sticky: true
|
|
638
|
-
}), /*#__PURE__*/React.createElement(Modal, {
|
|
639
|
-
title: "\u4FEE\u6539\u5206\u7EC4\u540D",
|
|
640
|
-
bodyStyle: {
|
|
641
|
-
padding: '0 24px 24px 24px'
|
|
642
|
-
},
|
|
643
|
-
destroyOnClose: true,
|
|
644
|
-
open: eventNameShow,
|
|
645
|
-
getContainer: false,
|
|
646
|
-
onOk: eventNameEdit,
|
|
647
|
-
onCancel: function onCancel() {
|
|
648
|
-
return setEventNameShow(false);
|
|
649
|
-
}
|
|
650
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
651
|
-
placeholder: "\u8BF7\u8F93\u5165\u5206\u7EC4\u540D",
|
|
652
|
-
value: eventNameInput,
|
|
653
|
-
onChange: function onChange(e) {
|
|
654
|
-
return setEventNameInput(e.currentTarget.value);
|
|
655
|
-
}
|
|
656
|
-
})), /*#__PURE__*/React.createElement(Modal, {
|
|
657
|
-
title: "\u4FEE\u6539\u4E8B\u4EF6\u522B\u540D",
|
|
658
|
-
bodyStyle: {
|
|
659
|
-
padding: '0 24px 24px 24px'
|
|
660
|
-
},
|
|
661
|
-
destroyOnClose: true,
|
|
662
|
-
open: aliasNameShow,
|
|
663
|
-
getContainer: false,
|
|
664
|
-
onOk: aliasNameEdit,
|
|
665
|
-
onCancel: function onCancel() {
|
|
666
|
-
return setaliasNameShow(false);
|
|
667
|
-
}
|
|
668
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
669
|
-
placeholder: "\u8BF7\u8F93\u5165\u4E8B\u4EF6\u522B\u540D",
|
|
670
|
-
value: aliasNameInput,
|
|
671
|
-
onChange: function onChange(e) {
|
|
672
|
-
return setAliasNameInput(e.currentTarget.value);
|
|
673
|
-
}
|
|
674
|
-
})));
|
|
675
|
-
};
|
|
676
|
-
export default TablePlus;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface DataCollectionProps {
|
|
3
|
-
/**
|
|
4
|
-
* 默认选中菜单
|
|
5
|
-
*/
|
|
6
|
-
activeTab?: number | string;
|
|
7
|
-
/**
|
|
8
|
-
* 拓展的一级菜单
|
|
9
|
-
*/
|
|
10
|
-
extraTabs?: {
|
|
11
|
-
key: string;
|
|
12
|
-
label: string;
|
|
13
|
-
hidden?: boolean;
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
[other: string]: any;
|
|
16
|
-
}[];
|
|
17
|
-
}
|
|
18
|
-
declare const DataCollection: React.FC<DataCollectionProps>;
|
|
19
|
-
export default DataCollection;
|