@zgfe/modules-event 0.0.2-event.84 → 0.1.0

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.
@@ -142,7 +142,6 @@ var EventFilter = function EventFilter(props) {
142
142
  }
143
143
  if (bizAttributeSelectorValue) {
144
144
  var _dimension = _.cloneDeep(bizAttributeSelectorValue);
145
- console.log('_dimension', _dimension.value);
146
145
  setEnableSelectChart && setEnableSelectChart(judgeIsArea(_dimension.value));
147
146
  setIsCity && setIsCity(judgeIsCity(_dimension.value));
148
147
  if (judgeIsArea(_dimension.value)) {
@@ -19,7 +19,6 @@ import moment from 'moment';
19
19
  import { Apis, chartColors } from '../../constants';
20
20
  var classPrefix = 'event-mi-table';
21
21
  var EventChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
22
- console.log('EventChart', props);
23
22
  var params = props.params;
24
23
  var _useState = useState(false),
25
24
  _useState2 = _slicedToArray(_useState, 2),
@@ -37,7 +36,6 @@ var EventChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
37
36
  _useState8 = _slicedToArray(_useState7, 2),
38
37
  dataSource = _useState8[0],
39
38
  setDataSource = _useState8[1];
40
- console.log('dataSource66', props.dataSource);
41
39
  var _useContext = useContext(BizGlobalDataContext),
42
40
  currentApp = _useContext.currentApp,
43
41
  eventGroupList = _useContext.eventGroupList,
@@ -53,7 +51,6 @@ var EventChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
53
51
  }, [showList]);
54
52
  useEffect(function () {
55
53
  if (!props.dataSource) {
56
- console.log('看板列表访问-请求查询', params);
57
54
  fetchResult();
58
55
  }
59
56
  }, [params]);
@@ -61,7 +61,6 @@ var EventContent = function EventContent(props) {
61
61
  var collapseRef = useRef();
62
62
  var chartRef = useRef();
63
63
  useEffect(function () {
64
- console.log('searchData改变了,准备请求数据', searchData);
65
64
  if (timer) clearTimeout(timer);
66
65
  var flag = true;
67
66
  timer = setTimeout(function () {
@@ -79,7 +78,6 @@ var EventContent = function EventContent(props) {
79
78
  }, [loading]);
80
79
  var fetchRequest = function fetchRequest(flag) {
81
80
  if (JSON.stringify(searchData) === JSON.stringify(finalSearchData)) {
82
- console.log('数据没变,终止请求', searchData);
83
81
  return;
84
82
  }
85
83
  if (flag !== undefined) ajaxFlag = flag;
@@ -105,7 +103,6 @@ var EventContent = function EventContent(props) {
105
103
  }
106
104
  var result = res.data;
107
105
  var _data = searchData.dimension ? result : getChartDataEventAliasName(result, eventGroupList);
108
- console.log('dataSource66888', _data);
109
106
  setShowList(_data ? getDefaultShow(_data) : []);
110
107
  if (['bar', 'pie', 'map'].indexOf(searchData.chartType) !== -1) {
111
108
  _data = getSortData(_data);
@@ -140,11 +137,9 @@ var EventContent = function EventContent(props) {
140
137
  });
141
138
  };
142
139
  var onChangeSearch = function onChangeSearch(data, flag) {
143
- console.log('TopPanel查询条件变更,', data);
144
140
  ajaxFlag = flag;
145
141
  data.id ? setEventId(data.id) : setEventId(-1);
146
142
  setSearchData(function (_searchData) {
147
- console.log(666, _searchData, data);
148
143
  var _data = _objectSpread(_objectSpread({}, _searchData), {}, {
149
144
  dimension: data.dimension,
150
145
  filters: data.filters
@@ -18,7 +18,6 @@ import { chartTypes } from '../../constants';
18
18
  var classPrefix = 'event-module-container';
19
19
  var onChangeTimer = -1;
20
20
  var ModuleEvent = function ModuleEvent(props) {
21
- console.log('ModuleEvent-props', props);
22
21
  var _useContext = useContext(BizGlobalDataContext),
23
22
  currentApp = _useContext.currentApp,
24
23
  eventGroupList = _useContext.eventGroupList,
@@ -70,7 +69,6 @@ var ModuleEvent = function ModuleEvent(props) {
70
69
  showList = _useState18[0],
71
70
  setShowList = _useState18[1];
72
71
  useEffect(function () {
73
- console.log('事件分析初始化:', props.defaultValue);
74
72
  setPageLoading(true);
75
73
  if (props.defaultValue) {
76
74
  setShowList(props.defaultValue.chosen_data);
@@ -92,7 +90,6 @@ var ModuleEvent = function ModuleEvent(props) {
92
90
  }, 0);
93
91
  }, []);
94
92
  var initSearch = function initSearch(userGroup) {
95
- console.log('查询条件初始化', userGroup);
96
93
  setSearchData({
97
94
  userGroup: userGroup ? userGroup : (userGroupList === null || userGroupList === void 0 ? void 0 : userGroupList.length) > 0 ? [userGroupList[0].id] : [0],
98
95
  time: getInitDate(props.includeToday),
@@ -33,7 +33,6 @@ var TopPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
33
33
  form = _Form$useForm2[0];
34
34
  var userGroup = value.userGroup;
35
35
  var onValuesChange = function onValuesChange(data, allData) {
36
- console.log('用户组和事件变更', data, allData);
37
36
  var _data = {};
38
37
  if (allData.filterConditions) {
39
38
  if (allData.filterConditions.id !== -100) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-event",
3
- "version": "0.0.2-event.84",
3
+ "version": "0.1.0",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -49,7 +49,7 @@
49
49
  "react": "^16.12.0 || ^17.0.0",
50
50
  "yorkie": "^2.0.0"
51
51
  },
52
- "gitHead": "daff5a968e7cf5281f24de0545c04a4a26d77323",
52
+ "gitHead": "24eca66c4f0a78342871fa4b6e4aba238d7d5034",
53
53
  "dependencies": {
54
54
  "react-copy-to-clipboard": "^5.1.0",
55
55
  "react-highlight": "^0.15.0"