@zgfe/modules-interval 1.0.9 → 1.0.10-beiming.1
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 +33 -33
- package/dist/esm/components/common/styles/index.less +40 -40
- package/dist/esm/components/eventFilter/index.js +17 -21
- package/dist/esm/components/eventFilter/styles/index.less +39 -39
- package/dist/esm/components/eventFilter/types.d.ts +4 -3
- package/dist/esm/components/renderContent/styles/index.less +36 -33
- package/dist/esm/components/searchPanel/index.js +3 -4
- package/dist/esm/components/searchPanel/styles/index.less +64 -64
- package/dist/esm/components/table/index.js +5 -4
- package/dist/esm/components/table/styles/index.less +138 -138
- package/dist/esm/components/topBar/index.js +4 -4
- package/dist/esm/components/topBar/styles/index.less +50 -50
- package/dist/esm/components/topBar/types.d.ts +3 -2
- package/dist/esm/constants/apis.d.ts +1 -5
- package/dist/esm/constants/apis.js +15 -4
- package/dist/esm/constants/fields.js +4 -4
- package/dist/esm/modules/chart/index.js +4 -3
- package/dist/esm/modules/chart/index.less +58 -58
- package/dist/esm/modules/chart/intervalChart.js +2 -2
- package/dist/esm/modules/chart/types.d.ts +1 -0
- package/dist/esm/modules/content/index.js +28 -44
- package/dist/esm/modules/content/styles/index.less +7 -7
- package/dist/esm/modules/content/types.d.ts +4 -3
- package/dist/esm/modules/content/utils.d.ts +2 -0
- package/dist/esm/modules/content/utils.js +16 -14
- package/dist/esm/modules/home/demo/edit.js +1 -1
- package/dist/esm/modules/home/demo/index.js +7 -15
- package/dist/esm/modules/home/demo/scene.js +1 -1
- package/dist/esm/modules/home/demo/styles/index.less +33 -33
- package/dist/esm/modules/home/index.d.ts +2 -2
- package/dist/esm/modules/home/index.js +59 -46
- package/dist/esm/modules/home/styles/index.less +66 -60
- package/dist/esm/modules/home/types.d.ts +7 -4
- package/dist/esm/modules/home/types.js +2 -2
- package/dist/esm/modules/topPanel/index.js +246 -127
- package/dist/esm/modules/topPanel/styles/index.less +213 -186
- package/dist/esm/modules/topPanel/types.d.ts +6 -9
- package/dist/esm/modules/topPanel/types.js +5 -1
- package/dist/esm/style/image/empty.png +0 -0
- package/dist/esm/style/image/ring.svg +9 -9
- package/dist/esm/style/index.less +67 -53
- package/dist/esm/types.d.ts +25 -28
- package/dist/esm/types.js +7 -7
- package/dist/esm/utils/ajaxConfig.js +5 -5
- package/dist/esm/utils/formData.d.ts +7 -2
- package/dist/esm/utils/formData.js +91 -39
- package/dist/esm/utils/util.js +28 -28
- package/package.json +9 -4
- package/dist/esm/assets/business/demo.css +0 -539
- package/dist/esm/assets/business/demo_index.html +0 -3316
- package/dist/esm/assets/business/iconfont.css +0 -559
- package/dist/esm/assets/business/iconfont.js +0 -43
- package/dist/esm/assets/business/iconfont.json +0 -961
- package/dist/esm/assets/business/iconfont.ttf +0 -0
- package/dist/esm/assets/business/iconfont.woff +0 -0
- package/dist/esm/assets/business/iconfont.woff2 +0 -0
- package/dist/esm/assets/icons/demo.css +0 -539
- package/dist/esm/assets/icons/demo_index.html +0 -9618
- package/dist/esm/assets/icons/iconfont.css +0 -1655
- package/dist/esm/assets/icons/iconfont.js +0 -43
- package/dist/esm/assets/icons/iconfont.json +0 -2879
- package/dist/esm/assets/icons/iconfont.ttf +0 -0
- package/dist/esm/assets/icons/iconfont.woff +0 -0
- package/dist/esm/assets/icons/iconfont.woff2 +0 -0
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
.mi-interval-table {
|
|
2
|
-
width: 100%;
|
|
3
|
-
margin-top: 16px;
|
|
4
|
-
|
|
5
|
-
.ant-table {
|
|
6
|
-
border-radius: 8px;
|
|
7
|
-
}
|
|
8
|
-
.ant-table-cell-with-append .ant-table-row-expand-icon {
|
|
9
|
-
left: 16px !important;
|
|
10
|
-
color: #9aa1a9;
|
|
11
|
-
border: 1px solid #9aa1a9;
|
|
12
|
-
}
|
|
13
|
-
.ant-table-row-expand-icon::before {
|
|
14
|
-
height: 1.4px !important;
|
|
15
|
-
}
|
|
16
|
-
.ant-table-row-expand-icon::after {
|
|
17
|
-
width: 1.4px !important;
|
|
18
|
-
}
|
|
19
|
-
.ant-table-cell {
|
|
20
|
-
height: 50px;
|
|
21
|
-
padding: 0 16px !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ant-pagination {
|
|
25
|
-
margin-top: 24px !important;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.ant-table-tbody > tr > td {
|
|
29
|
-
border-bottom: 0.1px solid #e6e7ea;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
33
|
-
background-color: #f2f3f4 !important;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&-table-header {
|
|
37
|
-
display: flex;
|
|
38
|
-
justify-content: space-between;
|
|
39
|
-
height: 50px;
|
|
40
|
-
padding: 0 16px;
|
|
41
|
-
line-height: 50px;
|
|
42
|
-
background: #fafafb;
|
|
43
|
-
border: 1px solid var(--gray-6, #ecedf0);
|
|
44
|
-
border-bottom: none;
|
|
45
|
-
border-radius: 8px 8px 0 0;
|
|
46
|
-
|
|
47
|
-
> :nth-child(2) {
|
|
48
|
-
display: flex;
|
|
49
|
-
margin-top: 9px;
|
|
50
|
-
div {
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
height: 32px;
|
|
54
|
-
padding: 0 16px;
|
|
55
|
-
line-height: 32px;
|
|
56
|
-
background: #fff;
|
|
57
|
-
border: 1px solid #f2f3f4;
|
|
58
|
-
border-radius: 4px;
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
.xiazai1 {
|
|
61
|
-
margin-right: 4px;
|
|
62
|
-
font-size: 16px !important;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
div:hover {
|
|
66
|
-
color: #165dff;
|
|
67
|
-
border: 1px solid #165dff;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.ant-table {
|
|
73
|
-
border-radius: 0 0 8px 8px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.ant-table-cell-with-append {
|
|
77
|
-
padding-left: 20px;
|
|
78
|
-
|
|
79
|
-
.ant-table-row-expand-icon {
|
|
80
|
-
position: absolute;
|
|
81
|
-
left: 0;
|
|
82
|
-
margin-top: 0;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.event-table-sql-modal {
|
|
88
|
-
.ant-modal-header {
|
|
89
|
-
position: relative;
|
|
90
|
-
z-index: 1;
|
|
91
|
-
height: 82px;
|
|
92
|
-
background: transparent;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.ant-modal-body {
|
|
96
|
-
padding: 0 24px 18px 24px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.ant-modal-close-x {
|
|
100
|
-
margin-top: 13px;
|
|
101
|
-
margin-right: 8px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
img {
|
|
105
|
-
width: 100%;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.qingchu {
|
|
109
|
-
font-weight: 500;
|
|
110
|
-
font-size: 22px !important;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.modal-bg {
|
|
114
|
-
position: absolute;
|
|
115
|
-
top: 0;
|
|
116
|
-
left: 0;
|
|
117
|
-
width: 100%;
|
|
118
|
-
height: auto;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.hljs {
|
|
122
|
-
padding: 16px;
|
|
123
|
-
background: #fafafb;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.copy-box {
|
|
127
|
-
position: absolute;
|
|
128
|
-
top: 98px;
|
|
129
|
-
right: 40px;
|
|
130
|
-
padding: 0 8px;
|
|
131
|
-
background: #f2f3f4;
|
|
132
|
-
border-radius: 4px;
|
|
133
|
-
|
|
134
|
-
.fuzhi1 {
|
|
135
|
-
margin-right: 8px;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
1
|
+
.mi-interval-table {
|
|
2
|
+
width: 100%;
|
|
3
|
+
margin-top: 16px;
|
|
4
|
+
|
|
5
|
+
.ant-table {
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
}
|
|
8
|
+
.ant-table-cell-with-append .ant-table-row-expand-icon {
|
|
9
|
+
left: 16px !important;
|
|
10
|
+
color: #9aa1a9;
|
|
11
|
+
border: 1px solid #9aa1a9;
|
|
12
|
+
}
|
|
13
|
+
.ant-table-row-expand-icon::before {
|
|
14
|
+
height: 1.4px !important;
|
|
15
|
+
}
|
|
16
|
+
.ant-table-row-expand-icon::after {
|
|
17
|
+
width: 1.4px !important;
|
|
18
|
+
}
|
|
19
|
+
.ant-table-cell {
|
|
20
|
+
height: 50px;
|
|
21
|
+
padding: 0 16px !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ant-pagination {
|
|
25
|
+
margin-top: 24px !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ant-table-tbody > tr > td {
|
|
29
|
+
border-bottom: 0.1px solid #e6e7ea;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
33
|
+
background-color: #f2f3f4 !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-table-header {
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
height: 50px;
|
|
40
|
+
padding: 0 16px;
|
|
41
|
+
line-height: 50px;
|
|
42
|
+
background: #fafafb;
|
|
43
|
+
border: 1px solid var(--gray-6, #ecedf0);
|
|
44
|
+
border-bottom: none;
|
|
45
|
+
border-radius: 8px 8px 0 0;
|
|
46
|
+
|
|
47
|
+
> :nth-child(2) {
|
|
48
|
+
display: flex;
|
|
49
|
+
margin-top: 9px;
|
|
50
|
+
div {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
height: 32px;
|
|
54
|
+
padding: 0 16px;
|
|
55
|
+
line-height: 32px;
|
|
56
|
+
background: #fff;
|
|
57
|
+
border: 1px solid #f2f3f4;
|
|
58
|
+
border-radius: 4px;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
.xiazai1 {
|
|
61
|
+
margin-right: 4px;
|
|
62
|
+
font-size: 16px !important;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
div:hover {
|
|
66
|
+
color: #165dff;
|
|
67
|
+
border: 1px solid #165dff;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ant-table {
|
|
73
|
+
border-radius: 0 0 8px 8px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ant-table-cell-with-append {
|
|
77
|
+
padding-left: 20px;
|
|
78
|
+
|
|
79
|
+
.ant-table-row-expand-icon {
|
|
80
|
+
position: absolute;
|
|
81
|
+
left: 0;
|
|
82
|
+
margin-top: 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.event-table-sql-modal {
|
|
88
|
+
.ant-modal-header {
|
|
89
|
+
position: relative;
|
|
90
|
+
z-index: 1;
|
|
91
|
+
height: 82px;
|
|
92
|
+
background: transparent;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.ant-modal-body {
|
|
96
|
+
padding: 0 24px 18px 24px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ant-modal-close-x {
|
|
100
|
+
margin-top: 13px;
|
|
101
|
+
margin-right: 8px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
img {
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.qingchu {
|
|
109
|
+
font-weight: 500;
|
|
110
|
+
font-size: 22px !important;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.modal-bg {
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: 0;
|
|
116
|
+
left: 0;
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: auto;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.hljs {
|
|
122
|
+
padding: 16px;
|
|
123
|
+
background: #fafafb;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.copy-box {
|
|
127
|
+
position: absolute;
|
|
128
|
+
top: 98px;
|
|
129
|
+
right: 40px;
|
|
130
|
+
padding: 0 8px;
|
|
131
|
+
background: #f2f3f4;
|
|
132
|
+
border-radius: 4px;
|
|
133
|
+
|
|
134
|
+
.fuzhi1 {
|
|
135
|
+
margin-right: 8px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -14,12 +14,12 @@ import { Button } from 'antd';
|
|
|
14
14
|
import React, { useContext, useEffect, useState } from 'react';
|
|
15
15
|
import { BizAddToPanel, BizAddToScene, BizGlobalDataContext } from '@zgfe/business-lib';
|
|
16
16
|
import "./styles/index.less";
|
|
17
|
-
import {
|
|
17
|
+
import { IntervalContext } from "../../types";
|
|
18
18
|
import { chartTypes, platformOption } from "../../constants/fields";
|
|
19
19
|
import { appVersionType } from '@zgfe/business-lib/es/context';
|
|
20
20
|
var classPrefix = 'modules-interval-topbar';
|
|
21
21
|
var TopBar = function TopBar(props) {
|
|
22
|
-
var _useContext = useContext(
|
|
22
|
+
var _useContext = useContext(IntervalContext),
|
|
23
23
|
panelId = _useContext.panelId,
|
|
24
24
|
afterEditTarget = _useContext.afterEditTarget;
|
|
25
25
|
var _useState = useState(false),
|
|
@@ -105,7 +105,7 @@ var TopBar = function TopBar(props) {
|
|
|
105
105
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
106
106
|
module: 'interval'
|
|
107
107
|
}, searchData), {}, {
|
|
108
|
-
chartType: '
|
|
108
|
+
chartType: 'boxplot'
|
|
109
109
|
}),
|
|
110
110
|
onOk: function onOk(data) {
|
|
111
111
|
return _onOk('scene', data);
|
|
@@ -118,7 +118,7 @@ var TopBar = function TopBar(props) {
|
|
|
118
118
|
type: "primary",
|
|
119
119
|
disabled: showLoading || !authority[100143],
|
|
120
120
|
onClick: function onClick() {
|
|
121
|
-
props.
|
|
121
|
+
props.onJumpWarning({
|
|
122
122
|
appId: Number(currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId),
|
|
123
123
|
module: 'interval',
|
|
124
124
|
platform: 0,
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.modules-interval-topbar {
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: flex-end;
|
|
6
|
-
margin: 8px 0;
|
|
7
|
-
padding-right: 24px;
|
|
8
|
-
&-panel {
|
|
9
|
-
margin-right: 16px;
|
|
10
|
-
}
|
|
11
|
-
&-scene {
|
|
12
|
-
margin-right: 16px;
|
|
13
|
-
}
|
|
14
|
-
&-earlywarning {
|
|
15
|
-
margin-right: 16px;
|
|
16
|
-
}
|
|
17
|
-
&-platform {
|
|
18
|
-
display: flex;
|
|
19
|
-
height: 32px;
|
|
20
|
-
line-height: 32px;
|
|
21
|
-
> div {
|
|
22
|
-
position: relative;
|
|
23
|
-
padding: 0 16px;
|
|
24
|
-
font-size: 14px;
|
|
25
|
-
background: #fff;
|
|
26
|
-
border: 1px solid #ecedf0;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
}
|
|
29
|
-
> div:hover,
|
|
30
|
-
.active {
|
|
31
|
-
z-index: 1;
|
|
32
|
-
color: #165dff;
|
|
33
|
-
background: #e8efff;
|
|
34
|
-
border: 1px solid #165dff;
|
|
35
|
-
}
|
|
36
|
-
> :nth-child(1) {
|
|
37
|
-
border-radius: 4px 0 0 4px;
|
|
38
|
-
}
|
|
39
|
-
> :nth-child(2) {
|
|
40
|
-
margin-left: -1px;
|
|
41
|
-
}
|
|
42
|
-
> :nth-child(3) {
|
|
43
|
-
margin-left: -1px;
|
|
44
|
-
}
|
|
45
|
-
> :nth-child(4) {
|
|
46
|
-
margin-left: -1px;
|
|
47
|
-
border-radius: 0 4px 4px 0;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.modules-interval-topbar {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: flex-end;
|
|
6
|
+
margin: 8px 0;
|
|
7
|
+
padding-right: 24px;
|
|
8
|
+
&-panel {
|
|
9
|
+
margin-right: 16px;
|
|
10
|
+
}
|
|
11
|
+
&-scene {
|
|
12
|
+
margin-right: 16px;
|
|
13
|
+
}
|
|
14
|
+
&-earlywarning {
|
|
15
|
+
margin-right: 16px;
|
|
16
|
+
}
|
|
17
|
+
&-platform {
|
|
18
|
+
display: flex;
|
|
19
|
+
height: 32px;
|
|
20
|
+
line-height: 32px;
|
|
21
|
+
> div {
|
|
22
|
+
position: relative;
|
|
23
|
+
padding: 0 16px;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
background: #fff;
|
|
26
|
+
border: 1px solid #ecedf0;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
> div:hover,
|
|
30
|
+
.active {
|
|
31
|
+
z-index: 1;
|
|
32
|
+
color: #165dff;
|
|
33
|
+
background: #e8efff;
|
|
34
|
+
border: 1px solid #165dff;
|
|
35
|
+
}
|
|
36
|
+
> :nth-child(1) {
|
|
37
|
+
border-radius: 4px 0 0 4px;
|
|
38
|
+
}
|
|
39
|
+
> :nth-child(2) {
|
|
40
|
+
margin-left: -1px;
|
|
41
|
+
}
|
|
42
|
+
> :nth-child(3) {
|
|
43
|
+
margin-left: -1px;
|
|
44
|
+
}
|
|
45
|
+
> :nth-child(4) {
|
|
46
|
+
margin-left: -1px;
|
|
47
|
+
border-radius: 0 4px 4px 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IntervalProps } from '../../modules/home/types';
|
|
2
|
+
import { ResponseDataProps, SearchValue } from '../../types';
|
|
2
3
|
export interface TopBarProps {
|
|
3
4
|
/**
|
|
4
5
|
* @description 标题
|
|
@@ -6,6 +7,6 @@ export interface TopBarProps {
|
|
|
6
7
|
searchData?: SearchValue;
|
|
7
8
|
loading?: boolean;
|
|
8
9
|
eventData?: ResponseDataProps;
|
|
9
|
-
|
|
10
|
+
onJumpWarning: IntervalProps.Props['onJumpWarning'];
|
|
10
11
|
platformChange: (data: number) => void;
|
|
11
12
|
}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
var Apis = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
dataList: '/interval/intervalData',
|
|
3
|
+
getEventDataSql: '/dataSql/getEventDataSql',
|
|
4
|
+
eventDownloadReport: '/interval/downLoadintervalData',
|
|
5
|
+
/**
|
|
6
|
+
* 用户下钻
|
|
7
|
+
*/
|
|
8
|
+
userDrill: '/interval/userDrill',
|
|
9
|
+
/**
|
|
10
|
+
* 主体下钻
|
|
11
|
+
*/
|
|
12
|
+
subjectDrill: '/interval/eventDrill',
|
|
13
|
+
querySubjectDisplay: '/analysisSubject/querySubDisplay'
|
|
6
14
|
};
|
|
15
|
+
for (var key in Apis) {
|
|
16
|
+
Apis[key] = "/zg/web/v2".concat(Apis[key]);
|
|
17
|
+
}
|
|
7
18
|
export default Apis;
|
|
@@ -126,8 +126,8 @@ export var addSceneFields = [{
|
|
|
126
126
|
}]
|
|
127
127
|
}];
|
|
128
128
|
|
|
129
|
-
/**
|
|
130
|
-
* 维度对象
|
|
129
|
+
/**
|
|
130
|
+
* 维度对象
|
|
131
131
|
*/
|
|
132
132
|
export var indexObject = {
|
|
133
133
|
number: '人数',
|
|
@@ -139,8 +139,8 @@ export var indexObject = {
|
|
|
139
139
|
median: '中位数'
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
/**
|
|
143
|
-
* 内置指标
|
|
142
|
+
/**
|
|
143
|
+
* 内置指标
|
|
144
144
|
*/
|
|
145
145
|
export var BuiltinIndicators = {
|
|
146
146
|
id: -2,
|
|
@@ -97,12 +97,13 @@ var IntervalEventChart = function IntervalEventChart(props) {
|
|
|
97
97
|
dataSource: dataSource,
|
|
98
98
|
showList: showList,
|
|
99
99
|
dataSourceList: dataSourceList,
|
|
100
|
-
params: params
|
|
101
|
-
|
|
100
|
+
params: params,
|
|
101
|
+
onlyChart: props.onlyChart
|
|
102
|
+
}), !props.onlyChart && /*#__PURE__*/React.createElement(EventTable, {
|
|
102
103
|
dataSource: dataSource,
|
|
103
104
|
searchData: params,
|
|
104
105
|
showList: [],
|
|
105
106
|
changeShow: onChangeShow
|
|
106
|
-
})
|
|
107
|
+
}));
|
|
107
108
|
};
|
|
108
109
|
export default IntervalEventChart;
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
.custom-tooltip-chart {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
flex-shrink: 0;
|
|
5
|
-
gap: 4px;
|
|
6
|
-
align-items: flex-start;
|
|
7
|
-
width: 146px;
|
|
8
|
-
height: 100%;
|
|
9
|
-
padding: 8px;
|
|
10
|
-
color: var(--io-n, #021429);
|
|
11
|
-
font-weight: 500;
|
|
12
|
-
font-size: 12px;
|
|
13
|
-
font-style: normal;
|
|
14
|
-
// background: rgba(250, 251, 253, 0.8);
|
|
15
|
-
border-radius: 10px;
|
|
16
|
-
box-shadow: 0px 4px 10px 0px #0000001a;
|
|
17
|
-
|
|
18
|
-
.custom-tooltip-name {
|
|
19
|
-
color: var(--io-n, #021429);
|
|
20
|
-
font-weight: 500;
|
|
21
|
-
font-size: 12px;
|
|
22
|
-
font-family: PingFang SC;
|
|
23
|
-
font-style: normal;
|
|
24
|
-
line-height: normal;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.custom-tooltip-div {
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
gap: 6px;
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
padding: 0px 8px;
|
|
34
|
-
background: #fff;
|
|
35
|
-
border-radius: 4px;
|
|
36
|
-
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04);
|
|
37
|
-
|
|
38
|
-
.tooltip-span {
|
|
39
|
-
display: block;
|
|
40
|
-
color: var(--3, #5f6085);
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
font-size: 12px;
|
|
43
|
-
font-family: PingFang SC;
|
|
44
|
-
font-style: normal;
|
|
45
|
-
line-height: normal;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
> div {
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
justify-content: space-between;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.tooltip-marker {
|
|
55
|
-
justify-content: flex-start;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
.custom-tooltip-chart {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
gap: 4px;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
width: 146px;
|
|
8
|
+
height: 100%;
|
|
9
|
+
padding: 8px;
|
|
10
|
+
color: var(--io-n, #021429);
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
// background: rgba(250, 251, 253, 0.8);
|
|
15
|
+
border-radius: 10px;
|
|
16
|
+
box-shadow: 0px 4px 10px 0px #0000001a;
|
|
17
|
+
|
|
18
|
+
.custom-tooltip-name {
|
|
19
|
+
color: var(--io-n, #021429);
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
font-size: 12px;
|
|
22
|
+
font-family: PingFang SC;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
line-height: normal;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.custom-tooltip-div {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: 6px;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
padding: 0px 8px;
|
|
34
|
+
background: #fff;
|
|
35
|
+
border-radius: 4px;
|
|
36
|
+
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04);
|
|
37
|
+
|
|
38
|
+
.tooltip-span {
|
|
39
|
+
display: block;
|
|
40
|
+
color: var(--3, #5f6085);
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
font-family: PingFang SC;
|
|
44
|
+
font-style: normal;
|
|
45
|
+
line-height: normal;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
> div {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.tooltip-marker {
|
|
55
|
+
justify-content: flex-start;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -80,14 +80,14 @@ var IntervalChart = function IntervalChart(props) {
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
|
|
83
|
-
dataZoom: [{
|
|
83
|
+
dataZoom: props.onlyChart ? [] : [{
|
|
84
84
|
type: 'inside',
|
|
85
85
|
start: 0,
|
|
86
86
|
end: 20,
|
|
87
87
|
right: 3,
|
|
88
88
|
height: 20 // 设置内置的dataZoom的高度
|
|
89
89
|
}, {
|
|
90
|
-
show:
|
|
90
|
+
show: props.onlyChart ? false : true,
|
|
91
91
|
type: 'slider',
|
|
92
92
|
bottom: '38px',
|
|
93
93
|
xAxisIndex: [0],
|