@zgfe/modules-attribution 1.0.1-alpha.16 → 1.0.1-alpha.18

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.
@@ -97,7 +97,8 @@ var OptionGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
97
97
  type: "tianjia2"
98
98
  }),
99
99
  onClick: function onClick() {
100
- return setShowSceneDialog(true);
100
+ _onGetSearchData && _onGetSearchData();
101
+ setShowSceneDialog(true);
101
102
  }
102
103
  }, "\u6DFB\u52A0\u5230\u5E38\u7528\u573A\u666F"), !panelId && /*#__PURE__*/React.createElement(Button, {
103
104
  disabled: buttonDisable || searching,
@@ -16,7 +16,6 @@ import './styles/index.less';
16
16
  import { Apis } from '../../constants';
17
17
  import { handleTableData } from './utils';
18
18
  import { TableList, OptionGroup, SearchTime } from '../../components';
19
- import util from '../../utils/util';
20
19
  var CancelToken = Request.CancelToken;
21
20
  var cancel;
22
21
  var classPrefix = 'attribution-content';
@@ -72,14 +71,9 @@ var InsightContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
72
71
  if (typeof cancel === 'function') {
73
72
  cancel();
74
73
  }
75
- var _searchData;
76
- if (util.isArray(searchData.targetFilters) && searchData.targetFilters) {
77
- _searchData = _objectSpread(_objectSpread({}, searchData), {}, {
78
- targetFilters: searchData.targetFilters[0]
79
- });
80
- } else {
81
- _searchData = searchData;
82
- }
74
+ var _searchData = _objectSpread(_objectSpread({}, searchData), {}, {
75
+ targetFilters: searchData.targetFilters[0]
76
+ });
83
77
  request(Apis.getAnalyseData, {
84
78
  method: 'post',
85
79
  data: _objectSpread(_objectSpread(_objectSpread({}, currentApp), _searchData), time),
@@ -12,7 +12,7 @@ var defaultValue = {
12
12
  data: {
13
13
  "app_id": 21,
14
14
  "module": "attribution",
15
- "targetFilters": {
15
+ "targetFilters": [{
16
16
  "eventId": 6078,
17
17
  "eventName": "埋点事件-11",
18
18
  "filters": {
@@ -37,7 +37,7 @@ var defaultValue = {
37
37
  "attrName": "机身宽度"
38
38
  }]
39
39
  }
40
- },
40
+ }],
41
41
  "sourceFilters": [{
42
42
  "eventId": 6090,
43
43
  "eventName": "间隔事件-01",
@@ -62,9 +62,7 @@ var AttributionHome = function AttributionHome(props) {
62
62
  if (!initData) {
63
63
  initSearch();
64
64
  } else {
65
- setSearchData(_objectSpread(_objectSpread({}, initData), {}, {
66
- targetFilters: [initData.targetFilters]
67
- }));
65
+ setSearchData(_objectSpread({}, initData));
68
66
  }
69
67
  }
70
68
  setTimeout(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-attribution",
3
- "version": "1.0.1-alpha.16",
3
+ "version": "1.0.1-alpha.18",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -50,5 +50,5 @@
50
50
  "react": "^16.12.0 || ^17.0.0",
51
51
  "yorkie": "^2.0.0"
52
52
  },
53
- "gitHead": "3789754579916a56c89d082126dcdc7d9717161f"
53
+ "gitHead": "a5b79c7b13aa1420950945d4b84b36de1bc7b75e"
54
54
  }