@zgfe/modules-interval 1.0.23-zhongyuan.1 → 1.0.23-zhongyuan.10
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/eventFilter/index.js +6 -5
- package/dist/esm/components/renderContent/styles/index.css +32 -0
- package/dist/esm/components/renderContent/styles/index.less +37 -36
- package/dist/esm/components/searchPanel/index.js +6 -1
- package/dist/esm/components/table/index.js +3 -2
- package/dist/esm/constants/code.d.ts +13 -0
- package/dist/esm/constants/code.js +13 -0
- package/dist/esm/modules/chart/customTooltip.js +5 -3
- package/dist/esm/modules/chart/customTooltip1.d.ts +7 -0
- package/dist/esm/modules/chart/customTooltip1.js +46 -0
- package/dist/esm/modules/chart/index.css +52 -0
- package/dist/esm/modules/chart/index.js +19 -8
- package/dist/esm/modules/chart/index.less +58 -58
- package/dist/esm/modules/chart/intervalChart copy.d.ts +4 -0
- package/dist/esm/modules/chart/intervalChart copy.js +299 -0
- package/dist/esm/modules/chart/intervalChart.js +321 -35
- package/dist/esm/modules/chart/types.d.ts +5 -0
- package/dist/esm/modules/content/index.js +50 -20
- package/dist/esm/modules/content/utils.d.ts +0 -1
- package/dist/esm/modules/content/utils.js +3 -4
- package/dist/esm/modules/home/demo/create.js +5 -3
- package/dist/esm/modules/home/demo/edit.js +132 -34
- package/dist/esm/modules/home/demo/index.js +1 -1
- package/dist/esm/modules/home/demo/scene.js +1 -1
- package/dist/esm/modules/home/index.js +8 -1
- package/dist/esm/modules/home/types.d.ts +0 -1
- package/dist/esm/modules/topPanel/index.js +39 -29
- package/dist/esm/modules/topPanel/styles/index.less +219 -219
- package/dist/esm/modules/topPanel/types.d.ts +1 -0
- package/dist/esm/utils/formData.js +31 -28
- package/package.json +3 -3
|
@@ -6,48 +6,146 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
9
|
-
import { ModuleInterval } from
|
|
9
|
+
import { ModuleInterval } from '@zgfe/modules-interval';
|
|
10
10
|
import { requestConfig } from "../../../utils/ajaxConfig";
|
|
11
11
|
import { Button } from 'antd';
|
|
12
12
|
var defaultValue = {
|
|
13
|
-
|
|
14
|
-
name: '测试6666',
|
|
15
|
-
type: 0,
|
|
13
|
+
appId: 52,
|
|
16
14
|
enlarged: 0,
|
|
17
|
-
|
|
15
|
+
hasPermission: true,
|
|
16
|
+
id: 488,
|
|
17
|
+
isPerfect: 1,
|
|
18
|
+
name: '间隔',
|
|
19
|
+
reqParam: {
|
|
20
|
+
data: {
|
|
21
|
+
appId: 52,
|
|
22
|
+
module: 'interval',
|
|
23
|
+
userGroup: [0],
|
|
24
|
+
start: {
|
|
25
|
+
id: 590,
|
|
26
|
+
name: 'pv',
|
|
27
|
+
deleted: 0
|
|
28
|
+
},
|
|
29
|
+
associatedPreAttr: {
|
|
30
|
+
realTime: true,
|
|
31
|
+
eventId: 590,
|
|
32
|
+
propCategory: 'eventProp',
|
|
33
|
+
alias: '',
|
|
34
|
+
id: 31415926,
|
|
35
|
+
label: '业务',
|
|
36
|
+
dimensionSub: 'event_attr',
|
|
37
|
+
type: 1,
|
|
38
|
+
key: 'eventProp-31415926',
|
|
39
|
+
isHidden: 0
|
|
40
|
+
},
|
|
41
|
+
associatedNextAttr: {
|
|
42
|
+
realTime: true,
|
|
43
|
+
eventId: 590,
|
|
44
|
+
propCategory: 'eventProp',
|
|
45
|
+
alias: '',
|
|
46
|
+
id: 3045,
|
|
47
|
+
label: 'page_title',
|
|
48
|
+
dimensionSub: 'event_attr',
|
|
49
|
+
type: 1,
|
|
50
|
+
key: 'eventProp-3045',
|
|
51
|
+
isHidden: 0
|
|
52
|
+
},
|
|
53
|
+
end: {
|
|
54
|
+
id: 590,
|
|
55
|
+
name: 'pv',
|
|
56
|
+
deleted: 0
|
|
57
|
+
},
|
|
58
|
+
dimension: {
|
|
59
|
+
id: 0,
|
|
60
|
+
alias: null,
|
|
61
|
+
category: 'fixed',
|
|
62
|
+
key: 'userProp-last_visit_time-0',
|
|
63
|
+
label: '最后一次访问时间',
|
|
64
|
+
name: 'last_visit_time',
|
|
65
|
+
propCategory: 'userProp',
|
|
66
|
+
type: 3,
|
|
67
|
+
realTime: false,
|
|
68
|
+
dimensionSub: 'last_visit_time'
|
|
69
|
+
},
|
|
70
|
+
analysisModel: 'commonInterval',
|
|
71
|
+
time: {
|
|
72
|
+
begin: '2024-11-15',
|
|
73
|
+
end: '2024-11-22',
|
|
74
|
+
relative: [7, 0],
|
|
75
|
+
unit: 'day'
|
|
76
|
+
},
|
|
77
|
+
platform: 0,
|
|
78
|
+
chartType: 'boxplot'
|
|
79
|
+
},
|
|
80
|
+
chosen_data: []
|
|
81
|
+
},
|
|
82
|
+
type: 0,
|
|
83
|
+
unExistEvent: '',
|
|
84
|
+
renderType: 'normal',
|
|
85
|
+
source: 'PANEL',
|
|
86
|
+
panelId: 87,
|
|
18
87
|
panelType: 'edit',
|
|
19
88
|
data: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
time: {
|
|
28
|
-
unit: 'day',
|
|
29
|
-
relative: [14, 0],
|
|
30
|
-
begin: '2023-08-04',
|
|
31
|
-
end: '2023-08-18'
|
|
89
|
+
appId: 52,
|
|
90
|
+
module: 'interval',
|
|
91
|
+
userGroup: [0],
|
|
92
|
+
start: {
|
|
93
|
+
id: 590,
|
|
94
|
+
name: 'pv',
|
|
95
|
+
deleted: 0
|
|
32
96
|
},
|
|
33
|
-
|
|
97
|
+
associatedPreAttr: {
|
|
98
|
+
realTime: true,
|
|
99
|
+
eventId: 590,
|
|
34
100
|
propCategory: 'eventProp',
|
|
35
|
-
|
|
101
|
+
alias: '',
|
|
102
|
+
id: 31415926,
|
|
103
|
+
label: '业务',
|
|
104
|
+
dimensionSub: 'event_attr',
|
|
105
|
+
type: 1,
|
|
106
|
+
key: 'eventProp-31415926',
|
|
107
|
+
isHidden: 0
|
|
36
108
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
109
|
+
associatedNextAttr: {
|
|
110
|
+
realTime: true,
|
|
111
|
+
eventId: 590,
|
|
112
|
+
propCategory: 'eventProp',
|
|
113
|
+
alias: '',
|
|
114
|
+
id: 3045,
|
|
115
|
+
label: 'page_title',
|
|
116
|
+
dimensionSub: 'event_attr',
|
|
117
|
+
type: 1,
|
|
118
|
+
key: 'eventProp-3045',
|
|
119
|
+
isHidden: 0
|
|
120
|
+
},
|
|
121
|
+
end: {
|
|
122
|
+
id: 590,
|
|
123
|
+
name: 'pv',
|
|
124
|
+
deleted: 0
|
|
125
|
+
},
|
|
126
|
+
dimension: {
|
|
127
|
+
id: 0,
|
|
128
|
+
alias: null,
|
|
129
|
+
category: 'fixed',
|
|
130
|
+
key: 'userProp-last_visit_time-0',
|
|
131
|
+
label: '最后一次访问时间',
|
|
132
|
+
name: 'last_visit_time',
|
|
133
|
+
propCategory: 'userProp',
|
|
134
|
+
type: 3,
|
|
135
|
+
realTime: false,
|
|
136
|
+
dimensionSub: 'last_visit_time'
|
|
137
|
+
},
|
|
138
|
+
analysisModel: 'commonInterval',
|
|
139
|
+
time: {
|
|
140
|
+
begin: '2024-11-15',
|
|
141
|
+
end: '2024-11-22',
|
|
142
|
+
relative: [7, 0],
|
|
143
|
+
unit: 'day'
|
|
144
|
+
},
|
|
145
|
+
platform: 0,
|
|
146
|
+
chartType: 'boxplot'
|
|
147
|
+
},
|
|
148
|
+
chosen_data: []
|
|
51
149
|
};
|
|
52
150
|
export default (function () {
|
|
53
151
|
// 是否进入用户钻取页面
|
|
@@ -74,7 +172,7 @@ export default (function () {
|
|
|
74
172
|
};
|
|
75
173
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
76
174
|
needMeta: true,
|
|
77
|
-
defaultApp:
|
|
175
|
+
defaultApp: 52
|
|
78
176
|
}, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
79
177
|
onClick: function onClick() {
|
|
80
178
|
return setIsDetail(false);
|
|
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
8
8
|
import React, { useEffect, useState } from 'react';
|
|
9
|
-
import { ModuleInterval } from
|
|
9
|
+
import { ModuleInterval } from '@zgfe/modules-interval';
|
|
10
10
|
import "./styles/index.less";
|
|
11
11
|
import { requestConfig } from "../../../utils/ajaxConfig";
|
|
12
12
|
import { Button } from 'antd';
|
|
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
9
|
-
import { ModuleInterval } from
|
|
9
|
+
import { ModuleInterval } from '@zgfe/modules-interval';
|
|
10
10
|
import { requestConfig } from "../../../utils/ajaxConfig";
|
|
11
11
|
import { Button } from 'antd';
|
|
12
12
|
var defaultValue = {
|
|
@@ -63,6 +63,11 @@ var ModuleInterval = function ModuleInterval(props) {
|
|
|
63
63
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
64
64
|
subjectEnable = _useState16[0],
|
|
65
65
|
setSubjectEnable = _useState16[1];
|
|
66
|
+
var _useState17 = useState(false),
|
|
67
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
68
|
+
exception = _useState18[0],
|
|
69
|
+
setException = _useState18[1];
|
|
70
|
+
|
|
66
71
|
// 初始化
|
|
67
72
|
useEffect(function () {
|
|
68
73
|
setLoading(true);
|
|
@@ -145,7 +150,9 @@ var ModuleInterval = function ModuleInterval(props) {
|
|
|
145
150
|
changeLoading: setLoading,
|
|
146
151
|
afterEditTarget: props.afterEditTarget,
|
|
147
152
|
onUserDrill: props.onUserDrill,
|
|
148
|
-
onJumpWarning: props.onJumpWarning
|
|
153
|
+
onJumpWarning: props.onJumpWarning,
|
|
154
|
+
exception: exception,
|
|
155
|
+
setException: setException
|
|
149
156
|
}
|
|
150
157
|
}, /*#__PURE__*/React.createElement(EventContent, {
|
|
151
158
|
defaultValue: props.defaultValue ? props.defaultValue.data : undefined,
|
|
@@ -21,6 +21,7 @@ var classPrefix = 'top-panel-interval';
|
|
|
21
21
|
var TopPanel = function TopPanel(props) {
|
|
22
22
|
var _props$defaultValue, _props$defaultValue2, _props$defaultValue3, _defaultValue$associa, _defaultValue$associa2, _finalSearchData$asso, _finalSearchData$asso2, _defaultValue$associa3, _finalSearchData$asso3, _defaultValue$associa4, _finalSearchData$asso4, _defaultValue$associa5, _finalSearchData$asso5, _defaultValue$associa6, _finalSearchData$asso6, _defaultValue$associa7, _finalSearchData$asso7, _defaultValue$associa8, _finalSearchData$asso8, _defaultValue$associa9, _finalSearchData$asso9, _defaultValue$associa10, _finalSearchData$asso10, _defaultValue$dimensi, _finalSearchData$dime, _defaultValue$dimensi2, _finalSearchData$dime2, _defaultValue$dimensi3, _finalSearchData$dime3, _defaultValue$dimensi4, _finalSearchData$dime4;
|
|
23
23
|
var defaultValue = props.defaultValue,
|
|
24
|
+
propsDefaultValue = props.propsDefaultValue,
|
|
24
25
|
loading = props.loading,
|
|
25
26
|
collapseRef = props.collapseRef,
|
|
26
27
|
finalSearchData = props.finalSearchData;
|
|
@@ -38,7 +39,7 @@ var TopPanel = function TopPanel(props) {
|
|
|
38
39
|
endEvent = _useState4[0],
|
|
39
40
|
setEndEvent = _useState4[1];
|
|
40
41
|
// 关联属性
|
|
41
|
-
var _useState5 = useState(false),
|
|
42
|
+
var _useState5 = useState(defaultValue !== null && defaultValue !== void 0 && defaultValue.associatedNextAttr ? true : false),
|
|
42
43
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
43
44
|
relevancy = _useState6[0],
|
|
44
45
|
setRelevancy = _useState6[1];
|
|
@@ -62,14 +63,23 @@ var TopPanel = function TopPanel(props) {
|
|
|
62
63
|
inited = _useState12[0],
|
|
63
64
|
setInited = _useState12[1];
|
|
64
65
|
var formRef = React.useRef(null);
|
|
66
|
+
|
|
67
|
+
// 初始化设置细分属性
|
|
68
|
+
useEffect(function () {
|
|
69
|
+
if (formRef.current && propsDefaultValue && propsDefaultValue.dimension) {
|
|
70
|
+
var _formRef$current;
|
|
71
|
+
(_formRef$current = formRef.current) === null || _formRef$current === void 0 ? void 0 : _formRef$current.setFieldValue('dimension', propsDefaultValue.dimension);
|
|
72
|
+
}
|
|
73
|
+
}, [formRef.current, propsDefaultValue]);
|
|
65
74
|
function onSearch(values) {
|
|
66
75
|
if (props.onChange) {
|
|
76
|
+
var _values$analysisSubje, _values$analysisSubje2, _values$analysisSubje3, _values$analysisSubje4;
|
|
67
77
|
props.onChange(_objectSpread(_objectSpread({}, values), {}, {
|
|
68
|
-
analysisSubject: values.analysisSubject ? {
|
|
69
|
-
subjectId: values.analysisSubject.id,
|
|
70
|
-
subjectName: values.analysisSubject.subjectName,
|
|
71
|
-
subjectAlias: values.analysisSubject.subjectAlias,
|
|
72
|
-
unit: values.analysisSubject.unit
|
|
78
|
+
analysisSubject: values !== null && values !== void 0 && values.analysisSubject ? {
|
|
79
|
+
subjectId: values === null || values === void 0 ? void 0 : (_values$analysisSubje = values.analysisSubject) === null || _values$analysisSubje === void 0 ? void 0 : _values$analysisSubje.id,
|
|
80
|
+
subjectName: values === null || values === void 0 ? void 0 : (_values$analysisSubje2 = values.analysisSubject) === null || _values$analysisSubje2 === void 0 ? void 0 : _values$analysisSubje2.subjectName,
|
|
81
|
+
subjectAlias: values === null || values === void 0 ? void 0 : (_values$analysisSubje3 = values.analysisSubject) === null || _values$analysisSubje3 === void 0 ? void 0 : _values$analysisSubje3.subjectAlias,
|
|
82
|
+
unit: values === null || values === void 0 ? void 0 : (_values$analysisSubje4 = values.analysisSubject) === null || _values$analysisSubje4 === void 0 ? void 0 : _values$analysisSubje4.unit
|
|
73
83
|
} : undefined
|
|
74
84
|
}), true);
|
|
75
85
|
}
|
|
@@ -106,12 +116,12 @@ var TopPanel = function TopPanel(props) {
|
|
|
106
116
|
return;
|
|
107
117
|
}
|
|
108
118
|
setInited(false);
|
|
109
|
-
if (defaultValue.analysisSubject) {
|
|
119
|
+
if (defaultValue !== null && defaultValue !== void 0 && defaultValue.analysisSubject) {
|
|
110
120
|
setAnalysisType('eventProp');
|
|
111
121
|
} else {
|
|
112
122
|
setAnalysisType('user');
|
|
113
123
|
}
|
|
114
|
-
if (defaultValue.analysisSubject) {
|
|
124
|
+
if (defaultValue !== null && defaultValue !== void 0 && defaultValue.analysisSubject) {
|
|
115
125
|
setCurrentSubject(subjectList.find(function (item) {
|
|
116
126
|
var _defaultValue$analysi;
|
|
117
127
|
return item.id === (defaultValue === null || defaultValue === void 0 ? void 0 : (_defaultValue$analysi = defaultValue.analysisSubject) === null || _defaultValue$analysi === void 0 ? void 0 : _defaultValue$analysi.subjectId);
|
|
@@ -190,7 +200,7 @@ var TopPanel = function TopPanel(props) {
|
|
|
190
200
|
name: "analysisSubject",
|
|
191
201
|
className: "panel-form-interval-item",
|
|
192
202
|
rules: [{
|
|
193
|
-
validator: function validator(
|
|
203
|
+
validator: function validator(_rule, value) {
|
|
194
204
|
if (!value) {
|
|
195
205
|
return Promise.reject('请选择口径名称');
|
|
196
206
|
}
|
|
@@ -203,12 +213,12 @@ var TopPanel = function TopPanel(props) {
|
|
|
203
213
|
labelField: "subjectName",
|
|
204
214
|
keyField: "id",
|
|
205
215
|
onChange: function onChange(val) {
|
|
206
|
-
var _formRef$
|
|
216
|
+
var _formRef$current2, _formRef$current3, _formRef$current4;
|
|
207
217
|
setCurrentSubject(val);
|
|
208
218
|
setRelevancy(false);
|
|
209
|
-
(_formRef$
|
|
210
|
-
(_formRef$
|
|
211
|
-
(_formRef$
|
|
219
|
+
(_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.setFieldValue('start', undefined);
|
|
220
|
+
(_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldValue('end', undefined);
|
|
221
|
+
(_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : _formRef$current4.setFieldValue('dimension', undefined);
|
|
212
222
|
}
|
|
213
223
|
})), analysisType === 'user' && /*#__PURE__*/React.createElement(Form.Item, {
|
|
214
224
|
label: "",
|
|
@@ -260,9 +270,9 @@ var TopPanel = function TopPanel(props) {
|
|
|
260
270
|
key: "".concat(currentSubject === null || currentSubject === void 0 ? void 0 : currentSubject.subjectName, "-start"),
|
|
261
271
|
analysisType: analysisType,
|
|
262
272
|
onChange: function onChange(evt) {
|
|
263
|
-
var _formRef$
|
|
273
|
+
var _formRef$current5;
|
|
264
274
|
setStartEvent(evt);
|
|
265
|
-
(_formRef$
|
|
275
|
+
(_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 ? void 0 : _formRef$current5.setFieldValue('dimension', undefined);
|
|
266
276
|
}
|
|
267
277
|
})), /*#__PURE__*/React.createElement(Space, {
|
|
268
278
|
align: "baseline",
|
|
@@ -307,8 +317,8 @@ var TopPanel = function TopPanel(props) {
|
|
|
307
317
|
enableDelete: true,
|
|
308
318
|
key: "".concat(startEvent === null || startEvent === void 0 ? void 0 : startEvent.id, "-").concat(endEvent === null || endEvent === void 0 ? void 0 : endEvent.id, "-pre"),
|
|
309
319
|
onDelete: function onDelete() {
|
|
310
|
-
var _formRef$
|
|
311
|
-
(_formRef$
|
|
320
|
+
var _formRef$current6;
|
|
321
|
+
(_formRef$current6 = formRef.current) === null || _formRef$current6 === void 0 ? void 0 : _formRef$current6.setFieldValue('associatedPreAttr', undefined);
|
|
312
322
|
}
|
|
313
323
|
}))), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
314
324
|
className: "associated-label"
|
|
@@ -330,8 +340,8 @@ var TopPanel = function TopPanel(props) {
|
|
|
330
340
|
enableDelete: true,
|
|
331
341
|
key: "".concat(startEvent === null || startEvent === void 0 ? void 0 : startEvent.id, "-").concat(endEvent === null || endEvent === void 0 ? void 0 : endEvent.id, "-next"),
|
|
332
342
|
onDelete: function onDelete() {
|
|
333
|
-
var _formRef$
|
|
334
|
-
(_formRef$
|
|
343
|
+
var _formRef$current7;
|
|
344
|
+
(_formRef$current7 = formRef.current) === null || _formRef$current7 === void 0 ? void 0 : _formRef$current7.setFieldValue('associatedNextAttr', undefined);
|
|
335
345
|
}
|
|
336
346
|
}))), /*#__PURE__*/React.createElement("i", {
|
|
337
347
|
style: {
|
|
@@ -340,9 +350,9 @@ var TopPanel = function TopPanel(props) {
|
|
|
340
350
|
cursor: 'pointer'
|
|
341
351
|
},
|
|
342
352
|
onClick: function onClick() {
|
|
343
|
-
var _formRef$
|
|
344
|
-
(_formRef$
|
|
345
|
-
(_formRef$
|
|
353
|
+
var _formRef$current8, _formRef$current9;
|
|
354
|
+
(_formRef$current8 = formRef.current) === null || _formRef$current8 === void 0 ? void 0 : _formRef$current8.setFieldValue('associatedPreAttr', undefined);
|
|
355
|
+
(_formRef$current9 = formRef.current) === null || _formRef$current9 === void 0 ? void 0 : _formRef$current9.setFieldValue('associatedNextAttr', undefined);
|
|
346
356
|
setRelevancy(false);
|
|
347
357
|
},
|
|
348
358
|
className: "bsicon qingchu"
|
|
@@ -373,11 +383,11 @@ var TopPanel = function TopPanel(props) {
|
|
|
373
383
|
}, /*#__PURE__*/React.createElement(EventFilter, {
|
|
374
384
|
subject: currentSubject,
|
|
375
385
|
analysisType: analysisType,
|
|
376
|
-
key: "".concat(currentSubject === null || currentSubject === void 0 ? void 0 : currentSubject.subjectName, "-
|
|
386
|
+
key: "".concat(currentSubject === null || currentSubject === void 0 ? void 0 : currentSubject.subjectName, "-end"),
|
|
377
387
|
onChange: function onChange(val) {
|
|
378
|
-
var _formRef$
|
|
388
|
+
var _formRef$current10;
|
|
379
389
|
setEndEvent(val);
|
|
380
|
-
(_formRef$
|
|
390
|
+
(_formRef$current10 = formRef.current) === null || _formRef$current10 === void 0 ? void 0 : _formRef$current10.setFieldValue('dimension', undefined);
|
|
381
391
|
}
|
|
382
392
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
383
393
|
label: "\u6309\u5C5E\u6027\u7EC6\u5206",
|
|
@@ -392,8 +402,8 @@ var TopPanel = function TopPanel(props) {
|
|
|
392
402
|
showCommonProp: true,
|
|
393
403
|
enableDelete: true,
|
|
394
404
|
onDelete: function onDelete() {
|
|
395
|
-
var _formRef$
|
|
396
|
-
(_formRef$
|
|
405
|
+
var _formRef$current11;
|
|
406
|
+
(_formRef$current11 = formRef.current) === null || _formRef$current11 === void 0 ? void 0 : _formRef$current11.setFieldValue('dimension', undefined);
|
|
397
407
|
}
|
|
398
408
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
399
409
|
label: "\u5206\u6790\u6A21\u578B",
|
|
@@ -411,8 +421,8 @@ var TopPanel = function TopPanel(props) {
|
|
|
411
421
|
loading: loading || subjectLoading,
|
|
412
422
|
type: "primary",
|
|
413
423
|
onClick: function onClick() {
|
|
414
|
-
var _formRef$
|
|
415
|
-
(_formRef$
|
|
424
|
+
var _formRef$current12;
|
|
425
|
+
(_formRef$current12 = formRef.current) === null || _formRef$current12 === void 0 ? void 0 : _formRef$current12.submit();
|
|
416
426
|
}
|
|
417
427
|
}, "\u67E5\u8BE2"))));
|
|
418
428
|
};
|