@zgfe/modules-event 0.0.2-event.13 → 0.0.2-event.14
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/es/components/common/index.js +3 -2
- package/es/components/common/styles/index.less +7 -8
- package/es/components/eventFilter/index.js +6 -2
- package/es/components/renderContent/index.js +1 -1
- package/es/components/table/index.js +1 -1
- package/es/modules/chart/index.js +1 -1
- package/es/modules/topPanel/index.js +3 -1
- package/es/utils/formData.js +1 -3
- package/package.json +2 -2
- /package/es/{components/table/images → style/image}/empty.png +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './styles/index.less';
|
|
3
|
+
import emptyImg from '../../style/image/empty.png';
|
|
3
4
|
var classPrefix = 'mi-common';
|
|
4
5
|
export var MiSpin = function MiSpin() {
|
|
5
6
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -9,8 +10,8 @@ export var MiSpin = function MiSpin() {
|
|
|
9
10
|
export var MiNone = function MiNone(props) {
|
|
10
11
|
return /*#__PURE__*/React.createElement("div", {
|
|
11
12
|
className: "".concat(classPrefix, "-none-container")
|
|
12
|
-
}, /*#__PURE__*/React.createElement("
|
|
13
|
-
|
|
13
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
14
|
+
src: emptyImg
|
|
14
15
|
}), /*#__PURE__*/React.createElement("span", {
|
|
15
16
|
className: "".concat(classPrefix, "-none-text")
|
|
16
17
|
}, " ", props.label));
|
|
@@ -10,18 +10,17 @@
|
|
|
10
10
|
background-size: contain;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
&-none-text {
|
|
14
|
-
color: @text-color;
|
|
15
|
-
font-size: 16px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
13
|
&-none {
|
|
19
|
-
width:
|
|
20
|
-
height:
|
|
21
|
-
|
|
14
|
+
width: 50px !important;
|
|
15
|
+
height: auto;
|
|
16
|
+
margin-top: 30px;
|
|
17
|
+
margin-bottom: 10px;
|
|
22
18
|
}
|
|
23
19
|
|
|
24
20
|
&-none-container {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
color: rgba(0, 0, 0, 0.25);
|
|
25
24
|
text-align: center;
|
|
26
25
|
}
|
|
27
26
|
}
|
|
@@ -44,6 +44,9 @@ var EventFilter = function EventFilter(props) {
|
|
|
44
44
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
45
45
|
bizAttributeSelectorValue = _useState12[0],
|
|
46
46
|
setBizAttributeSelectorValue = _useState12[1];
|
|
47
|
+
useEffect(function () {
|
|
48
|
+
console.log('bizAttributeSelectorValue', bizAttributeSelectorValue);
|
|
49
|
+
}, [bizAttributeSelectorValue]);
|
|
47
50
|
useEffect(function () {
|
|
48
51
|
if (props.value) {
|
|
49
52
|
var _data = props.value;
|
|
@@ -59,7 +62,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
59
62
|
}
|
|
60
63
|
if (_data.dimension) {
|
|
61
64
|
setBizAttributeSelectorValue(_objectSpread(_objectSpread({}, _data.dimension), {}, {
|
|
62
|
-
key: _data.dimension.propCategory
|
|
65
|
+
key: _data.dimension.propCategory + '-' + _data.dimension.value
|
|
63
66
|
}));
|
|
64
67
|
}
|
|
65
68
|
}
|
|
@@ -105,6 +108,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
105
108
|
setCount(0);
|
|
106
109
|
};
|
|
107
110
|
var onChangeAttr = function onChangeAttr(attr) {
|
|
111
|
+
console.log('细分属性', attr);
|
|
108
112
|
if (attr === undefined) {
|
|
109
113
|
setBizAttributeSelectorValue(undefined);
|
|
110
114
|
} else {
|
|
@@ -113,7 +117,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
113
117
|
propCategory: attr.propCategory,
|
|
114
118
|
category: attr.category,
|
|
115
119
|
value: _value,
|
|
116
|
-
key: attr.propCategory
|
|
120
|
+
key: attr.propCategory + '-' + _value
|
|
117
121
|
});
|
|
118
122
|
}
|
|
119
123
|
};
|
|
@@ -44,7 +44,7 @@ var ContentPanel = function ContentPanel(props) {
|
|
|
44
44
|
showList: showList
|
|
45
45
|
}) : /*#__PURE__*/React.createElement(MiNone, {
|
|
46
46
|
label: "\u6682\u65E0\u6570\u636E"
|
|
47
|
-
})), eventData && eventData.
|
|
47
|
+
})), eventData && eventData.series.length > 0 ? /*#__PURE__*/React.createElement(EventChart, {
|
|
48
48
|
type: "grid",
|
|
49
49
|
dataSource: eventData,
|
|
50
50
|
params: searchData,
|
|
@@ -19,7 +19,7 @@ import { formTableData, getColumns } from '../../utils/formData';
|
|
|
19
19
|
import './styles/index.less';
|
|
20
20
|
import { getValue } from '../../modules/content/utils';
|
|
21
21
|
import { EventContext } from '../../types';
|
|
22
|
-
import emptyImg from '
|
|
22
|
+
import emptyImg from '../../style/image/empty.png';
|
|
23
23
|
var classPrefix = 'mi-table';
|
|
24
24
|
var EventTable = function EventTable(props) {
|
|
25
25
|
var dataSource = props.dataSource,
|
|
@@ -18,7 +18,7 @@ import _ from 'lodash';
|
|
|
18
18
|
import moment from 'moment';
|
|
19
19
|
import { Apis, chartColors } from '../../constants';
|
|
20
20
|
import { Spin } from 'antd';
|
|
21
|
-
import emptyImg from '../../
|
|
21
|
+
import emptyImg from '../../style/image/empty.png';
|
|
22
22
|
var classPrefix = 'mi-table';
|
|
23
23
|
var EventChart = function EventChart(props) {
|
|
24
24
|
var params = props.params;
|
|
@@ -32,7 +32,9 @@ var TopPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
if (allData.userGroup) {
|
|
35
|
-
_data.userGroup = allData.userGroup
|
|
35
|
+
_data.userGroup = allData.userGroup.filter(function (item) {
|
|
36
|
+
return item !== undefined;
|
|
37
|
+
});
|
|
36
38
|
if (_data.userGroup.length <= 0) _data.userGroup = [0];
|
|
37
39
|
}
|
|
38
40
|
if (data.filterConditions) {
|
package/es/utils/formData.js
CHANGED
|
@@ -140,7 +140,7 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
140
140
|
return a["field".concat(i)] - b["field".concat(i)];
|
|
141
141
|
},
|
|
142
142
|
render: function render(text, record) {
|
|
143
|
-
var click = text > 0 && searchData.analysisIndex === 'number' ? true : false;
|
|
143
|
+
var click = text > 0 && (searchData.analysisIndex === 'number' ? true : false);
|
|
144
144
|
return /*#__PURE__*/React.createElement("div", {
|
|
145
145
|
className: "".concat(classPrefix, "-table-td-link ").concat(click ? '' : 'not-to-detail'),
|
|
146
146
|
onClick: function onClick() {
|
|
@@ -182,12 +182,10 @@ export function getUserGroupsCompareData(data) {
|
|
|
182
182
|
if (item.names[1] === _item.names[1] && index !== _index) {
|
|
183
183
|
_series.push(_item);
|
|
184
184
|
delete _data.series[_index];
|
|
185
|
-
console.log(3333, _data.series);
|
|
186
185
|
}
|
|
187
186
|
});
|
|
188
187
|
delete _data.series[index];
|
|
189
188
|
});
|
|
190
|
-
console.log('_tempData', _series);
|
|
191
189
|
_data.series = _series;
|
|
192
190
|
return _data;
|
|
193
191
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-event",
|
|
3
|
-
"version": "0.0.2-event.
|
|
3
|
+
"version": "0.0.2-event.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react": "^16.12.0 || ^17.0.0",
|
|
50
50
|
"yorkie": "^2.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "1aca522da45c7948d151b48080319e719481738d",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"react-copy-to-clipboard": "^5.1.0",
|
|
55
55
|
"react-highlight": "^0.15.0"
|
|
File without changes
|