@zgfe/modules-dm 1.0.2-dm.22 → 1.0.2-dm.24

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.
@@ -241,8 +241,9 @@ var CollectionEventList = function CollectionEventList(props) {
241
241
  case 'is_stop':
242
242
  return item.is_stop == filterItem.value || item.groupId != undefined;
243
243
  }
244
- }; // 多条件同时筛选
244
+ };
245
245
 
246
+ var clearEmptyGroupFlag = false; // 多条件同时筛选
246
247
 
247
248
  var _tableHandleData = [];
248
249
  tableHandleDataBasics.map(function (item) {
@@ -250,6 +251,7 @@ var CollectionEventList = function CollectionEventList(props) {
250
251
  filterTypeData.map(function (filterItem) {
251
252
  if (!_judgeFun(item, filterItem)) {
252
253
  falg = false;
254
+ if (filterItem.type == 'event_hidden' || filterItem.type == 'is_stop') clearEmptyGroupFlag = true;
253
255
  }
254
256
  });
255
257
  falg && _tableHandleData.push(item);
@@ -262,7 +264,7 @@ var CollectionEventList = function CollectionEventList(props) {
262
264
  }
263
265
  });
264
266
 
265
- setTotal(total); // 过滤空组
267
+ setTotal(total); // 过滤空组 , event_hidden 和 is_stop,触发
266
268
 
267
269
  var clearEmptyGroup = function clearEmptyGroup(data) {
268
270
  var _data = _.cloneDeep(data);
@@ -281,7 +283,11 @@ var CollectionEventList = function CollectionEventList(props) {
281
283
  return _data;
282
284
  };
283
285
 
284
- setTableHandleData(clearEmptyGroup(_tableHandleData));
286
+ if (!clearEmptyGroupFlag) {
287
+ setTableHandleData(_tableHandleData);
288
+ } else {
289
+ setTableHandleData(clearEmptyGroup(_tableHandleData));
290
+ }
285
291
  }, [filterTypeData, tableHandleDataBasics]); // 是否已包含筛选type
286
292
 
287
293
  var filterHas = function filterHas(type) {
@@ -26,6 +26,8 @@ var DataCollection = function DataCollection(props) {
26
26
  isDemo = _useContext.isDemo; // const { updateEventMetas } = props;
27
27
 
28
28
 
29
+ console.log('①埋点方案', currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId);
30
+
29
31
  var _useState = useState(1),
30
32
  _useState2 = _slicedToArray(_useState, 2),
31
33
  listTab = _useState2[0],
@@ -173,6 +173,7 @@
173
173
  }
174
174
  }
175
175
  .select-style {
176
+ width: 126px;
176
177
  .ant-select-selection-item {
177
178
  color: #021429;
178
179
  font-weight: 500;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import './styles/index.less';
3
3
  interface DataManageProps {
4
4
  updateEventMetas: Function;
5
+ key: number;
5
6
  }
6
7
  declare const DataManage: React.FC<DataManageProps>;
7
8
  export default DataManage;
@@ -20,6 +20,7 @@ import PlanList from '../dataPlan';
20
20
  import DataCollection from '../dataCollection';
21
21
 
22
22
  var DataManage = function DataManage(props) {
23
+ console.log('DataManage-key', props.key);
23
24
  var classPrefix = 'data-manage';
24
25
  var updateEventMetas = props.updateEventMetas; // const { state, dispatch } = useContext(DmContext);
25
26
 
@@ -24,8 +24,9 @@ var PlanList = function PlanList(props) {
24
24
 
25
25
  var _useContext = useContext(BizGlobalDataContext),
26
26
  currentApp = _useContext.currentApp,
27
- isDemo = _useContext.isDemo; // 查看方案
27
+ isDemo = _useContext.isDemo;
28
28
 
29
+ console.log('②埋点方案管理', currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId); // 查看方案
29
30
 
30
31
  var tableSee = function tableSee(data) {
31
32
  setDetailId(data.id);
@@ -125,8 +126,7 @@ var PlanList = function PlanList(props) {
125
126
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
126
127
  }
127
128
  }).then(function (res) {
128
- if (!res) throw new Error();
129
- setListData(res.data.planList);
129
+ res.data && res.data.planList && setListData(res.data.planList);
130
130
  }).catch(function (err) {
131
131
  console.error('查询列表失败', err);
132
132
  }).finally(function () {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.2-dm.22",
3
+ "version": "1.0.2-dm.24",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "license": "ISC",
@@ -41,7 +41,7 @@
41
41
  "@types/lodash": "^4.14.182",
42
42
  "@umijs/fabric": "^2.8.1",
43
43
  "@umijs/test": "^3.0.5",
44
- "@zgfe/business-lib": "1.1.7-dmd2.7",
44
+ "@zgfe/business-lib": "1.1.7-dmd2.8",
45
45
  "antd": "4.22.6",
46
46
  "dumi": "^1.1.0",
47
47
  "father-build": "^1.17.2",
@@ -53,7 +53,7 @@
53
53
  "umi-request": "^1.4.0",
54
54
  "yorkie": "^2.0.0"
55
55
  },
56
- "gitHead": "6da0e3c243ef034ae408f11086704cb814a802b4",
56
+ "gitHead": "bc084bb7488b8cfd069a082a162479c1b7771d3e",
57
57
  "gitHooks": {
58
58
  "pre-commit": "lint-staged"
59
59
  }