@zgfe/modules-event 1.0.7 → 1.0.29-zhongyuan-event.2
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/README.md +35 -35
- package/es/components/eventFilter/index.js +107 -53
- package/es/components/eventFilter/setCascade.d.ts +3 -0
- package/es/components/eventFilter/setCascade.js +286 -0
- package/es/components/eventFilter/styles/index.less +148 -36
- package/es/components/eventFilter/types.d.ts +1 -0
- package/es/components/renderContent/index.js +16 -27
- package/es/components/renderContent/styles/index.less +19 -19
- package/es/components/renderContent/types.d.ts +0 -1
- package/es/components/searchPanel/index.js +35 -17
- package/es/components/searchPanel/styles/index.less +22 -18
- package/es/components/searchPanel/types.d.ts +2 -2
- package/es/components/table/index.js +107 -36
- package/es/components/table/styles/index.css +236 -0
- package/es/components/table/styles/index.less +249 -193
- package/es/components/table/types.d.ts +0 -1
- package/es/components/topBar/index.d.ts +6 -1
- package/es/components/topBar/index.js +62 -45
- package/es/components/topBar/styles/index.less +58 -63
- package/es/components/topBar/types.d.ts +0 -1
- package/es/constants/apis.d.ts +3 -1
- package/es/constants/apis.js +4 -2
- package/es/constants/fields.d.ts +0 -14
- package/es/constants/fields.js +1 -45
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/modules/chart/demo/index.js +5 -5
- package/es/modules/chart/demo/panel.js +7 -2
- package/es/modules/chart/index.js +123 -48
- package/es/modules/chart/types.d.ts +3 -0
- package/es/modules/content/index.d.ts +1 -1
- package/es/modules/content/index.js +116 -75
- package/es/modules/content/styles/index.less +19 -7
- package/es/modules/content/utils.d.ts +3 -2
- package/es/modules/content/utils.js +63 -34
- package/es/modules/home/demo/create.js +8 -8
- package/es/modules/home/demo/edit.js +14 -15
- package/es/modules/home/demo/index.js +13 -10
- package/es/modules/home/demo/scene.js +8 -8
- package/es/modules/home/demo/styles/index.less +33 -33
- package/es/modules/home/index.js +59 -41
- package/es/modules/home/styles/index.less +49 -49
- package/es/modules/topPanel/index.js +51 -23
- package/es/modules/topPanel/styles/index.less +50 -49
- package/es/style/image/ring.svg +8 -8
- package/es/style/index.less +62 -62
- package/es/types.d.ts +8 -0
- package/es/utils/formData.d.ts +2 -1
- package/es/utils/formData.js +70 -21
- package/package.json +24 -20
|
@@ -1,36 +1,148 @@
|
|
|
1
|
-
.eventfilter-box {
|
|
2
|
-
.attr-box-show {
|
|
3
|
-
margin-top: 4px;
|
|
4
|
-
}
|
|
5
|
-
> div:nth-child(1) {
|
|
6
|
-
display: flex;
|
|
7
|
-
padding: 4px 0 4px 24px;
|
|
8
|
-
&:hover {
|
|
9
|
-
background: #e8efff;
|
|
10
|
-
}
|
|
11
|
-
.biz-event-select,
|
|
12
|
-
.biz-attr-select {
|
|
13
|
-
min-width: 208px;
|
|
14
|
-
margin-right: 16px;
|
|
15
|
-
}
|
|
16
|
-
.shaixuan
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
1
|
+
.eventfilter-box {
|
|
2
|
+
.attr-box-show {
|
|
3
|
+
margin-top: 4px;
|
|
4
|
+
}
|
|
5
|
+
> div:nth-child(1) {
|
|
6
|
+
display: flex;
|
|
7
|
+
padding: 4px 0 4px 24px;
|
|
8
|
+
&:hover {
|
|
9
|
+
background: #e8efff;
|
|
10
|
+
}
|
|
11
|
+
.biz-event-select,
|
|
12
|
+
.biz-attr-select {
|
|
13
|
+
min-width: 208px;
|
|
14
|
+
margin-right: 16px;
|
|
15
|
+
}
|
|
16
|
+
.shaixuan,
|
|
17
|
+
.guanli {
|
|
18
|
+
margin-top: 2px;
|
|
19
|
+
color: #9aa1a9;
|
|
20
|
+
font-size: 20px !important;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
.shaixuan:hover,
|
|
24
|
+
.guanli:hover {
|
|
25
|
+
color: #165dff;
|
|
26
|
+
}
|
|
27
|
+
.disable {
|
|
28
|
+
color: #ccd0d4 !important;
|
|
29
|
+
cursor: not-allowed !important;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
&-multiple {
|
|
33
|
+
.biz-event-select {
|
|
34
|
+
width: auto !important;
|
|
35
|
+
min-width: 208px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.set-cascade-modal-box {
|
|
41
|
+
.ant-modal-header {
|
|
42
|
+
padding-bottom: 0;
|
|
43
|
+
}
|
|
44
|
+
.ant-modal-body {
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
&-tips {
|
|
48
|
+
padding: 16px 24px;
|
|
49
|
+
color: #67727f;
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
font-size: 14px;
|
|
52
|
+
line-height: 22px;
|
|
53
|
+
}
|
|
54
|
+
&-set::-webkit-scrollbar {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
&-set {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: 16px;
|
|
61
|
+
height: 328px;
|
|
62
|
+
padding-right: 24px;
|
|
63
|
+
padding-bottom: 16px;
|
|
64
|
+
padding-left: 24px;
|
|
65
|
+
overflow-y: auto;
|
|
66
|
+
&-empty {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
height: 328px;
|
|
71
|
+
}
|
|
72
|
+
&-item {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: row;
|
|
75
|
+
gap: 16px;
|
|
76
|
+
align-self: stretch;
|
|
77
|
+
justify-content: space-between;
|
|
78
|
+
padding: 16px 16px 16px 24px;
|
|
79
|
+
color: var(--io-N8-, #354354);
|
|
80
|
+
font-weight: 400;
|
|
81
|
+
font-size: 14px;
|
|
82
|
+
font-family: 'PingFang SC';
|
|
83
|
+
font-style: normal;
|
|
84
|
+
line-height: 22px;
|
|
85
|
+
border: 1px solid var(--io-i1-, #e8efff);
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
&-info {
|
|
88
|
+
display: flex;
|
|
89
|
+
flex: 1;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: 16px;
|
|
92
|
+
&-item {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
align-items: center;
|
|
96
|
+
height: 32px;
|
|
97
|
+
.biz-event-select,
|
|
98
|
+
.biz-attr-select {
|
|
99
|
+
flex: 1;
|
|
100
|
+
}
|
|
101
|
+
.biz-attr-select-handle {
|
|
102
|
+
width: inherit;
|
|
103
|
+
}
|
|
104
|
+
&-shu {
|
|
105
|
+
width: 1px;
|
|
106
|
+
height: 32px;
|
|
107
|
+
background: #e8efff;
|
|
108
|
+
}
|
|
109
|
+
&-heng {
|
|
110
|
+
width: 12px;
|
|
111
|
+
height: 1px;
|
|
112
|
+
margin-right: 8px;
|
|
113
|
+
background: #e8efff;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.qingchu {
|
|
118
|
+
color: #9aa1a9;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
}
|
|
121
|
+
.qingchu:hover {
|
|
122
|
+
color: #fb5547;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
&-footer {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
height: 80px;
|
|
131
|
+
padding: 24px;
|
|
132
|
+
background: #fff;
|
|
133
|
+
border-top: 1px solid var(--io-n-05, #f2f3f4);
|
|
134
|
+
border-bottom-right-radius: 8px;
|
|
135
|
+
border-bottom-left-radius: 8px;
|
|
136
|
+
.addEvent {
|
|
137
|
+
padding: 0 16px;
|
|
138
|
+
div {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
.button:not(.disabled):not(.ant-btn-primary) {
|
|
144
|
+
color: #1454e5;
|
|
145
|
+
border: 1px solid #1454e5;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
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
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import { Empty } from 'antd';
|
|
8
|
-
import React, { useState, useContext, useEffect } from 'react';
|
|
1
|
+
import React, { useContext } from 'react';
|
|
9
2
|
import { BizLoading } from '@zgfe/business-lib';
|
|
10
3
|
import { EventContext } from '../../types';
|
|
11
4
|
import './styles/index.less';
|
|
@@ -16,19 +9,15 @@ var ContentPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
16
9
|
searchData = props.searchData;
|
|
17
10
|
var _useContext = useContext(EventContext),
|
|
18
11
|
loading = _useContext.loading,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
useEffect(function () {
|
|
25
|
-
setShowList(props.showList);
|
|
26
|
-
}, [eventData]);
|
|
12
|
+
refreshLoading = _useContext.refreshLoading,
|
|
13
|
+
onSelectEvent = _useContext.onSelectEvent,
|
|
14
|
+
showListHome = _useContext.showListHome,
|
|
15
|
+
setShowListHome = _useContext.setShowListHome,
|
|
16
|
+
completedSearchData = _useContext.completedSearchData;
|
|
27
17
|
var onChangeShow = function onChangeShow(names) {
|
|
28
|
-
|
|
29
|
-
if (props.onChangeShow) props.onChangeShow(names);
|
|
18
|
+
setShowListHome(names);
|
|
30
19
|
};
|
|
31
|
-
if (loading) {
|
|
20
|
+
if (loading || refreshLoading) {
|
|
32
21
|
return /*#__PURE__*/React.createElement(BizLoading, {
|
|
33
22
|
className: "".concat(classPrefix, "-loading")
|
|
34
23
|
});
|
|
@@ -37,21 +26,21 @@ var ContentPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
37
26
|
className: classPrefix
|
|
38
27
|
}, /*#__PURE__*/React.createElement("div", {
|
|
39
28
|
className: "".concat(classPrefix, "-chart-container")
|
|
40
|
-
},
|
|
29
|
+
}, /*#__PURE__*/React.createElement(EventChart, {
|
|
41
30
|
ref: ref,
|
|
42
31
|
dataSource: eventData,
|
|
43
32
|
params: searchData,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
description: "\u6682\u65E0\u6570\u636E"
|
|
48
|
-
})), eventData && eventData.series.length > 0 ? /*#__PURE__*/React.createElement(EventChart, {
|
|
33
|
+
completedSearchData: completedSearchData,
|
|
34
|
+
showList: showListHome
|
|
35
|
+
})), eventData && eventData.series.length > 0 ? (/*#__PURE__*/React.createElement(EventChart, {
|
|
49
36
|
type: "grid",
|
|
37
|
+
isHideDel: true,
|
|
50
38
|
dataSource: eventData,
|
|
51
39
|
params: searchData,
|
|
52
|
-
|
|
40
|
+
completedSearchData: completedSearchData,
|
|
41
|
+
showList: showListHome,
|
|
53
42
|
onChangeShow: onChangeShow,
|
|
54
43
|
onSelectEvent: onSelectEvent
|
|
55
|
-
}) : null);
|
|
44
|
+
})) : null);
|
|
56
45
|
});
|
|
57
46
|
export default ContentPanel;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/variable.less';
|
|
2
|
-
|
|
3
|
-
.render-content {
|
|
4
|
-
&-chart-container {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: 392px;
|
|
9
|
-
padding: @padding-lg;
|
|
10
|
-
border: 1px solid @border-color-base;
|
|
11
|
-
border-radius: @border-radius-normal;
|
|
12
|
-
.echarts-for-react {
|
|
13
|
-
width: 100%;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
&-loading {
|
|
17
|
-
min-height: 300px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/variable.less';
|
|
2
|
+
|
|
3
|
+
.render-content {
|
|
4
|
+
&-chart-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
height: 392px;
|
|
9
|
+
padding: @padding-lg;
|
|
10
|
+
border: 1px solid @border-color-base;
|
|
11
|
+
border-radius: @border-radius-normal;
|
|
12
|
+
.echarts-for-react {
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
&-loading {
|
|
17
|
+
min-height: 300px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -2,7 +2,6 @@ import { SearchValue, ResponseDataProps } from '../../types';
|
|
|
2
2
|
export interface RenderContentProps {
|
|
3
3
|
eventData?: ResponseDataProps;
|
|
4
4
|
searchData?: SearchValue;
|
|
5
|
-
showList: string[];
|
|
6
5
|
isCity?: boolean;
|
|
7
6
|
afterEditTarget?: (type: string, value?: any) => void;
|
|
8
7
|
onChangeShow?: (data: string[]) => void;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
13
|
-
import {
|
|
9
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
|
+
import { BizSelect, BizTargetDimension, useChanged, IconFont, BizDatePickerV2, BizGlobalDataContext } from '@zgfe/business-lib';
|
|
14
|
+
import { Button } from 'antd';
|
|
15
|
+
import { DatePickerTypes } from '@zgfe/business-lib/es/datePickerV2/types';
|
|
14
16
|
import React, { useContext, useEffect, useState } from 'react';
|
|
15
17
|
import { chartTypeOptions, getInitDate } from '../../constants';
|
|
16
18
|
import { EventContext } from '../../types';
|
|
@@ -20,7 +22,11 @@ var classPrefix = 'search-panel';
|
|
|
20
22
|
var SearchPanel = function SearchPanel(props) {
|
|
21
23
|
var _useContext = useContext(EventContext),
|
|
22
24
|
includeToday = _useContext.includeToday,
|
|
23
|
-
searchData = _useContext.searchData
|
|
25
|
+
searchData = _useContext.searchData,
|
|
26
|
+
currentApp = _useContext.currentApp,
|
|
27
|
+
refreshLoading = _useContext.refreshLoading;
|
|
28
|
+
var _useContext2 = useContext(BizGlobalDataContext),
|
|
29
|
+
envs = _useContext2.envs;
|
|
24
30
|
var analysisSubjectType = props.analysisSubjectType,
|
|
25
31
|
dimension = props.dimension,
|
|
26
32
|
setDimension = props.setDimension;
|
|
@@ -32,7 +38,7 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
32
38
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
33
39
|
chart = _useState4[0],
|
|
34
40
|
setChart = _useState4[1];
|
|
35
|
-
var currentNormalOptions = analysisSubjectType === 'user' ? normalOptions : normalEventOptions;
|
|
41
|
+
var currentNormalOptions = analysisSubjectType === 'user' ? normalOptions(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) : normalEventOptions;
|
|
36
42
|
useEffect(function () {
|
|
37
43
|
if (searchData.chartType && searchData.chartType !== chart.value) {
|
|
38
44
|
if (searchData.chartType.indexOf(',') !== -1) {
|
|
@@ -89,10 +95,13 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
89
95
|
style: {
|
|
90
96
|
display: 'flex'
|
|
91
97
|
}
|
|
92
|
-
}, /*#__PURE__*/React.createElement(
|
|
98
|
+
}, /*#__PURE__*/React.createElement(BizDatePickerV2, {
|
|
93
99
|
defaultValue: time,
|
|
94
100
|
onChange: onChangeTime,
|
|
95
|
-
|
|
101
|
+
dateTypeList: [DatePickerTypes.Unit.minute, DatePickerTypes.Unit.hour, DatePickerTypes.Unit.day, DatePickerTypes.Unit.week, DatePickerTypes.Unit.month],
|
|
102
|
+
selectRangeUnit: "months",
|
|
103
|
+
selectRange: envs && envs.timeRangeOpen ? envs.timeRangeOpen : 12,
|
|
104
|
+
timeRangeOpen: envs && envs.timeRangeOpen ? envs.timeRangeOpen : 12
|
|
96
105
|
}), /*#__PURE__*/React.createElement(BizTargetDimension, {
|
|
97
106
|
normalOptions: currentNormalOptions,
|
|
98
107
|
value: dimension,
|
|
@@ -101,7 +110,16 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
101
110
|
onChange: onDimensionChange
|
|
102
111
|
})), /*#__PURE__*/React.createElement("div", {
|
|
103
112
|
className: "".concat(classPrefix, "-search-right")
|
|
104
|
-
},
|
|
113
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
114
|
+
className: "".concat(classPrefix, "-search-right-refresh"),
|
|
115
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
116
|
+
type: "zhongxinjiazai"
|
|
117
|
+
}),
|
|
118
|
+
loading: refreshLoading,
|
|
119
|
+
onClick: function onClick() {
|
|
120
|
+
return props.refreshHandle();
|
|
121
|
+
}
|
|
122
|
+
}, "\u5237\u65B0"), /*#__PURE__*/React.createElement(BizSelect, {
|
|
105
123
|
className: "".concat(classPrefix, "-select"),
|
|
106
124
|
options: chartTypeOptions,
|
|
107
125
|
defaultValue: chart,
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/variable.less';
|
|
2
|
-
|
|
3
|
-
.search-panel {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
height: 32px;
|
|
8
|
-
margin-bottom: 24px;
|
|
9
|
-
|
|
10
|
-
&-search-right {
|
|
11
|
-
display: flex;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/variable.less';
|
|
2
|
+
|
|
3
|
+
.search-panel {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
height: 32px;
|
|
8
|
+
margin-bottom: 24px;
|
|
9
|
+
|
|
10
|
+
&-search-right {
|
|
11
|
+
display: flex;
|
|
12
|
+
gap: 16px;
|
|
13
|
+
&-refresh {
|
|
14
|
+
display: flex !important;
|
|
15
|
+
gap: 4px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-select {
|
|
20
|
+
width: 112px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DatePickerTypes } from '@zgfe/business-lib/es/datePicker/types';
|
|
2
2
|
import { EventChartTypes } from '../../types';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
3
|
import { TargetConditionTypes } from '@zgfe/business-lib';
|
|
5
4
|
export interface AnalysisSubject {
|
|
6
5
|
subjectId?: number;
|
|
@@ -11,13 +10,13 @@ export interface AnalysisSubject {
|
|
|
11
10
|
subjectName?: string;
|
|
12
11
|
}
|
|
13
12
|
export interface SearchPanelProps {
|
|
13
|
+
refreshHandle: Function;
|
|
14
14
|
analysisIndex?: string;
|
|
15
15
|
analysisAttr?: string;
|
|
16
16
|
enableSelectChart?: boolean;
|
|
17
17
|
time?: DatePickerTypes.Value;
|
|
18
18
|
eventId?: number;
|
|
19
19
|
chartType?: EventChartTypes;
|
|
20
|
-
optionNode?: ReactNode;
|
|
21
20
|
onChange?: (data: SearchPanelProps) => void;
|
|
22
21
|
setIsCity?: Function;
|
|
23
22
|
setEnableSelectChart?: Function;
|
|
@@ -25,4 +24,5 @@ export interface SearchPanelProps {
|
|
|
25
24
|
analysisSubject?: AnalysisSubject;
|
|
26
25
|
dimension?: TargetConditionTypes.DimensionValue;
|
|
27
26
|
setDimension?: Function;
|
|
27
|
+
optionNode?: any;
|
|
28
28
|
}
|