@zgfe/modules-interval 1.0.23-zhongyuan.1 → 1.0.23-zhongyuan.11

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.
Files changed (32) hide show
  1. package/dist/esm/components/eventFilter/index.js +6 -5
  2. package/dist/esm/components/renderContent/styles/index.css +32 -0
  3. package/dist/esm/components/renderContent/styles/index.less +1 -0
  4. package/dist/esm/components/searchPanel/index.js +6 -1
  5. package/dist/esm/components/table/index.js +3 -2
  6. package/dist/esm/constants/code.d.ts +13 -0
  7. package/dist/esm/constants/code.js +13 -0
  8. package/dist/esm/modules/chart/customTooltip.js +3 -3
  9. package/dist/esm/modules/chart/customTooltip1.d.ts +7 -0
  10. package/dist/esm/modules/chart/customTooltip1.js +46 -0
  11. package/dist/esm/modules/chart/index.css +52 -0
  12. package/dist/esm/modules/chart/index.js +19 -8
  13. package/dist/esm/modules/chart/index.less +1 -1
  14. package/dist/esm/modules/chart/intervalChart copy.d.ts +4 -0
  15. package/dist/esm/modules/chart/intervalChart copy.js +295 -0
  16. package/dist/esm/modules/chart/intervalChart.js +323 -37
  17. package/dist/esm/modules/chart/types.d.ts +5 -0
  18. package/dist/esm/modules/content/index.js +50 -20
  19. package/dist/esm/modules/content/utils.d.ts +0 -1
  20. package/dist/esm/modules/content/utils.js +15 -16
  21. package/dist/esm/modules/home/demo/create.js +5 -3
  22. package/dist/esm/modules/home/demo/edit.js +132 -34
  23. package/dist/esm/modules/home/demo/index.js +1 -1
  24. package/dist/esm/modules/home/demo/scene.js +1 -1
  25. package/dist/esm/modules/home/index.js +8 -1
  26. package/dist/esm/modules/home/types.d.ts +0 -1
  27. package/dist/esm/modules/topPanel/index.js +32 -23
  28. package/dist/esm/modules/topPanel/styles/index.less +6 -6
  29. package/dist/esm/modules/topPanel/types.d.ts +1 -0
  30. package/dist/esm/utils/formData.d.ts +1 -1
  31. package/dist/esm/utils/formData.js +13 -8
  32. package/package.json +3 -3
@@ -4,30 +4,30 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
6
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
- /**
8
- * 判断当前细分属性是否为”城市“
9
- * @param name 属性名称
10
- * @returns true标识为:是城市
7
+ /**
8
+ * 判断当前细分属性是否为”城市“
9
+ * @param name 属性名称
10
+ * @returns true标识为:是城市
11
11
  */
12
12
  export var judgeIsCity = function judgeIsCity(name) {
13
13
  var areaData = ['current_city', 'city'];
14
14
  return name && areaData.indexOf(name) !== -1 ? true : false;
15
15
  };
16
16
 
17
- /**
18
- * 判断当前细分属性,地图是否可选
19
- * @param name 属性名称
20
- * @returns true标识为:地图可选
17
+ /**
18
+ * 判断当前细分属性,地图是否可选
19
+ * @param name 属性名称
20
+ * @returns true标识为:地图可选
21
21
  */
22
22
  export var judgeIsArea = function judgeIsArea(name) {
23
23
  var areaData = ['current_area', 'current_city', 'area', 'city'];
24
24
  return name && areaData.indexOf(name) !== -1 ? true : false;
25
25
  };
26
26
 
27
- /**
28
- * 获取当前属性的全部数据
29
- * @param param 属性的部分数据
30
- * @returns 属性的全部数据
27
+ /**
28
+ * 获取当前属性的全部数据
29
+ * @param param 属性的部分数据
30
+ * @returns 属性的全部数据
31
31
  */
32
32
  export var getValue = function getValue(param, eventGroupList, eventEnvList, userPropList) {
33
33
  var res = undefined;
@@ -80,7 +80,7 @@ export function searchCondition(params) {
80
80
  };
81
81
  }
82
82
  export function searchDataParams(params) {
83
- var _params$dimension, _params$dimension2, _params$dimension3, _params$dimension4, _params$dimension5, _params$dimension6, _params$dimension7, _params$dimension8, _params$dimension9, _params$dimension10, _params$dimension11, _params$dimension12, _params$dimension13, _params$associatedPre, _params$associatedNex;
83
+ var _params$dimension, _params$dimension2, _params$dimension3, _params$dimension4, _params$dimension5, _params$dimension6, _params$dimension7, _params$dimension8, _params$dimension9, _params$dimension10, _params$dimension11, _params$dimension12, _params$associatedPre, _params$associatedNex;
84
84
  return {
85
85
  time: _objectSpread({}, params === null || params === void 0 ? void 0 : params.time),
86
86
  platform: (params === null || params === void 0 ? void 0 : params.platform) || 0,
@@ -93,13 +93,12 @@ export function searchDataParams(params) {
93
93
  attrId: params === null || params === void 0 ? void 0 : (_params$dimension6 = params.dimension) === null || _params$dimension6 === void 0 ? void 0 : _params$dimension6.id,
94
94
  userAttr: (params === null || params === void 0 ? void 0 : (_params$dimension7 = params.dimension) === null || _params$dimension7 === void 0 ? void 0 : _params$dimension7.propCategory) === 'userProp' ? params === null || params === void 0 ? void 0 : (_params$dimension8 = params.dimension) === null || _params$dimension8 === void 0 ? void 0 : _params$dimension8.name : null,
95
95
  eventAttr: (params === null || params === void 0 ? void 0 : (_params$dimension9 = params.dimension) === null || _params$dimension9 === void 0 ? void 0 : _params$dimension9.propCategory) === 'eventProp' ? params === null || params === void 0 ? void 0 : (_params$dimension10 = params.dimension) === null || _params$dimension10 === void 0 ? void 0 : _params$dimension10.label : null,
96
- event: (params === null || params === void 0 ? void 0 : (_params$dimension11 = params.dimension) === null || _params$dimension11 === void 0 ? void 0 : _params$dimension11.propCategory) !== 'envProp' ? params === null || params === void 0 ? void 0 : (_params$dimension12 = params.dimension) === null || _params$dimension12 === void 0 ? void 0 : _params$dimension12.eventId : null,
97
- encryptionType: params === null || params === void 0 ? void 0 : (_params$dimension13 = params.dimension) === null || _params$dimension13 === void 0 ? void 0 : _params$dimension13.encryptionType
96
+ event: (params === null || params === void 0 ? void 0 : (_params$dimension11 = params.dimension) === null || _params$dimension11 === void 0 ? void 0 : _params$dimension11.propCategory) !== 'envProp' ? params === null || params === void 0 ? void 0 : (_params$dimension12 = params.dimension) === null || _params$dimension12 === void 0 ? void 0 : _params$dimension12.eventId : null
98
97
  } : null,
99
98
  associatedPreAttr: params === null || params === void 0 ? void 0 : (_params$associatedPre = params.associatedPreAttr) === null || _params$associatedPre === void 0 ? void 0 : _params$associatedPre.id,
100
99
  associatedNextAttr: params === null || params === void 0 ? void 0 : (_params$associatedNex = params.associatedNextAttr) === null || _params$associatedNex === void 0 ? void 0 : _params$associatedNex.id,
101
100
  analysisModel: params.analysisModel,
102
- analysisSubject: params.analysisSubject
101
+ analysisSubject: params === null || params === void 0 ? void 0 : params.analysisSubject
103
102
  };
104
103
  }
105
104
  export function transformData(data) {
@@ -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 "../../../index";
9
+ import { ModuleInterval } from '@zgfe/modules-interval';
10
10
  import { requestConfig } from "../../../utils/ajaxConfig";
11
11
  import { Button } from 'antd';
12
12
  var defaultValue = null;
@@ -33,9 +33,10 @@ export default (function () {
33
33
  var onUserDrill = function onUserDrill(data, searchData) {
34
34
  console.log('onUserDrill:', data, searchData);
35
35
  };
36
+ var onJumpWarning = function onJumpWarning() {};
36
37
  return /*#__PURE__*/React.createElement(DemoWrapper, {
37
38
  needMeta: true,
38
- defaultApp: 461
39
+ defaultApp: 3
39
40
  }, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
40
41
  onClick: function onClick() {
41
42
  return setIsDetail(false);
@@ -43,6 +44,7 @@ export default (function () {
43
44
  }, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleInterval, {
44
45
  defaultValue: searchParams,
45
46
  afterEditTarget: afterEditTarget,
46
- onUserDrill: onUserDrill
47
+ onUserDrill: onUserDrill,
48
+ onJumpWarning: onJumpWarning
47
49
  }));
48
50
  });
@@ -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 "../../../index";
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
- id: 7565,
14
- name: '测试6666',
15
- type: 0,
13
+ appId: 52,
16
14
  enlarged: 0,
17
- panelId: 400900,
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
- chartType: 'boxplot',
21
- analysisIndex: 'per',
22
- id: 7565,
23
- name: '测试6666',
24
- appId: 266,
25
- platform: 0,
26
- userGroup: [933, 935],
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
- dimension: {
97
+ associatedPreAttr: {
98
+ realTime: true,
99
+ eventId: 590,
34
100
  propCategory: 'eventProp',
35
- value: 151045
101
+ alias: '',
102
+ id: 31415926,
103
+ label: '业务',
104
+ dimensionSub: 'event_attr',
105
+ type: 1,
106
+ key: 'eventProp-31415926',
107
+ isHidden: 0
36
108
  },
37
- filters: {
38
- relation: 'and',
39
- conditions: [{
40
- attrId: 151045,
41
- propCategory: 'eventProp',
42
- type: 1,
43
- operator: 'equal',
44
- values: ['55'],
45
- dimensionSub: 'event_attr',
46
- label: '应用名称',
47
- attrName: '应用名称'
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: 266
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 "../../../index";
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 "../../../index";
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,
@@ -71,7 +71,6 @@ export declare namespace IntervalProps {
71
71
  perValue?: number;
72
72
  peopleNum?: number;
73
73
  names?: string[];
74
- originalNames?: string[];
75
74
  total?: number;
76
75
  children?: ColumnsDataType[];
77
76
  }
@@ -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,6 +63,14 @@ 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) {
67
76
  props.onChange(_objectSpread(_objectSpread({}, values), {}, {
@@ -165,7 +174,7 @@ var TopPanel = function TopPanel(props) {
165
174
  }, /*#__PURE__*/React.createElement(IconFont, {
166
175
  type: "bangzhu",
167
176
  onClick: function onClick() {
168
- return window.open('https://docs.zhugeio.com/datamanager/Statistical_caliber.html', '_blank');
177
+ return window.open("".concat(location.origin, "/help/intro"), '_blank');
169
178
  }
170
179
  }))),
171
180
  className: "panel-form-interval-item"
@@ -190,7 +199,7 @@ var TopPanel = function TopPanel(props) {
190
199
  name: "analysisSubject",
191
200
  className: "panel-form-interval-item",
192
201
  rules: [{
193
- validator: function validator(rule, value) {
202
+ validator: function validator(_rule, value) {
194
203
  if (!value) {
195
204
  return Promise.reject('请选择口径名称');
196
205
  }
@@ -203,12 +212,12 @@ var TopPanel = function TopPanel(props) {
203
212
  labelField: "subjectName",
204
213
  keyField: "id",
205
214
  onChange: function onChange(val) {
206
- var _formRef$current, _formRef$current2, _formRef$current3;
215
+ var _formRef$current2, _formRef$current3, _formRef$current4;
207
216
  setCurrentSubject(val);
208
217
  setRelevancy(false);
209
- (_formRef$current = formRef.current) === null || _formRef$current === void 0 ? void 0 : _formRef$current.setFieldValue('start', undefined);
210
- (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.setFieldValue('end', undefined);
211
- (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldValue('dimension', undefined);
218
+ (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.setFieldValue('start', undefined);
219
+ (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldValue('end', undefined);
220
+ (_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : _formRef$current4.setFieldValue('dimension', undefined);
212
221
  }
213
222
  })), analysisType === 'user' && /*#__PURE__*/React.createElement(Form.Item, {
214
223
  label: "",
@@ -260,9 +269,9 @@ var TopPanel = function TopPanel(props) {
260
269
  key: "".concat(currentSubject === null || currentSubject === void 0 ? void 0 : currentSubject.subjectName, "-start"),
261
270
  analysisType: analysisType,
262
271
  onChange: function onChange(evt) {
263
- var _formRef$current4;
272
+ var _formRef$current5;
264
273
  setStartEvent(evt);
265
- (_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : _formRef$current4.setFieldValue('dimension', undefined);
274
+ (_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 ? void 0 : _formRef$current5.setFieldValue('dimension', undefined);
266
275
  }
267
276
  })), /*#__PURE__*/React.createElement(Space, {
268
277
  align: "baseline",
@@ -307,8 +316,8 @@ var TopPanel = function TopPanel(props) {
307
316
  enableDelete: true,
308
317
  key: "".concat(startEvent === null || startEvent === void 0 ? void 0 : startEvent.id, "-").concat(endEvent === null || endEvent === void 0 ? void 0 : endEvent.id, "-pre"),
309
318
  onDelete: function onDelete() {
310
- var _formRef$current5;
311
- (_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 ? void 0 : _formRef$current5.setFieldValue('associatedPreAttr', undefined);
319
+ var _formRef$current6;
320
+ (_formRef$current6 = formRef.current) === null || _formRef$current6 === void 0 ? void 0 : _formRef$current6.setFieldValue('associatedPreAttr', undefined);
312
321
  }
313
322
  }))), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
314
323
  className: "associated-label"
@@ -330,8 +339,8 @@ var TopPanel = function TopPanel(props) {
330
339
  enableDelete: true,
331
340
  key: "".concat(startEvent === null || startEvent === void 0 ? void 0 : startEvent.id, "-").concat(endEvent === null || endEvent === void 0 ? void 0 : endEvent.id, "-next"),
332
341
  onDelete: function onDelete() {
333
- var _formRef$current6;
334
- (_formRef$current6 = formRef.current) === null || _formRef$current6 === void 0 ? void 0 : _formRef$current6.setFieldValue('associatedNextAttr', undefined);
342
+ var _formRef$current7;
343
+ (_formRef$current7 = formRef.current) === null || _formRef$current7 === void 0 ? void 0 : _formRef$current7.setFieldValue('associatedNextAttr', undefined);
335
344
  }
336
345
  }))), /*#__PURE__*/React.createElement("i", {
337
346
  style: {
@@ -340,9 +349,9 @@ var TopPanel = function TopPanel(props) {
340
349
  cursor: 'pointer'
341
350
  },
342
351
  onClick: function onClick() {
343
- var _formRef$current7, _formRef$current8;
344
- (_formRef$current7 = formRef.current) === null || _formRef$current7 === void 0 ? void 0 : _formRef$current7.setFieldValue('associatedPreAttr', undefined);
345
- (_formRef$current8 = formRef.current) === null || _formRef$current8 === void 0 ? void 0 : _formRef$current8.setFieldValue('associatedNextAttr', undefined);
352
+ var _formRef$current8, _formRef$current9;
353
+ (_formRef$current8 = formRef.current) === null || _formRef$current8 === void 0 ? void 0 : _formRef$current8.setFieldValue('associatedPreAttr', undefined);
354
+ (_formRef$current9 = formRef.current) === null || _formRef$current9 === void 0 ? void 0 : _formRef$current9.setFieldValue('associatedNextAttr', undefined);
346
355
  setRelevancy(false);
347
356
  },
348
357
  className: "bsicon qingchu"
@@ -373,11 +382,11 @@ var TopPanel = function TopPanel(props) {
373
382
  }, /*#__PURE__*/React.createElement(EventFilter, {
374
383
  subject: currentSubject,
375
384
  analysisType: analysisType,
376
- key: "".concat(currentSubject === null || currentSubject === void 0 ? void 0 : currentSubject.subjectName, "-start"),
385
+ key: "".concat(currentSubject === null || currentSubject === void 0 ? void 0 : currentSubject.subjectName, "-end"),
377
386
  onChange: function onChange(val) {
378
- var _formRef$current9;
387
+ var _formRef$current10;
379
388
  setEndEvent(val);
380
- (_formRef$current9 = formRef.current) === null || _formRef$current9 === void 0 ? void 0 : _formRef$current9.setFieldValue('dimension', undefined);
389
+ (_formRef$current10 = formRef.current) === null || _formRef$current10 === void 0 ? void 0 : _formRef$current10.setFieldValue('dimension', undefined);
381
390
  }
382
391
  })), /*#__PURE__*/React.createElement(Form.Item, {
383
392
  label: "\u6309\u5C5E\u6027\u7EC6\u5206",
@@ -392,8 +401,8 @@ var TopPanel = function TopPanel(props) {
392
401
  showCommonProp: true,
393
402
  enableDelete: true,
394
403
  onDelete: function onDelete() {
395
- var _formRef$current10;
396
- (_formRef$current10 = formRef.current) === null || _formRef$current10 === void 0 ? void 0 : _formRef$current10.setFieldValue('dimension', undefined);
404
+ var _formRef$current11;
405
+ (_formRef$current11 = formRef.current) === null || _formRef$current11 === void 0 ? void 0 : _formRef$current11.setFieldValue('dimension', undefined);
397
406
  }
398
407
  })), /*#__PURE__*/React.createElement(Form.Item, {
399
408
  label: "\u5206\u6790\u6A21\u578B",
@@ -411,8 +420,8 @@ var TopPanel = function TopPanel(props) {
411
420
  loading: loading || subjectLoading,
412
421
  type: "primary",
413
422
  onClick: function onClick() {
414
- var _formRef$current11;
415
- (_formRef$current11 = formRef.current) === null || _formRef$current11 === void 0 ? void 0 : _formRef$current11.submit();
423
+ var _formRef$current12;
424
+ (_formRef$current12 = formRef.current) === null || _formRef$current12 === void 0 ? void 0 : _formRef$current12.submit();
416
425
  }
417
426
  }, "\u67E5\u8BE2"))));
418
427
  };
@@ -44,7 +44,7 @@
44
44
  padding-left: 12px;
45
45
  }
46
46
  &:hover {
47
- background-color: #e8efff;
47
+ background-color: #e7f3fe;
48
48
  }
49
49
  }
50
50
  }
@@ -66,7 +66,7 @@
66
66
  }
67
67
 
68
68
  .ant-space-item:nth-child(2):hover {
69
- background-color: #e8efff;
69
+ background-color: #e7f3fe;
70
70
  }
71
71
  }
72
72
  }
@@ -110,7 +110,7 @@
110
110
  }
111
111
 
112
112
  > div:nth-child(1):hover {
113
- background-color: #e8efff;
113
+ background-color: #e7f3fe;
114
114
  }
115
115
 
116
116
  .biz-attr-condition-group-handle {
@@ -135,7 +135,7 @@
135
135
  }
136
136
 
137
137
  .ant-space-item:hover {
138
- background-color: #e8efff;
138
+ background-color: #e7f3fe;
139
139
  }
140
140
  }
141
141
 
@@ -145,7 +145,7 @@
145
145
  }
146
146
 
147
147
  .ant-form-item-control-input:hover {
148
- background-color: #e8efff;
148
+ background-color: #e7f3fe;
149
149
  }
150
150
  }
151
151
  }
@@ -186,7 +186,7 @@
186
186
  }
187
187
 
188
188
  .ant-form-item-control-input:hover {
189
- background-color: #e8efff;
189
+ background-color: #e7f3fe;
190
190
  }
191
191
 
192
192
  .associated-link {
@@ -42,6 +42,7 @@ export interface TopPanelProps {
42
42
  * 默认值
43
43
  */
44
44
  defaultValue?: SearchValue;
45
+ propsDefaultValue?: SearchValue;
45
46
  loading?: boolean;
46
47
  /**
47
48
  * 数据更新
@@ -77,7 +77,7 @@ type ChartData = {
77
77
  xAxis?: string[];
78
78
  };
79
79
  };
80
- export declare function convertDateArray(params: SearchValue | undefined, dateArray: string[]): string[] | undefined;
80
+ export declare function convertDateArray(params: SearchValue | undefined, dateArray: string[]): (string | undefined)[] | undefined;
81
81
  /**
82
82
  * 获取查询结果
83
83
  * @param source 结果数据
@@ -12,6 +12,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
14
  import React from 'react';
15
+ import { Tooltip } from 'antd';
15
16
  import { chartColors } from "../constants/color";
16
17
  import "../style/index.less";
17
18
  import { IconFont } from '@zgfe/business-lib';
@@ -46,7 +47,9 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
46
47
  dataIndex: 'time',
47
48
  className: "".concat(classPrefix, "-table-td"),
48
49
  render: function render(text, record) {
49
- return /*#__PURE__*/React.createElement("span", null, " ", text);
50
+ return /*#__PURE__*/React.createElement(Tooltip, {
51
+ title: text
52
+ }, /*#__PURE__*/React.createElement("span", null, " ", text));
50
53
  }
51
54
  }, {
52
55
  title: '最大值',
@@ -259,13 +262,15 @@ export function convertDateArray(params, dateArray) {
259
262
  case 'week':
260
263
  case 'month':
261
264
  var convertedArray = dateArray === null || dateArray === void 0 ? void 0 : dateArray.map(function (dateRange) {
262
- var _dateRange$split = dateRange.split('|'),
263
- _dateRange$split2 = _slicedToArray(_dateRange$split, 2),
264
- startDate = _dateRange$split2[0],
265
- endDate = _dateRange$split2[1];
266
- var formattedStartDate = startDate.split('-').slice(1).join('-');
267
- var formattedEndDate = endDate.split('-').slice(1).join('-');
268
- return "".concat(formattedStartDate, "\uFF5E").concat(formattedEndDate);
265
+ if (dateRange.includes('|')) {
266
+ var _dateRange$split = dateRange.split('|'),
267
+ _dateRange$split2 = _slicedToArray(_dateRange$split, 2),
268
+ startDate = _dateRange$split2[0],
269
+ endDate = _dateRange$split2[1];
270
+ var formattedStartDate = startDate.split('-').slice(1).join('-');
271
+ var formattedEndDate = endDate.split('-').slice(1).join('-');
272
+ return "".concat(formattedStartDate, "\uFF5E").concat(formattedEndDate);
273
+ }
269
274
  });
270
275
  return convertedArray;
271
276
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-interval",
3
- "version": "1.0.23-zhongyuan.1",
3
+ "version": "1.0.23-zhongyuan.11",
4
4
  "private": false,
5
5
  "module": "dist/esm/index.js",
6
6
  "typings": "dist/esm/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "@types/uuid": "^9.0.2",
43
43
  "@umijs/fabric": "^2.8.1",
44
44
  "@umijs/test": "^3.0.5",
45
- "@zgfe/business-lib": "1.2.70-hxd.10",
45
+ "@zgfe/business-lib": "1.2.70-hxd.1",
46
46
  "antd": "^4.22.6",
47
47
  "dumi": "^1.1.0",
48
48
  "echarts": "^5.3.2",
@@ -59,7 +59,7 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "e0ab09536ecccea2965d6c3e0e73ba24b31fea65",
62
+ "gitHead": "ac7fe4ed94413198bb0e2bb7ea068d1dd51f690d",
63
63
  "gitHooks": {
64
64
  "pre-commit": "lint-staged"
65
65
  }