@zgfe/modules-interval 1.0.11-zhongbang.8 → 1.0.23-zhongyuan.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.
Files changed (39) hide show
  1. package/README.md +35 -33
  2. package/dist/esm/components/common/styles/index.less +40 -40
  3. package/dist/esm/components/eventFilter/index.js +5 -3
  4. package/dist/esm/components/eventFilter/styles/index.less +39 -39
  5. package/dist/esm/components/renderContent/index.js +6 -5
  6. package/dist/esm/components/renderContent/styles/index.less +36 -36
  7. package/dist/esm/components/searchPanel/index.js +19 -9
  8. package/dist/esm/components/searchPanel/styles/index.less +71 -64
  9. package/dist/esm/components/searchPanel/types.d.ts +1 -0
  10. package/dist/esm/components/table/index.js +1 -1
  11. package/dist/esm/components/table/styles/index.less +138 -138
  12. package/dist/esm/components/topBar/index.js +8 -12
  13. package/dist/esm/components/topBar/styles/index.less +16 -50
  14. package/dist/esm/constants/apis.js +4 -4
  15. package/dist/esm/constants/fields.js +4 -4
  16. package/dist/esm/modules/chart/index.js +23 -4
  17. package/dist/esm/modules/chart/index.less +58 -58
  18. package/dist/esm/modules/content/index.js +48 -20
  19. package/dist/esm/modules/content/styles/index.less +25 -7
  20. package/dist/esm/modules/content/utils.d.ts +1 -0
  21. package/dist/esm/modules/content/utils.js +4 -3
  22. package/dist/esm/modules/home/demo/create.js +1 -1
  23. package/dist/esm/modules/home/demo/edit.js +1 -1
  24. package/dist/esm/modules/home/demo/index.js +2 -1
  25. package/dist/esm/modules/home/demo/styles/index.less +33 -33
  26. package/dist/esm/modules/home/index.js +52 -33
  27. package/dist/esm/modules/home/styles/index.less +69 -66
  28. package/dist/esm/modules/home/types.d.ts +1 -0
  29. package/dist/esm/modules/topPanel/index.js +88 -23
  30. package/dist/esm/modules/topPanel/styles/index.less +219 -213
  31. package/dist/esm/style/image/empty.png +0 -0
  32. package/dist/esm/style/image/ring.svg +9 -9
  33. package/dist/esm/style/index.less +67 -67
  34. package/dist/esm/types.js +6 -6
  35. package/dist/esm/utils/ajaxConfig.js +5 -5
  36. package/dist/esm/utils/formData.d.ts +6 -2
  37. package/dist/esm/utils/formData.js +9 -5
  38. package/dist/esm/utils/util.js +28 -28
  39. package/package.json +22 -22
@@ -23,6 +23,8 @@ import TopPanel from "../topPanel";
23
23
  import { message } from 'antd';
24
24
  var CancelToken = Request.CancelToken;
25
25
  var cancel;
26
+ var refresh = false;
27
+ var timer = 0;
26
28
  var classPrefix = 'interval-content';
27
29
  var EventContent = function EventContent(props) {
28
30
  // 最后的查询数据(防止图表在还没查询时就改变了类型)
@@ -31,7 +33,8 @@ var EventContent = function EventContent(props) {
31
33
  finalSearchData = _useState2[0],
32
34
  setFinalSearchData = _useState2[1];
33
35
  var _useContext = useContext(BizGlobalDataContext),
34
- currentApp = _useContext.currentApp;
36
+ currentApp = _useContext.currentApp,
37
+ route = _useContext.route;
35
38
  // 查询的结果数据
36
39
  var _useState3 = useState(),
37
40
  _useState4 = _slicedToArray(_useState3, 2),
@@ -64,17 +67,19 @@ var EventContent = function EventContent(props) {
64
67
  setSearchData = _useContext2.setSearchData,
65
68
  eventGroupList = _useContext2.eventGroupList,
66
69
  eventEnvList = _useContext2.eventEnvList,
67
- userPropList = _useContext2.userPropList;
70
+ userPropList = _useContext2.userPropList,
71
+ setRefreshLoading = _useContext2.setRefreshLoading,
72
+ panelId = _useContext2.panelId;
68
73
  var _useContext3 = useContext(BizTargetFromPanelContext),
69
74
  handleSearch = _useContext3.handleSearch;
70
- var _useState15 = useState(),
71
- _useState16 = _slicedToArray(_useState15, 2),
72
- searchTimer = _useState16[0],
73
- setSearchTimer = _useState16[1];
74
75
  var collapseRef = useRef();
75
76
  // 初始化
76
77
  useEffect(function () {
77
- setLoading(false);
78
+ if (props.defaultValue) {
79
+ setEventId(props.defaultValue.id);
80
+ } else {
81
+ setLoading(false);
82
+ }
78
83
  }, [props.defaultValue]);
79
84
  useEffect(function () {
80
85
  if (searchData && searchData.dimension) {
@@ -86,14 +91,19 @@ var EventContent = function EventContent(props) {
86
91
  }
87
92
  }
88
93
  if (!searchData || !searchData.analysisModel) return;
89
- if (searchTimer) clearTimeout(searchTimer);
90
- setSearchTimer(setTimeout(function () {
91
- fetchRequest();
92
- }, 300));
94
+ if (timer) clearTimeout(timer);
95
+ var flag = true;
96
+ timer = setTimeout(function () {
97
+ if (flag) {
98
+ fetchRequest();
99
+ }
100
+ }, 500);
93
101
  return function () {
94
- clearTimeout(searchTimer);
102
+ // 清理异步任务
103
+ if (timer) clearTimeout(timer);
104
+ flag = false;
95
105
  };
96
- }, [searchData, eventId]);
106
+ }, [searchData]);
97
107
  useEffect(function () {
98
108
  handleSearch && handleSearch(loading);
99
109
  }, [loading]);
@@ -106,7 +116,7 @@ var EventContent = function EventContent(props) {
106
116
  return;
107
117
  }
108
118
  setEventData(undefined);
109
- setLoading(true);
119
+ if (!refresh) setLoading(true);
110
120
  if (searchData !== null && searchData !== void 0 && (_searchData$associate = searchData.associatedNextAttr) !== null && _searchData$associate !== void 0 && _searchData$associate.type && (searchData === null || searchData === void 0 ? void 0 : (_searchData$associate2 = searchData.associatedPreAttr) === null || _searchData$associate2 === void 0 ? void 0 : _searchData$associate2.type) !== (searchData === null || searchData === void 0 ? void 0 : (_searchData$associate3 = searchData.associatedNextAttr) === null || _searchData$associate3 === void 0 ? void 0 : _searchData$associate3.type)) {
111
121
  setLoading(false);
112
122
  return message.error('您查询的属性不一致,暂不支持查询');
@@ -115,13 +125,16 @@ var EventContent = function EventContent(props) {
115
125
  props.onChange && props.onChange(searchData);
116
126
  ajax(Apis.dataList, {
117
127
  method: 'post',
118
- data: _objectSpread({
128
+ data: _objectSpread(_objectSpread({
119
129
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
120
- }, params),
130
+ }, params), {}, {
131
+ refresh: refresh
132
+ }),
121
133
  cancelToken: new CancelToken(function executor(c) {
122
134
  cancel = c;
123
135
  })
124
136
  }).then(function (res) {
137
+ setRefreshLoading(false);
125
138
  if (!res) {
126
139
  setLoading(false);
127
140
  return;
@@ -137,6 +150,18 @@ var EventContent = function EventContent(props) {
137
150
  });
138
151
  };
139
152
 
153
+ // 立即刷新
154
+ var refreshHandle = function refreshHandle() {
155
+ refresh = true;
156
+ setRefreshLoading(true);
157
+ if (timer) clearTimeout(timer);
158
+ timer = setTimeout(function () {
159
+ fetchRequest();
160
+ refresh = false;
161
+ clearTimeout(timer);
162
+ }, 500);
163
+ };
164
+
140
165
  // 改变时间和图表类型
141
166
  var onChangeContent = function onChangeContent(data) {
142
167
  setSearchData(function (value) {
@@ -164,19 +189,21 @@ var EventContent = function EventContent(props) {
164
189
  setSearchData(function (_searchData) {
165
190
  return _objectSpread(_objectSpread({}, data), {}, {
166
191
  time: _searchData.time,
167
- platform: _searchData.platform,
192
+ platform: _searchData.platform || 0,
168
193
  userGroup: data.analysisSubject ? undefined : data.userGroup,
169
194
  analysisSubject: data.analysisSubject ? data.analysisSubject : undefined
170
195
  });
171
196
  });
172
197
  };
173
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TopBar, {
198
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
199
+ className: "".concat(classPrefix, "-header")
200
+ }, /*#__PURE__*/React.createElement("span", null, !panelId && route && route.query && route.query.title ? route.query.title : '间隔分析'), /*#__PURE__*/React.createElement(TopBar, {
174
201
  searchData: searchData,
175
202
  loading: loading,
176
203
  eventData: eventData,
177
204
  platformChange: platformChange,
178
205
  onJumpWarning: props.onJumpWarning
179
- }), /*#__PURE__*/React.createElement(BizLayout, {
206
+ })), /*#__PURE__*/React.createElement(BizLayout, {
180
207
  showTitle: false,
181
208
  hasCollapse: true,
182
209
  className: "interval-layout",
@@ -199,7 +226,8 @@ var EventContent = function EventContent(props) {
199
226
  eventId: eventId,
200
227
  eventData: eventData,
201
228
  enableSelectChart: enableSelectChart,
202
- onChange: onChangeContent
229
+ onChange: onChangeContent,
230
+ refreshHandle: refreshHandle
203
231
  }), /*#__PURE__*/React.createElement(ContentPanel, {
204
232
  loading: loading,
205
233
  isCity: isCity,
@@ -1,7 +1,25 @@
1
- .interval-content {
2
- &-options {
3
- display: flex;
4
- justify-content: flex-end;
5
- margin-bottom: 16px;
6
- }
7
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+ .interval-content {
3
+ &-header {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ padding: 0 16px;
8
+ background: #fafafb;
9
+ > span {
10
+ color: var(--io-N-, #021429);
11
+ font-weight: 500;
12
+ font-size: 16px;
13
+ font-family: 'PingFang SC';
14
+ font-style: normal;
15
+ line-height: 20px; /* 125% */
16
+ letter-spacing: 0.016px;
17
+ white-space: nowrap;
18
+ }
19
+ }
20
+ &-options {
21
+ display: flex;
22
+ justify-content: flex-end;
23
+ margin-bottom: 16px;
24
+ }
25
+ }
@@ -48,6 +48,7 @@ export declare function searchDataParams(params: any): {
48
48
  userAttr: any;
49
49
  eventAttr: any;
50
50
  event: any;
51
+ encryptionType: any;
51
52
  } | null;
52
53
  associatedPreAttr: any;
53
54
  associatedNextAttr: any;
@@ -80,11 +80,11 @@ 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$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$dimension13, _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,
87
- userGroup: params.userGroup,
87
+ userGroup: params === null || params === void 0 ? void 0 : params.userGroup,
88
88
  start: searchCondition(params === null || params === void 0 ? void 0 : params.start),
89
89
  end: searchCondition(params === null || params === void 0 ? void 0 : params.end),
90
90
  dimension: params !== null && params !== void 0 && (_params$dimension = params.dimension) !== null && _params$dimension !== void 0 && _params$dimension.propCategory ? {
@@ -93,7 +93,8 @@ 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
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
97
98
  } : null,
98
99
  associatedPreAttr: params === null || params === void 0 ? void 0 : (_params$associatedPre = params.associatedPreAttr) === null || _params$associatedPre === void 0 ? void 0 : _params$associatedPre.id,
99
100
  associatedNextAttr: params === null || params === void 0 ? void 0 : (_params$associatedNex = params.associatedNextAttr) === null || _params$associatedNex === void 0 ? void 0 : _params$associatedNex.id,
@@ -35,7 +35,7 @@ export default (function () {
35
35
  };
36
36
  return /*#__PURE__*/React.createElement(DemoWrapper, {
37
37
  needMeta: true,
38
- defaultApp: 266
38
+ defaultApp: 461
39
39
  }, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
40
40
  onClick: function onClick() {
41
41
  return setIsDetail(false);
@@ -22,7 +22,7 @@ var defaultValue = {
22
22
  id: 7565,
23
23
  name: '测试6666',
24
24
  appId: 266,
25
- platform: 1,
25
+ platform: 0,
26
26
  userGroup: [933, 935],
27
27
  time: {
28
28
  unit: 'day',
@@ -32,7 +32,8 @@ export default (function () {
32
32
  console.log('onUserDrill:111', data, searchData);
33
33
  };
34
34
  return /*#__PURE__*/React.createElement(DemoWrapper, {
35
- needMeta: true
35
+ needMeta: true,
36
+ defaultApp: 3
36
37
  }, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
37
38
  onClick: function onClick() {
38
39
  return setIsDetail(false);
@@ -1,33 +1,33 @@
1
- /*滚动条凹槽的颜色,还可以设置边框属性 */
2
- ::-webkit-scrollbar-track-piece {
3
- background-color: #fff;
4
- -webkit-border-radius: 10px;
5
- -moz-border-radius: 10px;
6
- border-radius: 10px;
7
- }
8
-
9
- /*滚动条的宽度*/
10
- ::-webkit-scrollbar {
11
- width: 10px;
12
- height: 10px;
13
- }
14
-
15
- /*滚动条的设置*/
16
- ::-webkit-scrollbar-thumb {
17
- background-color: #cacdd4;
18
- background-clip: padding-box;
19
- border: 2px solid #fff;
20
- -webkit-border-radius: 10px;
21
- -moz-border-radius: 10px;
22
- border-radius: 10px;
23
- }
24
-
25
- /*滚动条鼠标移上去*/
26
- ::-webkit-scrollbar-thumb:hover {
27
- // background-color: #bbb;
28
- }
29
-
30
- ::-webkit-scrollbar-track-piece {
31
- width: 6px;
32
- height: 6px;
33
- }
1
+ /*滚动条凹槽的颜色,还可以设置边框属性 */
2
+ ::-webkit-scrollbar-track-piece {
3
+ background-color: #fff;
4
+ -webkit-border-radius: 10px;
5
+ -moz-border-radius: 10px;
6
+ border-radius: 10px;
7
+ }
8
+
9
+ /*滚动条的宽度*/
10
+ ::-webkit-scrollbar {
11
+ width: 10px;
12
+ height: 10px;
13
+ }
14
+
15
+ /*滚动条的设置*/
16
+ ::-webkit-scrollbar-thumb {
17
+ background-color: #cacdd4;
18
+ background-clip: padding-box;
19
+ border: 2px solid #fff;
20
+ -webkit-border-radius: 10px;
21
+ -moz-border-radius: 10px;
22
+ border-radius: 10px;
23
+ }
24
+
25
+ /*滚动条鼠标移上去*/
26
+ ::-webkit-scrollbar-thumb:hover {
27
+ // background-color: #bbb;
28
+ }
29
+
30
+ ::-webkit-scrollbar-track-piece {
31
+ width: 6px;
32
+ height: 6px;
33
+ }
@@ -12,12 +12,12 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import React, { useContext, useEffect, useState } from 'react';
14
14
  import { Spin } from 'antd';
15
- import { BizGlobalDataContext, BizTargetFromPanel } from '@zgfe/business-lib';
15
+ import { BizGlobalDataContext, BizTargetFromPanel, ajax } from '@zgfe/business-lib';
16
16
  import "./styles/index.less";
17
17
  import { IntervalContext } from "../../types";
18
18
  import { getInitDate } from "../../constants/initData";
19
19
  import EventContent from "../content";
20
- import { chartTypes } from "../../constants";
20
+ import { Apis, chartTypes } from "../../constants";
21
21
  var classPrefix = 'interval-module-container';
22
22
  var ModuleInterval = function ModuleInterval(props) {
23
23
  // 属性
@@ -26,7 +26,8 @@ var ModuleInterval = function ModuleInterval(props) {
26
26
  eventGroupList = _useContext.eventGroupList,
27
27
  eventEnvList = _useContext.eventEnvList,
28
28
  userPropList = _useContext.userPropList,
29
- userGroupList = _useContext.userGroupList;
29
+ userGroupList = _useContext.userGroupList,
30
+ useBizStoreLoading = _useContext.useBizStoreLoading;
30
31
  var _useState = useState(),
31
32
  _useState2 = _slicedToArray(_useState, 2),
32
33
  searchData = _useState2[0],
@@ -36,40 +37,57 @@ var ModuleInterval = function ModuleInterval(props) {
36
37
  _useState4 = _slicedToArray(_useState3, 2),
37
38
  loading = _useState4[0],
38
39
  setLoading = _useState4[1];
39
- // 指标标题
40
- var _useState5 = useState(),
40
+ // 刷新loading
41
+ var _useState5 = useState(false),
41
42
  _useState6 = _slicedToArray(_useState5, 2),
42
- title = _useState6[0],
43
- setTitle = _useState6[1];
43
+ refreshLoading = _useState6[0],
44
+ setRefreshLoading = _useState6[1];
45
+ // 指标标题
44
46
  var _useState7 = useState(),
45
47
  _useState8 = _slicedToArray(_useState7, 2),
46
- panelId = _useState8[0],
47
- setPanelId = _useState8[1];
48
+ title = _useState8[0],
49
+ setTitle = _useState8[1];
48
50
  var _useState9 = useState(),
49
51
  _useState10 = _slicedToArray(_useState9, 2),
50
- elementId = _useState10[0],
51
- setElementId = _useState10[1];
52
+ panelId = _useState10[0],
53
+ setPanelId = _useState10[1];
52
54
  var _useState11 = useState(),
53
55
  _useState12 = _slicedToArray(_useState11, 2),
54
- showList = _useState12[0],
55
- setShowList = _useState12[1];
56
- var _useState13 = useState(false),
57
- _useState14 = _slicedToArray(_useState13, 1),
58
- subjectEnable = _useState14[0];
56
+ elementId = _useState12[0],
57
+ setElementId = _useState12[1];
58
+ var _useState13 = useState(),
59
+ _useState14 = _slicedToArray(_useState13, 2),
60
+ showList = _useState14[0],
61
+ setShowList = _useState14[1];
62
+ var _useState15 = useState(false),
63
+ _useState16 = _slicedToArray(_useState15, 2),
64
+ subjectEnable = _useState16[0],
65
+ setSubjectEnable = _useState16[1];
59
66
  // 初始化
60
67
  useEffect(function () {
61
- if (!props.defaultValue) {
62
- initSearch();
63
- } else {
64
- var _props$defaultValue$d, _props$defaultValue$d2;
65
- setShowList(props.defaultValue.chosen_data);
66
- setPanelId(props.defaultValue.panelId);
67
- setElementId(props.defaultValue.id);
68
- setTitle(props.defaultValue.name);
69
- setSearchData(_objectSpread(_objectSpread({}, props.defaultValue.data), {}, {
70
- userGroup: ((_props$defaultValue$d = props.defaultValue.data) === null || _props$defaultValue$d === void 0 ? void 0 : _props$defaultValue$d.userGroup) || ((_props$defaultValue$d2 = props.defaultValue.data) === null || _props$defaultValue$d2 === void 0 ? void 0 : _props$defaultValue$d2.user_group) || [0]
71
- }));
72
- }
68
+ setLoading(true);
69
+ ajax(Apis.querySubjectDisplay, {
70
+ method: 'post',
71
+ data: {
72
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
73
+ }
74
+ }).then(function (res) {
75
+ if (!res) return;
76
+ setSubjectEnable(res.data);
77
+ // 设置初始值
78
+ if (!props.defaultValue) {
79
+ initSearch();
80
+ } else {
81
+ setShowList(props.defaultValue.chosen_data);
82
+ setPanelId(props.defaultValue.panelId);
83
+ setElementId(props.defaultValue.id);
84
+ setTitle(props.defaultValue.name);
85
+ setSearchData(props.defaultValue.data);
86
+ }
87
+ setTimeout(function () {
88
+ setLoading(false);
89
+ });
90
+ });
73
91
  }, []);
74
92
 
75
93
  // 查询条件初始化
@@ -77,13 +95,14 @@ var ModuleInterval = function ModuleInterval(props) {
77
95
  setSearchData({
78
96
  userGroup: (userGroupList === null || userGroupList === void 0 ? void 0 : userGroupList.length) > 0 ? [userGroupList[0].id] : [0],
79
97
  time: getInitDate(props.includeToday),
80
- chartType: 'boxplot'
98
+ chartType: 'boxplot',
99
+ platform: 0
81
100
  });
82
101
  };
83
102
  useEffect(function () {
84
103
  if (props.onChange) props.onChange(searchData);
85
104
  }, [searchData]);
86
- if (loading) {
105
+ if (loading || useBizStoreLoading) {
87
106
  return /*#__PURE__*/React.createElement("div", {
88
107
  className: classPrefix
89
108
  }, /*#__PURE__*/React.createElement(Spin, {
@@ -108,10 +127,10 @@ var ModuleInterval = function ModuleInterval(props) {
108
127
  styleOptions: chartTypes,
109
128
  afterEditTarget: props.afterEditTarget,
110
129
  children: ""
111
- }), !panelId && /*#__PURE__*/React.createElement("div", {
112
- className: "".concat(classPrefix, "-header-title")
113
- }, "\u95F4\u9694\u5206\u6790"), /*#__PURE__*/React.createElement(IntervalContext.Provider, {
130
+ }), /*#__PURE__*/React.createElement(IntervalContext.Provider, {
114
131
  value: {
132
+ refreshLoading: refreshLoading,
133
+ setRefreshLoading: setRefreshLoading,
115
134
  panelId: panelId,
116
135
  elementId: elementId,
117
136
  eventGroupList: eventGroupList,
@@ -1,66 +1,69 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
- .ant-card-body {
3
- padding: 0;
4
- }
5
-
6
- .interval-module-container {
7
- width: 100%;
8
- min-width: 1000px;
9
- height: 100%;
10
- background: #fafafb;
11
- &-loading {
12
- display: flex;
13
- align-items: center;
14
- justify-content: center;
15
- height: 100%;
16
- }
17
- .interval-layout {
18
- .biz-layout-collapse-container {
19
- height: 24px;
20
- }
21
- .biz-layout-collapse-handle {
22
- height: 24px;
23
- }
24
- }
25
- &-header-title {
26
- height: 48px;
27
- padding: 0px 24px;
28
- color: #021429;
29
- font-weight: 500;
30
- font-size: 16px;
31
- line-height: 48px;
32
- background: #fff;
33
- }
34
-
35
- .biz-layout-top {
36
- margin-top: 2px;
37
- padding-top: 0;
38
-
39
- .biz-user-group-header {
40
- .ant-space-item {
41
- color: #5f6085;
42
- }
43
- }
44
- }
45
-
46
- .ant-spin-container {
47
- width: 100%;
48
- height: auto;
49
- }
50
-
51
- .biz-select-option:not(.biz-select-option-multiple),
52
- .biz-attr-select-option {
53
- &.active {
54
- background: @primary-color !important;
55
- }
56
- }
57
-
58
- // 设置下拉框最大高度
59
- .biz-select-overlay {
60
- max-height: 300px;
61
- }
62
-
63
- .biz-layout-panel-content {
64
- height: auto;
65
- }
66
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+ .ant-card-body {
3
+ padding: 0;
4
+ }
5
+
6
+ .interval-module-container {
7
+ width: 100%;
8
+ min-width: 1000px;
9
+ height: 100%;
10
+ background: #fafafb;
11
+ &-loading {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ height: 100%;
16
+ }
17
+ .interval-layout {
18
+ .biz-layout-top {
19
+ padding: 0 16px 16px;
20
+ }
21
+ .biz-layout-collapse-container {
22
+ height: 24px;
23
+ }
24
+ .biz-layout-collapse-handle {
25
+ height: 24px;
26
+ }
27
+ }
28
+ &-header-title {
29
+ height: 48px;
30
+ padding: 0px 24px;
31
+ color: #021429;
32
+ font-weight: 500;
33
+ font-size: 16px;
34
+ line-height: 48px;
35
+ background: #fff;
36
+ }
37
+
38
+ .biz-layout-top {
39
+ margin-top: 2px;
40
+ padding-top: 0;
41
+
42
+ .biz-user-group-header {
43
+ .ant-space-item {
44
+ color: #5f6085;
45
+ }
46
+ }
47
+ }
48
+
49
+ .ant-spin-container {
50
+ width: 100%;
51
+ height: auto;
52
+ }
53
+
54
+ .biz-select-option:not(.biz-select-option-multiple),
55
+ .biz-attr-select-option {
56
+ &.active {
57
+ background: @primary-color !important;
58
+ }
59
+ }
60
+
61
+ // 设置下拉框最大高度
62
+ .biz-select-overlay {
63
+ max-height: 300px;
64
+ }
65
+
66
+ .biz-layout-panel-content {
67
+ height: auto;
68
+ }
69
+ }
@@ -71,6 +71,7 @@ export declare namespace IntervalProps {
71
71
  perValue?: number;
72
72
  peopleNum?: number;
73
73
  names?: string[];
74
+ originalNames?: string[];
74
75
  total?: number;
75
76
  children?: ColumnsDataType[];
76
77
  }