@zgfe/modules-event 0.0.2-event.77 → 0.0.2-event.78

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.
@@ -150,7 +150,6 @@ var ModuleEvent = function ModuleEvent(props) {
150
150
  selectEventData: selectEventData,
151
151
  onSelectEvent: onSelectEvent,
152
152
  panelName: title,
153
- urlParam: props.urlParam,
154
153
  includeToday: props.includeToday,
155
154
  showWarning: props.showWarning,
156
155
  enableAddScene: props.defaultValue && props.defaultValue.enableAddScene === false ? false : true,
@@ -10,7 +10,6 @@ export declare namespace EventProps {
10
10
  showWarning?: boolean;
11
11
  enableGenerateReport?: boolean;
12
12
  onChange: (data: Value | undefined) => void;
13
- urlParam?: Value;
14
13
  }
15
14
  interface Value {
16
15
  panelId?: number;
@@ -4,11 +4,10 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5
5
  function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import React, { useState, useContext } from 'react';
7
+ import React, { useState } from 'react';
8
8
  import { Form, Button } from 'antd';
9
9
  import { BizUserGroupHeader } from '@zgfe/business-lib';
10
10
  import EventFilter from '../../components/eventFilter';
11
- import { EventContext } from '../../types';
12
11
  import './styles/index.less';
13
12
  var classPrefix = 'top-panel';
14
13
  var TopPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -24,8 +23,6 @@ var TopPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
24
23
  _useState4 = _slicedToArray(_useState3, 2),
25
24
  marginStyle = _useState4[0],
26
25
  setmarginStyle = _useState4[1];
27
- var _useContext = useContext(EventContext),
28
- urlParam = _useContext.urlParam;
29
26
  var countChange = function countChange(count) {
30
27
  setmarginStyle(count > 0 ? true : false);
31
28
  };
@@ -78,7 +75,7 @@ var TopPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
78
75
  colon: false,
79
76
  layout: "vertical",
80
77
  initialValues: {
81
- userGroup: (urlParam === null || urlParam === void 0 ? void 0 : urlParam.userGroup) ? urlParam === null || urlParam === void 0 ? void 0 : urlParam.userGroup : userGroup ? userGroup : [0],
78
+ userGroup: userGroup ? userGroup : [0],
82
79
  filterConditions: {
83
80
  id: value === null || value === void 0 ? void 0 : value.id,
84
81
  name: value === null || value === void 0 ? void 0 : value.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-event",
3
- "version": "0.0.2-event.77",
3
+ "version": "0.0.2-event.78",
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": "ee6a1340752e4eaa24d24ccba4a873993ef5363f",
52
+ "gitHead": "b706bb6ba27d077399b49a097288fe33b08a9186",
53
53
  "dependencies": {
54
54
  "react-copy-to-clipboard": "^5.1.0",
55
55
  "react-highlight": "^0.15.0"