@zgfe/modules-dm 1.0.31-parameter.0 → 1.0.31-xinao.2
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.
|
@@ -353,8 +353,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
353
353
|
source == 'event' ? data.append('event_id', eventAttrsData === null || eventAttrsData === void 0 ? void 0 : eventAttrsData.event_id) : null;
|
|
354
354
|
request(apis.propUpload, {
|
|
355
355
|
method: 'post',
|
|
356
|
-
data: data
|
|
357
|
-
isTransform: false
|
|
356
|
+
data: data
|
|
358
357
|
}).then(function (res) {
|
|
359
358
|
if (res.code == 10001) {
|
|
360
359
|
message.success('上传成功');
|
|
@@ -374,16 +374,25 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
374
374
|
count = 0;
|
|
375
375
|
arr = [];
|
|
376
376
|
}
|
|
377
|
+
// 当前页需要展示的数据
|
|
377
378
|
var _renderData = paginationData[pageNumber - 1];
|
|
378
|
-
//
|
|
379
|
+
// 临时数组,存储已添加的分组id
|
|
380
|
+
var _tempGroupIdList = [];
|
|
381
|
+
// 临时渲染数据,搜索时使用,存放处理后的数据(含分组信息)
|
|
382
|
+
var _tempRenderData = [];
|
|
383
|
+
// console.log('_renderData', tableHandleData, _renderData, groupData);
|
|
379
384
|
if (_renderData && _renderData.length > 0 && _renderData[0].groupId == undefined) {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
385
|
+
_renderData.map(function (item) {
|
|
386
|
+
groupData.map(function (_item) {
|
|
387
|
+
if (_item.groupId === item._groupId && _tempGroupIdList.indexOf(item._groupId) === -1) {
|
|
388
|
+
_tempGroupIdList.push(item._groupId);
|
|
389
|
+
_tempRenderData.push(_item);
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
_tempRenderData.push(item);
|
|
384
393
|
});
|
|
385
394
|
}
|
|
386
|
-
setTableRenderData(_renderData);
|
|
395
|
+
setTableRenderData(_tempRenderData.length > 0 ? _tempRenderData : _renderData);
|
|
387
396
|
}, [pageNumber, pageSize, tableHandleData]);
|
|
388
397
|
// 分页处理
|
|
389
398
|
var onPaginationChange = function onPaginationChange(pageNumber, pageSize) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.31-
|
|
3
|
+
"version": "1.0.31-xinao.2",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@types/lodash": "^4.14.182",
|
|
38
38
|
"@umijs/fabric": "^2.8.1",
|
|
39
39
|
"@umijs/test": "^3.0.5",
|
|
40
|
-
"@zgfe/business-lib": "1.1.
|
|
40
|
+
"@zgfe/business-lib": "^1.1.57",
|
|
41
41
|
"antd": "4.24.10",
|
|
42
42
|
"dumi": "^1.1.0",
|
|
43
43
|
"father-build": "^1.17.2",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"umi-request": "^1.4.0",
|
|
50
50
|
"yorkie": "^2.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "9946c9d4ac13d31bfa3be622e1b5eae0a9447402",
|
|
53
53
|
"gitHooks": {
|
|
54
54
|
"pre-commit": "lint-staged"
|
|
55
55
|
}
|