@zgfe/modules-interval 1.0.0-interval.10 → 1.0.0-interval.11

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import "./styles/index.less";
3
- var classPrefix = 'mi-common';
3
+ var classPrefix = 'mi-common-interval';
4
4
 
5
5
  // 加载按钮
6
6
  export var MiSpin = function MiSpin() {
@@ -1,6 +1,6 @@
1
1
  @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
2
 
3
- .mi-common {
3
+ .mi-common-interval {
4
4
  &-loading-icon {
5
5
  z-index: 1000;
6
6
  display: inline-block;
@@ -44,6 +44,7 @@ export interface ConditionsnProps {
44
44
  * EventFilter组件
45
45
  */
46
46
  export interface EventFilterProps {
47
+ id?: string;
47
48
  value?: eventProps;
48
49
  relevancy?: boolean;
49
50
  onChange?: (event: eventProps) => {};
@@ -16,7 +16,7 @@ import { chartTypeOptions, getInitDate } from "../../constants";
16
16
  import { EventContext } from "../../types";
17
17
  import "./styles/index.less";
18
18
  import { extractNames } from "../../utils/formData";
19
- var classPrefix = 'search-panel';
19
+ var classPrefix = 'search-panel-interval';
20
20
  var SearchPanel = function SearchPanel(props) {
21
21
  var _useContext = useContext(EventContext),
22
22
  includeToday = _useContext.includeToday;
@@ -1,4 +1,4 @@
1
- .search-panel {
1
+ .search-panel-interval {
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: space-between;
@@ -16,6 +16,7 @@ import { BizAddToPanel, BizAddToScene, BizGlobalDataContext } from '@zgfe/busine
16
16
  import "./styles/index.less";
17
17
  import { EventContext } from "../../types";
18
18
  import { chartTypes, platformOption } from "../../constants/fields";
19
+ import { searchDataParams } from "../../modules/content/utils";
19
20
  var classPrefix = 'modules-interval-topbar';
20
21
  var TopBar = function TopBar(props) {
21
22
  var _props$eventData, _props$eventData$appD, _props$eventData$appD2, _props$eventData2, _props$eventData2$app, _props$eventData2$app2, _props$eventData3, _props$eventData3$app, _props$eventData3$app2;
@@ -66,7 +67,7 @@ var TopBar = function TopBar(props) {
66
67
  }, !panelId && /*#__PURE__*/React.createElement("div", {
67
68
  className: "".concat(classPrefix, "-panel")
68
69
  }, /*#__PURE__*/React.createElement(Button, {
69
- disabled: (props === null || props === void 0 ? void 0 : (_props$eventData = props.eventData) === null || _props$eventData === void 0 ? void 0 : (_props$eventData$appD = _props$eventData.appData) === null || _props$eventData$appD === void 0 ? void 0 : (_props$eventData$appD2 = _props$eventData$appD.series) === null || _props$eventData$appD2 === void 0 ? void 0 : _props$eventData$appD2.length) === 0,
70
+ disabled: !(props !== null && props !== void 0 && props.eventData) || (props === null || props === void 0 ? void 0 : (_props$eventData = props.eventData) === null || _props$eventData === void 0 ? void 0 : (_props$eventData$appD = _props$eventData.appData) === null || _props$eventData$appD === void 0 ? void 0 : (_props$eventData$appD2 = _props$eventData$appD.series) === null || _props$eventData$appD2 === void 0 ? void 0 : _props$eventData$appD2.length) === 0,
70
71
  onClick: function onClick() {
71
72
  setShowPanel(true);
72
73
  }
@@ -74,8 +75,8 @@ var TopBar = function TopBar(props) {
74
75
  type: panelType,
75
76
  params: _objectSpread({
76
77
  app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
77
- module: 'event'
78
- }, searchData),
78
+ module: 'interval'
79
+ }, searchDataParams(searchData)),
79
80
  styleOptions: chartTypes,
80
81
  onCancel: function onCancel() {
81
82
  return closeHandle('panel');
@@ -86,15 +87,15 @@ var TopBar = function TopBar(props) {
86
87
  })), enableAddScene && /*#__PURE__*/React.createElement("div", {
87
88
  className: "".concat(classPrefix, "-scene")
88
89
  }, /*#__PURE__*/React.createElement(Button, {
89
- disabled: (props === null || props === void 0 ? void 0 : (_props$eventData2 = props.eventData) === null || _props$eventData2 === void 0 ? void 0 : (_props$eventData2$app = _props$eventData2.appData) === null || _props$eventData2$app === void 0 ? void 0 : (_props$eventData2$app2 = _props$eventData2$app.series) === null || _props$eventData2$app2 === void 0 ? void 0 : _props$eventData2$app2.length) === 0,
90
+ disabled: !(props !== null && props !== void 0 && props.eventData) || (props === null || props === void 0 ? void 0 : (_props$eventData2 = props.eventData) === null || _props$eventData2 === void 0 ? void 0 : (_props$eventData2$app = _props$eventData2.appData) === null || _props$eventData2$app === void 0 ? void 0 : (_props$eventData2$app2 = _props$eventData2$app.series) === null || _props$eventData2$app2 === void 0 ? void 0 : _props$eventData2$app2.length) === 0,
90
91
  onClick: function onClick() {
91
92
  setShowScene(true);
92
93
  }
93
94
  }, "\u6DFB\u52A0\u5E38\u7528\u573A\u666F"), showScene && /*#__PURE__*/React.createElement(BizAddToScene, {
94
95
  params: _objectSpread({
95
96
  app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
96
- module: 'event'
97
- }, searchData),
97
+ module: 'interval'
98
+ }, searchDataParams(searchData)),
98
99
  onOk: function onOk(data) {
99
100
  return _onOk('scene', data);
100
101
  },
@@ -104,7 +105,7 @@ var TopBar = function TopBar(props) {
104
105
  })), (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appVersion) === 1 || (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appVersion) === 2 ? /*#__PURE__*/React.createElement(Button, {
105
106
  className: "".concat(classPrefix, "-earlywarning"),
106
107
  type: "primary",
107
- disabled: (props === null || props === void 0 ? void 0 : (_props$eventData3 = props.eventData) === null || _props$eventData3 === void 0 ? void 0 : (_props$eventData3$app = _props$eventData3.appData) === null || _props$eventData3$app === void 0 ? void 0 : (_props$eventData3$app2 = _props$eventData3$app.series) === null || _props$eventData3$app2 === void 0 ? void 0 : _props$eventData3$app2.length) === 0,
108
+ disabled: !(props !== null && props !== void 0 && props.eventData) || (props === null || props === void 0 ? void 0 : (_props$eventData3 = props.eventData) === null || _props$eventData3 === void 0 ? void 0 : (_props$eventData3$app = _props$eventData3.appData) === null || _props$eventData3$app === void 0 ? void 0 : (_props$eventData3$app2 = _props$eventData3$app.series) === null || _props$eventData3$app2 === void 0 ? void 0 : _props$eventData3$app2.length) === 0,
108
109
  onClick: function onClick() {
109
110
  props.onUserDrill({
110
111
  appId: Number(currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-interval",
3
- "version": "1.0.0-interval.10",
3
+ "version": "1.0.0-interval.11",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -43,7 +43,7 @@
43
43
  "@types/uuid": "^9.0.2",
44
44
  "@umijs/fabric": "^2.8.1",
45
45
  "@umijs/test": "^3.0.5",
46
- "@zgfe/business-lib": "1.1.81-scenes1.0.8",
46
+ "@zgfe/business-lib": "1.1.81-page.3",
47
47
  "@zgfe/modules-demo-manage": "^1.0.1",
48
48
  "antd": "^4.22.6",
49
49
  "dumi": "^1.1.0",