@zgfe/modules-interval 1.0.0-interval.2 → 1.0.0-interval.3
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/searchPanel/index.js +1 -1
- package/dist/esm/components/topBar/index.js +1 -4
- package/dist/esm/components/topBar/types.d.ts +2 -1
- package/dist/esm/modules/content/index.js +2 -1
- package/dist/esm/modules/content/types.d.ts +2 -1
- package/dist/esm/modules/home/index.js +1 -0
- package/package.json +1 -1
|
@@ -105,7 +105,7 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
105
105
|
display: 'flex'
|
|
106
106
|
}
|
|
107
107
|
}, /*#__PURE__*/React.createElement(BizDatePicker, {
|
|
108
|
-
dateTypeList: ['week', 'month'],
|
|
108
|
+
dateTypeList: ['day', 'week', 'month'],
|
|
109
109
|
defaultValue: time,
|
|
110
110
|
onChange: onChangeTime
|
|
111
111
|
}), /*#__PURE__*/React.createElement(BizSelect, {
|
|
@@ -16,7 +16,6 @@ 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 { Link } from 'react-router-dom';
|
|
20
19
|
var classPrefix = 'modules-event-topbar';
|
|
21
20
|
var TopBar = function TopBar(props) {
|
|
22
21
|
// console.log('TopBar', props);
|
|
@@ -104,9 +103,7 @@ var TopBar = function TopBar(props) {
|
|
|
104
103
|
className: "".concat(classPrefix, "-earlywarning"),
|
|
105
104
|
type: "primary",
|
|
106
105
|
onClick: function onClick() {
|
|
107
|
-
|
|
108
|
-
to: "/manage/warning/list"
|
|
109
|
-
}, "Home");
|
|
106
|
+
props.onUserDrill;
|
|
110
107
|
}
|
|
111
108
|
}, "\u8BBE\u7F6E\u6D41\u5931\u9884\u8B66"), /*#__PURE__*/React.createElement("div", {
|
|
112
109
|
className: "".concat(classPrefix, "-platform")
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { SearchValue } from '../../types';
|
|
1
|
+
import { SearchValue, UserDrillParamsProp } from '../../types';
|
|
2
2
|
export interface TopBarProps {
|
|
3
3
|
/**
|
|
4
4
|
* @description 标题
|
|
5
5
|
*/
|
|
6
6
|
searchData?: SearchValue;
|
|
7
|
+
onUserDrill: (data: UserDrillParamsProp, searchData: SearchValue) => void;
|
|
7
8
|
platformChange: (data: number) => void;
|
|
8
9
|
}
|
|
@@ -178,7 +178,8 @@ var EventContent = function EventContent(props) {
|
|
|
178
178
|
};
|
|
179
179
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TopBar, {
|
|
180
180
|
searchData: searchData,
|
|
181
|
-
platformChange: platformChange
|
|
181
|
+
platformChange: platformChange,
|
|
182
|
+
onUserDrill: props.onUserDrill
|
|
182
183
|
}), /*#__PURE__*/React.createElement(BizLayout, {
|
|
183
184
|
showTitle: false,
|
|
184
185
|
hasCollapse: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SearchValue } from '../../types';
|
|
1
|
+
import { SearchValue, UserDrillParamsProp } from '../../types';
|
|
2
2
|
export declare namespace EventContentProps {
|
|
3
3
|
interface Props {
|
|
4
4
|
/**
|
|
@@ -17,6 +17,7 @@ export declare namespace EventContentProps {
|
|
|
17
17
|
* 是否查询中
|
|
18
18
|
*/
|
|
19
19
|
onSearching?: (flag: boolean) => void;
|
|
20
|
+
onUserDrill: (data: UserDrillParamsProp, searchData: SearchValue) => void;
|
|
20
21
|
/**
|
|
21
22
|
* 查询条件回调
|
|
22
23
|
*/
|
|
@@ -131,6 +131,7 @@ var ModuleInterval = function ModuleInterval(props) {
|
|
|
131
131
|
defaultValue: props.defaultValue ? props.defaultValue.data : undefined,
|
|
132
132
|
value: searchData,
|
|
133
133
|
show: showList,
|
|
134
|
+
onUserDrill: props.onUserDrill,
|
|
134
135
|
onChange: setSearchData,
|
|
135
136
|
initSearch: initSearch
|
|
136
137
|
})));
|