@zgfe/modules-interval 1.0.3-alpha.23 → 1.0.3-alpha.24
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.
|
@@ -40,41 +40,31 @@ export default (function () {
|
|
|
40
40
|
}
|
|
41
41
|
}, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleInterval, {
|
|
42
42
|
afterEditTarget: afterEditTarget,
|
|
43
|
-
onUserDrill: onUserDrill
|
|
44
|
-
defaultValue
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
propCategory: 'eventProp',
|
|
69
|
-
type: 2,
|
|
70
|
-
realTime: true,
|
|
71
|
-
dimensionSub: 'event_attr'
|
|
72
|
-
},
|
|
73
|
-
userGroups: [0],
|
|
74
|
-
analysisModel: 'commonInterval',
|
|
75
|
-
analysisIndex: 'number'
|
|
76
|
-
}
|
|
77
|
-
},
|
|
43
|
+
onUserDrill: onUserDrill
|
|
44
|
+
// defaultValue={{
|
|
45
|
+
// data: {
|
|
46
|
+
// time: { begin: '2023-08-01', end: '2023-10-18', unit: 'day' },
|
|
47
|
+
// chartType: 'boxplot',
|
|
48
|
+
// start: { id: 7612, name: '间隔事件-01', relevancy: false },
|
|
49
|
+
// end: { id: 7614, name: '间隔事件-02' },
|
|
50
|
+
// dimension: {
|
|
51
|
+
// alias: '',
|
|
52
|
+
// eventId: 7612,
|
|
53
|
+
// id: 151567,
|
|
54
|
+
// isHidden: 0,
|
|
55
|
+
// key: 'eventProp-151567',
|
|
56
|
+
// label: '商品数量',
|
|
57
|
+
// propCategory: 'eventProp',
|
|
58
|
+
// type: 2,
|
|
59
|
+
// realTime: true,
|
|
60
|
+
// dimensionSub: 'event_attr',
|
|
61
|
+
// },
|
|
62
|
+
// userGroups: [0],
|
|
63
|
+
// analysisModel: 'commonInterval',
|
|
64
|
+
// analysisIndex: 'number',
|
|
65
|
+
// },
|
|
66
|
+
// }}
|
|
67
|
+
,
|
|
78
68
|
onJumpWarning: function onJumpWarning() {}
|
|
79
69
|
}));
|
|
80
70
|
});
|
|
@@ -184,12 +184,11 @@ var TopPanel = function TopPanel(props) {
|
|
|
184
184
|
labelField: "subjectName",
|
|
185
185
|
keyField: "id",
|
|
186
186
|
onChange: function onChange(val) {
|
|
187
|
+
var _formRef$current, _formRef$current2;
|
|
187
188
|
setCurrentSubject(val);
|
|
188
189
|
setRelevancy(false);
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
end: undefined
|
|
192
|
-
});
|
|
190
|
+
(_formRef$current = formRef.current) === null || _formRef$current === void 0 ? void 0 : _formRef$current.setFieldValue('start', undefined);
|
|
191
|
+
(_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.setFieldValue('end', undefined);
|
|
193
192
|
}
|
|
194
193
|
})), analysisType === 'user' && /*#__PURE__*/React.createElement(Form.Item, {
|
|
195
194
|
label: "",
|
|
@@ -216,6 +215,7 @@ var TopPanel = function TopPanel(props) {
|
|
|
216
215
|
marginBottom: 0
|
|
217
216
|
},
|
|
218
217
|
rules: [{
|
|
218
|
+
validateTrigger: ['onBlur'],
|
|
219
219
|
validator: function validator(rule, value) {
|
|
220
220
|
var _value$filters, _value$filters$condit;
|
|
221
221
|
if (!value || !value.id) {
|
|
@@ -282,8 +282,8 @@ var TopPanel = function TopPanel(props) {
|
|
|
282
282
|
enableDelete: true,
|
|
283
283
|
key: "".concat(startEvent === null || startEvent === void 0 ? void 0 : startEvent.id, "-").concat(endEvent === null || endEvent === void 0 ? void 0 : endEvent.id, "-pre"),
|
|
284
284
|
onDelete: function onDelete() {
|
|
285
|
-
var _formRef$
|
|
286
|
-
(_formRef$
|
|
285
|
+
var _formRef$current3;
|
|
286
|
+
(_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldValue('associatedPreAttr', undefined);
|
|
287
287
|
}
|
|
288
288
|
}))), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
289
289
|
className: "associated-label"
|
|
@@ -305,8 +305,8 @@ var TopPanel = function TopPanel(props) {
|
|
|
305
305
|
enableDelete: true,
|
|
306
306
|
key: "".concat(startEvent === null || startEvent === void 0 ? void 0 : startEvent.id, "-").concat(endEvent === null || endEvent === void 0 ? void 0 : endEvent.id, "-next"),
|
|
307
307
|
onDelete: function onDelete() {
|
|
308
|
-
var _formRef$
|
|
309
|
-
(_formRef$
|
|
308
|
+
var _formRef$current4;
|
|
309
|
+
(_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : _formRef$current4.setFieldValue('associatedNextAttr', undefined);
|
|
310
310
|
}
|
|
311
311
|
}))), /*#__PURE__*/React.createElement("i", {
|
|
312
312
|
style: {
|
|
@@ -315,9 +315,9 @@ var TopPanel = function TopPanel(props) {
|
|
|
315
315
|
cursor: 'pointer'
|
|
316
316
|
},
|
|
317
317
|
onClick: function onClick() {
|
|
318
|
-
var _formRef$
|
|
319
|
-
(_formRef$
|
|
320
|
-
(_formRef$
|
|
318
|
+
var _formRef$current5, _formRef$current6;
|
|
319
|
+
(_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 ? void 0 : _formRef$current5.setFieldValue('associatedPreAttr', undefined);
|
|
320
|
+
(_formRef$current6 = formRef.current) === null || _formRef$current6 === void 0 ? void 0 : _formRef$current6.setFieldValue('associatedNextAttr', undefined);
|
|
321
321
|
setRelevancy(false);
|
|
322
322
|
},
|
|
323
323
|
className: "bsicon qingchu"
|
|
@@ -325,6 +325,7 @@ var TopPanel = function TopPanel(props) {
|
|
|
325
325
|
label: "\u7ED3\u675F\u4E8B\u4EF6",
|
|
326
326
|
name: "end",
|
|
327
327
|
rules: [{
|
|
328
|
+
validateTrigger: ['onBlur'],
|
|
328
329
|
validator: function validator(rule, value) {
|
|
329
330
|
var _value$filters2, _value$filters2$condi;
|
|
330
331
|
if (!value || !value.id) {
|
|
@@ -362,8 +363,8 @@ var TopPanel = function TopPanel(props) {
|
|
|
362
363
|
eventIdList: (startEvent === null || startEvent === void 0 ? void 0 : startEvent.id) === (endEvent === null || endEvent === void 0 ? void 0 : endEvent.id) ? [startEvent === null || startEvent === void 0 ? void 0 : startEvent.id] : [startEvent === null || startEvent === void 0 ? void 0 : startEvent.id, endEvent === null || endEvent === void 0 ? void 0 : endEvent.id],
|
|
363
364
|
enableDelete: true,
|
|
364
365
|
onDelete: function onDelete() {
|
|
365
|
-
var _formRef$
|
|
366
|
-
(_formRef$
|
|
366
|
+
var _formRef$current7;
|
|
367
|
+
(_formRef$current7 = formRef.current) === null || _formRef$current7 === void 0 ? void 0 : _formRef$current7.setFieldValue('dimension', undefined);
|
|
367
368
|
}
|
|
368
369
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
369
370
|
label: "\u5206\u6790\u6A21\u578B",
|
|
@@ -381,8 +382,8 @@ var TopPanel = function TopPanel(props) {
|
|
|
381
382
|
loading: loading || subjectLoading,
|
|
382
383
|
type: "primary",
|
|
383
384
|
onClick: function onClick() {
|
|
384
|
-
var _formRef$
|
|
385
|
-
(_formRef$
|
|
385
|
+
var _formRef$current8;
|
|
386
|
+
(_formRef$current8 = formRef.current) === null || _formRef$current8 === void 0 ? void 0 : _formRef$current8.submit();
|
|
386
387
|
}
|
|
387
388
|
}, "\u67E5\u8BE2"))));
|
|
388
389
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-interval",
|
|
3
|
-
"version": "1.0.3-alpha.
|
|
3
|
+
"version": "1.0.3-alpha.24",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"umi-request": "^1.4.0",
|
|
63
63
|
"yorkie": "^2.0.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "433301a7b7852818f3fce8c517666a25561a5d55"
|
|
66
66
|
}
|