@zgfe/modules-interval 1.0.0-interval.10 → 1.0.0-interval.12
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.
- package/dist/esm/components/common/index.js +1 -1
- package/dist/esm/components/common/styles/index.less +1 -1
- package/dist/esm/components/eventFilter/types.d.ts +1 -0
- package/dist/esm/components/searchPanel/index.js +1 -1
- package/dist/esm/components/searchPanel/styles/index.less +1 -1
- package/dist/esm/components/topBar/index.js +13 -10
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/modules/content/index.js +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -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,16 +67,18 @@ 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
|
}
|
|
73
74
|
}, "\u6DFB\u52A0\u5230\u770B\u677F"), showPanel && /*#__PURE__*/React.createElement(BizAddToPanel, {
|
|
74
75
|
type: panelType,
|
|
75
|
-
params: _objectSpread({
|
|
76
|
-
|
|
77
|
-
module: '
|
|
78
|
-
}, searchData),
|
|
76
|
+
params: _objectSpread(_objectSpread({
|
|
77
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
78
|
+
module: 'interval'
|
|
79
|
+
}, searchDataParams(searchData)), {}, {
|
|
80
|
+
chartType: 'boxplot'
|
|
81
|
+
}),
|
|
79
82
|
styleOptions: chartTypes,
|
|
80
83
|
onCancel: function onCancel() {
|
|
81
84
|
return closeHandle('panel');
|
|
@@ -86,15 +89,15 @@ var TopBar = function TopBar(props) {
|
|
|
86
89
|
})), enableAddScene && /*#__PURE__*/React.createElement("div", {
|
|
87
90
|
className: "".concat(classPrefix, "-scene")
|
|
88
91
|
}, /*#__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,
|
|
92
|
+
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
93
|
onClick: function onClick() {
|
|
91
94
|
setShowScene(true);
|
|
92
95
|
}
|
|
93
96
|
}, "\u6DFB\u52A0\u5E38\u7528\u573A\u666F"), showScene && /*#__PURE__*/React.createElement(BizAddToScene, {
|
|
94
97
|
params: _objectSpread({
|
|
95
|
-
|
|
96
|
-
module: '
|
|
97
|
-
}, searchData),
|
|
98
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
99
|
+
module: 'interval'
|
|
100
|
+
}, searchDataParams(searchData)),
|
|
98
101
|
onOk: function onOk(data) {
|
|
99
102
|
return _onOk('scene', data);
|
|
100
103
|
},
|
|
@@ -104,7 +107,7 @@ var TopBar = function TopBar(props) {
|
|
|
104
107
|
})), (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
108
|
className: "".concat(classPrefix, "-earlywarning"),
|
|
106
109
|
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,
|
|
110
|
+
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
111
|
onClick: function onClick() {
|
|
109
112
|
props.onUserDrill({
|
|
110
113
|
appId: Number(currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId),
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -116,7 +116,7 @@ var EventContent = function EventContent(props) {
|
|
|
116
116
|
if (flag !== undefined) setAjaxFlag(flag);
|
|
117
117
|
if (!ajaxFlag) return;
|
|
118
118
|
if ((searchData === null || searchData === void 0 ? void 0 : (_searchData$start = searchData.start) === null || _searchData$start === void 0 ? void 0 : _searchData$start.id) === null || (searchData === null || searchData === void 0 ? void 0 : (_searchData$endId = searchData.endId) === null || _searchData$endId === void 0 ? void 0 : _searchData$endId.id) === null) {
|
|
119
|
-
setLoading(
|
|
119
|
+
setLoading(true);
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
122
|
setLoading(true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-interval",
|
|
3
|
-
"version": "1.0.0-interval.
|
|
3
|
+
"version": "1.0.0-interval.12",
|
|
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-
|
|
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",
|