@zgfe/modules-event 0.0.2-event.72 → 0.0.2-event.75
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/eventFilter/styles/index.less +1 -1
- package/es/components/table/styles/index.less +1 -1
- package/es/components/topBar/index.js +1 -1
- package/es/components/topBar/styles/index.less +2 -0
- package/es/modules/chart/index.js +1 -2
- package/es/modules/content/index.js +5 -1
- package/es/modules/home/demo/edit.js +22 -22
- package/es/modules/topPanel/index.js +1 -0
- package/es/utils/formData.js +20 -14
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
&-table-header {
|
|
7
7
|
display: flex;
|
|
8
|
+
align-items: center;
|
|
8
9
|
justify-content: space-between;
|
|
9
10
|
height: 50px;
|
|
10
11
|
margin-bottom: -1px;
|
|
@@ -15,7 +16,6 @@
|
|
|
15
16
|
border-radius: 8px 8px 0 0;
|
|
16
17
|
> :nth-child(2) {
|
|
17
18
|
display: flex;
|
|
18
|
-
margin-top: 9px;
|
|
19
19
|
> :nth-child(1) {
|
|
20
20
|
margin-right: 16px;
|
|
21
21
|
}
|
|
@@ -100,7 +100,7 @@ var TopBar = function TopBar(props) {
|
|
|
100
100
|
module: 'event'
|
|
101
101
|
}, searchData),
|
|
102
102
|
styleOptions: options,
|
|
103
|
-
showList: showList,
|
|
103
|
+
showList: (searchData === null || searchData === void 0 ? void 0 : searchData.chartType) !== 'map' ? showList : [],
|
|
104
104
|
onCancel: function onCancel() {
|
|
105
105
|
return closeHandle('panel');
|
|
106
106
|
},
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
&-panel {
|
|
9
9
|
margin-right: 16px;
|
|
10
10
|
.ant-btn {
|
|
11
|
+
background: #fff;
|
|
11
12
|
border-color: #f2f3f4;
|
|
12
13
|
}
|
|
13
14
|
.ant-btn:hover {
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
&-scene {
|
|
18
19
|
margin-right: 16px;
|
|
19
20
|
.ant-btn {
|
|
21
|
+
background: #fff;
|
|
20
22
|
border-color: #f2f3f4;
|
|
21
23
|
}
|
|
22
24
|
.ant-btn:hover {
|
|
@@ -158,8 +158,7 @@ var EventChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
158
158
|
colors: showColors,
|
|
159
159
|
xRotate: chartType === 'bar' && dataSource.series.length > 5 ? 40 : 0,
|
|
160
160
|
reverseXAxis: chartType === 'bar',
|
|
161
|
-
isCity: isCity
|
|
162
|
-
radius: ['30%', '75%']
|
|
161
|
+
isCity: isCity
|
|
163
162
|
}));
|
|
164
163
|
}
|
|
165
164
|
};
|
|
@@ -146,7 +146,11 @@ var EventContent = function EventContent(props) {
|
|
|
146
146
|
ajaxFlag = flag;
|
|
147
147
|
data.id ? setEventId(data.id) : setEventId(-1);
|
|
148
148
|
setSearchData(function (_searchData) {
|
|
149
|
-
|
|
149
|
+
console.log(666, _searchData, data);
|
|
150
|
+
var _data = _objectSpread(_objectSpread({}, _searchData), {}, {
|
|
151
|
+
dimension: data.dimension,
|
|
152
|
+
filters: data.filters
|
|
153
|
+
}, data);
|
|
150
154
|
if (_data.dimension) {
|
|
151
155
|
var _getValue;
|
|
152
156
|
var _attrName = (_getValue = getValue(_data.dimension, eventGroupList, eventEnvList, userPropList)) === null || _getValue === void 0 ? void 0 : _getValue.name;
|
|
@@ -9,33 +9,33 @@ import { DemoWrapper, setGlobalConfig } from '@zgfe/business-lib';
|
|
|
9
9
|
import { ModuleEvent } from '../../../index';
|
|
10
10
|
import { requestConfig } from '../../../utils/ajaxConfig';
|
|
11
11
|
import { Button } from 'antd';
|
|
12
|
-
var
|
|
12
|
+
var defaultValue2 = {
|
|
13
13
|
enlarged: 0,
|
|
14
|
-
id:
|
|
14
|
+
id: 2551,
|
|
15
15
|
isPerfect: 1,
|
|
16
|
-
name: '
|
|
16
|
+
name: '省市000',
|
|
17
17
|
reqParam: {
|
|
18
18
|
data: {
|
|
19
|
-
|
|
19
|
+
appId: 251,
|
|
20
|
+
platform: 0,
|
|
20
21
|
module: 'event',
|
|
22
|
+
userGroup: [0],
|
|
21
23
|
time: {
|
|
22
|
-
begin: '2023-09-
|
|
23
|
-
end: '2023-09-
|
|
24
|
+
begin: '2023-09-17',
|
|
25
|
+
end: '2023-09-24',
|
|
24
26
|
relative: [7, 0],
|
|
25
27
|
unit: 'day'
|
|
26
28
|
},
|
|
27
|
-
analysisIndex: 'number',
|
|
28
29
|
chartType: 'map',
|
|
29
|
-
id:
|
|
30
|
-
name: '
|
|
30
|
+
id: 16816,
|
|
31
|
+
name: '加购商品',
|
|
31
32
|
dimension: {
|
|
32
33
|
propCategory: 'envProp',
|
|
33
34
|
category: 'fixed',
|
|
34
35
|
value: 'area',
|
|
35
36
|
id: 0
|
|
36
37
|
},
|
|
37
|
-
|
|
38
|
-
appId: 251
|
|
38
|
+
analysisIndex: 'number'
|
|
39
39
|
},
|
|
40
40
|
chosen_data: []
|
|
41
41
|
},
|
|
@@ -43,31 +43,31 @@ var defaultValue = {
|
|
|
43
43
|
unExistEvent: '',
|
|
44
44
|
renderType: 'normal',
|
|
45
45
|
source: 'PANEL',
|
|
46
|
-
panelId:
|
|
46
|
+
panelId: 342,
|
|
47
47
|
panelType: 'edit',
|
|
48
48
|
data: {
|
|
49
|
-
|
|
49
|
+
appId: 251,
|
|
50
|
+
platform: 0,
|
|
50
51
|
module: 'event',
|
|
52
|
+
userGroup: [0],
|
|
51
53
|
time: {
|
|
52
|
-
begin: '2023-09-
|
|
53
|
-
end: '2023-09-
|
|
54
|
+
begin: '2023-09-17',
|
|
55
|
+
end: '2023-09-24',
|
|
54
56
|
relative: [7, 0],
|
|
55
57
|
unit: 'day'
|
|
56
58
|
},
|
|
57
|
-
analysisIndex: 'number',
|
|
58
59
|
chartType: 'map',
|
|
59
|
-
id:
|
|
60
|
-
name: '
|
|
60
|
+
id: 16816,
|
|
61
|
+
name: '加购商品',
|
|
61
62
|
dimension: {
|
|
62
63
|
propCategory: 'envProp',
|
|
63
64
|
category: 'fixed',
|
|
64
65
|
value: 'area',
|
|
65
66
|
id: 0
|
|
66
67
|
},
|
|
67
|
-
|
|
68
|
-
appId: 251
|
|
68
|
+
analysisIndex: 'number'
|
|
69
69
|
},
|
|
70
|
-
chosen_data: []
|
|
70
|
+
chosen_data: ['北京市']
|
|
71
71
|
};
|
|
72
72
|
export default (function () {
|
|
73
73
|
var _useState = useState(false),
|
|
@@ -78,7 +78,7 @@ export default (function () {
|
|
|
78
78
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
79
79
|
detailParams = _useState4[0],
|
|
80
80
|
setDetailParams = _useState4[1];
|
|
81
|
-
var _useState5 = useState(
|
|
81
|
+
var _useState5 = useState(defaultValue2),
|
|
82
82
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
83
83
|
searchParams = _useState6[0],
|
|
84
84
|
setSearchParams = _useState6[1];
|
|
@@ -24,6 +24,7 @@ var TopPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
24
24
|
form = _Form$useForm2[0];
|
|
25
25
|
var userGroup = value.userGroup;
|
|
26
26
|
var onValuesChange = function onValuesChange(data, allData) {
|
|
27
|
+
console.log('用户组和事件变更', data, allData);
|
|
27
28
|
var _data = {};
|
|
28
29
|
if (allData.filterConditions) {
|
|
29
30
|
if (allData.filterConditions.id !== -100) {
|
package/es/utils/formData.js
CHANGED
|
@@ -59,24 +59,27 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
59
59
|
ellipsis: true,
|
|
60
60
|
fixed: true,
|
|
61
61
|
render: function render(val) {
|
|
62
|
-
return /*#__PURE__*/React.createElement(
|
|
63
|
-
className: "tooltip-name-box"
|
|
62
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "tooltip-name-box"
|
|
64
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
64
65
|
title: val
|
|
65
66
|
}, /*#__PURE__*/React.createElement("div", {
|
|
66
67
|
className: "tooltip-name-box-market"
|
|
67
68
|
}, util.strMiddleSplit(val, {
|
|
68
|
-
maxLength:
|
|
69
|
-
beginLength:
|
|
70
|
-
endLength:
|
|
69
|
+
maxLength: 9,
|
|
70
|
+
beginLength: 9,
|
|
71
|
+
endLength: 0,
|
|
71
72
|
replaceStr: '...'
|
|
72
|
-
})), /*#__PURE__*/React.createElement(
|
|
73
|
+
}))), /*#__PURE__*/React.createElement(Tooltip, {
|
|
74
|
+
title: "\u590D\u5236"
|
|
75
|
+
}, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
73
76
|
text: val,
|
|
74
77
|
onCopy: function onCopy() {
|
|
75
78
|
return message.success('复制成功!');
|
|
76
79
|
}
|
|
77
80
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
78
81
|
type: "fuzhi1"
|
|
79
|
-
})));
|
|
82
|
+
}))));
|
|
80
83
|
}
|
|
81
84
|
});
|
|
82
85
|
}
|
|
@@ -94,8 +97,9 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
94
97
|
fixed: true,
|
|
95
98
|
render: function render(val) {
|
|
96
99
|
var _val = val;
|
|
97
|
-
return /*#__PURE__*/React.createElement(
|
|
98
|
-
className: "tooltip-name-box"
|
|
100
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
101
|
+
className: "tooltip-name-box"
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
99
103
|
title: _val
|
|
100
104
|
}, /*#__PURE__*/React.createElement("div", {
|
|
101
105
|
className: "tooltip-name-box-market",
|
|
@@ -106,18 +110,20 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
106
110
|
type: "shoucang",
|
|
107
111
|
className: "".concat(marketEventNameList.indexOf(_val) === -1 ? 'notshoucang' : '')
|
|
108
112
|
}), util.strMiddleSplit(_val, {
|
|
109
|
-
maxLength:
|
|
110
|
-
beginLength:
|
|
111
|
-
endLength:
|
|
113
|
+
maxLength: 9,
|
|
114
|
+
beginLength: 9,
|
|
115
|
+
endLength: 0,
|
|
112
116
|
replaceStr: '...'
|
|
113
|
-
})), /*#__PURE__*/React.createElement(
|
|
117
|
+
}))), /*#__PURE__*/React.createElement(Tooltip, {
|
|
118
|
+
title: "\u590D\u5236"
|
|
119
|
+
}, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
114
120
|
text: _val,
|
|
115
121
|
onCopy: function onCopy() {
|
|
116
122
|
return message.success('复制成功!');
|
|
117
123
|
}
|
|
118
124
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
119
125
|
type: "fuzhi1"
|
|
120
|
-
})));
|
|
126
|
+
}))));
|
|
121
127
|
}
|
|
122
128
|
});
|
|
123
129
|
}
|
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.75",
|
|
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": "bcf47f0e0dec3bc95fc1f23c0406a9f680936783",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"react-copy-to-clipboard": "^5.1.0",
|
|
55
55
|
"react-highlight": "^0.15.0"
|