@zgfe/modules-dm 1.0.39 → 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/components/demo.js +2 -4
- package/es/modules/dataCollection/collectionEventList.js +15 -6
- package/es/modules/dataCollection/components/eventFilter/styles/index.less +0 -0
- package/es/modules/dataCollection/styles/index.less +0 -1
- package/es/modules/dataManage/demo/index.js +1 -2
- package/es/modules/dataPlan/addPlan.js +1 -1
- package/package.json +2 -2
package/es/components/demo.js
CHANGED
|
@@ -13,6 +13,7 @@ var DemoWrapper2 = function DemoWrapper2(props) {
|
|
|
13
13
|
1700559695: true,
|
|
14
14
|
100021: true
|
|
15
15
|
};
|
|
16
|
+
// <DemoWrapper needMeta defaultApp={501313} contextProps={{ authority }}>
|
|
16
17
|
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
17
18
|
locale: zhCN
|
|
18
19
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -23,10 +24,7 @@ var DemoWrapper2 = function DemoWrapper2(props) {
|
|
|
23
24
|
}
|
|
24
25
|
}, /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
25
26
|
needMeta: true,
|
|
26
|
-
defaultApp:
|
|
27
|
-
contextProps: {
|
|
28
|
-
authority: authority
|
|
29
|
-
}
|
|
27
|
+
defaultApp: 501313
|
|
30
28
|
}, props.children)));
|
|
31
29
|
};
|
|
32
30
|
export default DemoWrapper2;
|
|
@@ -337,16 +337,25 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
337
337
|
count = 0;
|
|
338
338
|
arr = [];
|
|
339
339
|
}
|
|
340
|
+
// 当前页需要展示的数据
|
|
340
341
|
var _renderData = paginationData[pageNumber - 1];
|
|
341
|
-
//
|
|
342
|
+
// 临时数组,搜索时使用,存储已添加的分组id
|
|
343
|
+
var _tempGroupIdList = [];
|
|
344
|
+
// 临时渲染数据,搜索时使用,存放处理后的数据(含分组信息)
|
|
345
|
+
var _tempRenderData = [];
|
|
346
|
+
// console.log('_renderData', tableHandleData, _renderData, groupData);
|
|
342
347
|
if (_renderData && _renderData.length > 0 && _renderData[0].groupId == undefined) {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
348
|
+
_renderData.map(function (item) {
|
|
349
|
+
groupData.map(function (_item) {
|
|
350
|
+
if (_item.groupId === item._groupId && _tempGroupIdList.indexOf(item._groupId) === -1) {
|
|
351
|
+
_tempGroupIdList.push(item._groupId);
|
|
352
|
+
_tempRenderData.push(_item);
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
_tempRenderData.push(item);
|
|
347
356
|
});
|
|
348
357
|
}
|
|
349
|
-
setTableRenderData(_renderData);
|
|
358
|
+
setTableRenderData(_tempRenderData.length > 0 ? _tempRenderData : _renderData);
|
|
350
359
|
}, [pageNumber, pageSize, tableHandleData]);
|
|
351
360
|
// 分页处理
|
|
352
361
|
var onPaginationChange = function onPaginationChange(pageNumber, pageSize) {
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"umi-request": "^1.4.0",
|
|
52
52
|
"yorkie": "^2.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "ee301ccae532f40ea489db03cfadf1f14d6aef8e",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|