@zgfe/modules-interval 1.0.23-zhongyuan.0 → 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.
- package/README.md +35 -35
- package/dist/esm/components/common/styles/index.less +40 -40
- package/dist/esm/components/eventFilter/styles/index.less +39 -39
- package/dist/esm/components/renderContent/styles/index.less +36 -36
- package/dist/esm/components/searchPanel/styles/index.less +71 -71
- package/dist/esm/components/table/styles/index.less +138 -138
- package/dist/esm/components/topBar/styles/index.less +16 -16
- package/dist/esm/constants/apis.js +4 -4
- package/dist/esm/constants/fields.js +4 -4
- package/dist/esm/modules/chart/index.less +58 -58
- package/dist/esm/modules/content/styles/index.less +25 -25
- package/dist/esm/modules/content/utils.d.ts +1 -0
- package/dist/esm/modules/content/utils.js +3 -2
- package/dist/esm/modules/home/demo/styles/index.less +33 -33
- package/dist/esm/modules/home/styles/index.less +69 -69
- package/dist/esm/modules/home/types.d.ts +1 -0
- package/dist/esm/modules/topPanel/styles/index.less +219 -219
- package/dist/esm/style/image/empty.png +0 -0
- package/dist/esm/style/image/ring.svg +9 -9
- package/dist/esm/style/index.less +67 -67
- package/dist/esm/types.js +6 -6
- package/dist/esm/utils/ajaxConfig.js +5 -5
- package/dist/esm/utils/formData.d.ts +4 -0
- package/dist/esm/utils/formData.js +5 -2
- package/dist/esm/utils/util.js +28 -28
- package/package.json +7 -7
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
.interval-form-data {
|
|
2
|
-
&-table-td {
|
|
3
|
-
padding: 0 !important;
|
|
4
|
-
|
|
5
|
-
.ant-table-column-sorters {
|
|
6
|
-
justify-content: end !important;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
&-show {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
min-width: 60px;
|
|
14
|
-
height: 48px;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
|
|
17
|
-
span {
|
|
18
|
-
width: 10px;
|
|
19
|
-
height: 10px;
|
|
20
|
-
border-radius: 50%;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-name {
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
|
|
29
|
-
.bsicon {
|
|
30
|
-
margin-right: 4px;
|
|
31
|
-
color: #fd9f41;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-content {
|
|
35
|
-
display: inline-block;
|
|
36
|
-
max-width: 300px;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
white-space: nowrap;
|
|
39
|
-
text-overflow: ellipsis;
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-link {
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
|
|
47
|
-
&:hover {
|
|
48
|
-
color: #165dff;
|
|
49
|
-
text-decoration: underline;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.interval-drill {
|
|
55
|
-
display: block;
|
|
56
|
-
.bsicon {
|
|
57
|
-
display: none;
|
|
58
|
-
margin-right: 4px;
|
|
59
|
-
}
|
|
60
|
-
&:hover {
|
|
61
|
-
color: @primary-color;
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
.bsicon {
|
|
64
|
-
display: inline;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
.interval-form-data {
|
|
2
|
+
&-table-td {
|
|
3
|
+
padding: 0 !important;
|
|
4
|
+
|
|
5
|
+
.ant-table-column-sorters {
|
|
6
|
+
justify-content: end !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&-show {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
min-width: 60px;
|
|
14
|
+
height: 48px;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
|
|
17
|
+
span {
|
|
18
|
+
width: 10px;
|
|
19
|
+
height: 10px;
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-name {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
|
|
29
|
+
.bsicon {
|
|
30
|
+
margin-right: 4px;
|
|
31
|
+
color: #fd9f41;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-content {
|
|
35
|
+
display: inline-block;
|
|
36
|
+
max-width: 300px;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-link {
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
color: #165dff;
|
|
49
|
+
text-decoration: underline;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.interval-drill {
|
|
55
|
+
display: block;
|
|
56
|
+
.bsicon {
|
|
57
|
+
display: none;
|
|
58
|
+
margin-right: 4px;
|
|
59
|
+
}
|
|
60
|
+
&:hover {
|
|
61
|
+
color: @primary-color;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
.bsicon {
|
|
64
|
+
display: inline;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
package/dist/esm/types.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* 接口option封装
|
|
5
|
-
* @param url url
|
|
6
|
-
* @param options 操作
|
|
7
|
-
* @returns
|
|
3
|
+
/**
|
|
4
|
+
* 接口option封装
|
|
5
|
+
* @param url url
|
|
6
|
+
* @param options 操作
|
|
7
|
+
* @returns
|
|
8
8
|
*/
|
|
9
9
|
function setOptionWapper(url, options) {
|
|
10
10
|
var reqOption = _.cloneDeep(options);
|
|
@@ -38,9 +38,11 @@ export declare function formTableData(originalData: ChartData): {
|
|
|
38
38
|
total: number;
|
|
39
39
|
peopleNum: number;
|
|
40
40
|
names: string[];
|
|
41
|
+
originalNames: string[];
|
|
41
42
|
}[] | {
|
|
42
43
|
key: number;
|
|
43
44
|
time: string;
|
|
45
|
+
originalNames: string[];
|
|
44
46
|
max: number;
|
|
45
47
|
Q1: number;
|
|
46
48
|
median: number;
|
|
@@ -61,12 +63,14 @@ export declare function formTableData(originalData: ChartData): {
|
|
|
61
63
|
total: number;
|
|
62
64
|
peopleNum: number;
|
|
63
65
|
names: string[];
|
|
66
|
+
originalNames: string[];
|
|
64
67
|
}[];
|
|
65
68
|
}[] | undefined;
|
|
66
69
|
type ChartData = {
|
|
67
70
|
appData: {
|
|
68
71
|
series?: {
|
|
69
72
|
names: string[];
|
|
73
|
+
originalNames: string[];
|
|
70
74
|
values: number[][];
|
|
71
75
|
total: number[];
|
|
72
76
|
}[];
|
|
@@ -188,7 +188,8 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
if (searchParam.dimension) {
|
|
191
|
-
params.params.groupValue =
|
|
191
|
+
params.params.groupValue = record.originalNames ? record.originalNames[0] : undefined;
|
|
192
|
+
params.params.groupValueEncry = searchParam.dimension.encryptionType > 0;
|
|
192
193
|
}
|
|
193
194
|
if (/\d{4}-\d{2}-\d{2}/.test(record.time || '')) {
|
|
194
195
|
params.params.time.begin = record.time.split('|')[0];
|
|
@@ -236,6 +237,7 @@ function createNewArray(data) {
|
|
|
236
237
|
return {
|
|
237
238
|
key: i + 1,
|
|
238
239
|
time: item.names[0],
|
|
240
|
+
originalNames: item.originalNames,
|
|
239
241
|
max: item.total[0] || 0,
|
|
240
242
|
Q1: item.total[1] || 0,
|
|
241
243
|
median: item.total[2] || 0,
|
|
@@ -298,7 +300,8 @@ function getChildrenData(data, index) {
|
|
|
298
300
|
perValue: values[i][5] || 0,
|
|
299
301
|
total: values[i][6] || 0,
|
|
300
302
|
peopleNum: values[i][7] || 0,
|
|
301
|
-
names: firstSeries.names
|
|
303
|
+
names: firstSeries.names,
|
|
304
|
+
originalNames: firstSeries.originalNames
|
|
302
305
|
};
|
|
303
306
|
});
|
|
304
307
|
}
|
package/dist/esm/utils/util.js
CHANGED
|
@@ -29,11 +29,11 @@ var util = {
|
|
|
29
29
|
equal: function equal(a, b) {
|
|
30
30
|
return JSON.stringify(a) === JSON.stringify(b);
|
|
31
31
|
},
|
|
32
|
-
/**
|
|
33
|
-
* 获取指定范围的随机数
|
|
34
|
-
* @param min
|
|
35
|
-
* @param max
|
|
36
|
-
* @returns {*}
|
|
32
|
+
/**
|
|
33
|
+
* 获取指定范围的随机数
|
|
34
|
+
* @param min
|
|
35
|
+
* @param max
|
|
36
|
+
* @returns {*}
|
|
37
37
|
*/
|
|
38
38
|
random: function random(min, max) {
|
|
39
39
|
return Math.round(Math.random() * (max - min)) + min;
|
|
@@ -68,42 +68,42 @@ var util = {
|
|
|
68
68
|
}
|
|
69
69
|
return option;
|
|
70
70
|
},
|
|
71
|
-
/**
|
|
72
|
-
* 将数字转为千分位分割格式
|
|
73
|
-
* @param num
|
|
74
|
-
* @returns {string}
|
|
71
|
+
/**
|
|
72
|
+
* 将数字转为千分位分割格式
|
|
73
|
+
* @param num
|
|
74
|
+
* @returns {string}
|
|
75
75
|
*/
|
|
76
76
|
toThousands: function toThousands(num) {
|
|
77
77
|
var source = String(num).split('.'); // 按小数点分成2部分
|
|
78
78
|
source[0] = source[0].replace(new RegExp('(\\d)(?=(\\d{3})+$)', 'ig'), '$1,'); // 只将整数部分进行都好分割
|
|
79
79
|
return source.join('.'); // 再将小数部分合并进来
|
|
80
80
|
},
|
|
81
|
-
/**
|
|
82
|
-
* 为单数前补0
|
|
83
|
-
* @param num
|
|
84
|
-
* @returns {string}
|
|
81
|
+
/**
|
|
82
|
+
* 为单数前补0
|
|
83
|
+
* @param num
|
|
84
|
+
* @returns {string}
|
|
85
85
|
*/
|
|
86
86
|
toDoubleNumber: function toDoubleNumber(num) {
|
|
87
87
|
// num += ''
|
|
88
88
|
var num2 = num.toString();
|
|
89
89
|
return num > 9 ? num2 : '0' + num2;
|
|
90
90
|
},
|
|
91
|
-
/**
|
|
92
|
-
* 日期格式化
|
|
93
|
-
* @param date
|
|
94
|
-
* @param formatter
|
|
95
|
-
* @returns {string}
|
|
91
|
+
/**
|
|
92
|
+
* 日期格式化
|
|
93
|
+
* @param date
|
|
94
|
+
* @param formatter
|
|
95
|
+
* @returns {string}
|
|
96
96
|
*/
|
|
97
97
|
dateFormat: function dateFormat() {
|
|
98
98
|
var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
|
|
99
99
|
var formatter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
|
|
100
100
|
return formatter.replace('yyyy', date.getFullYear()).replace('mm', this.toDoubleNumber(date.getMonth() + 1)).replace('dd', this.toDoubleNumber(date.getDate()));
|
|
101
101
|
},
|
|
102
|
-
/**
|
|
103
|
-
* 日期格式化
|
|
104
|
-
* @param date
|
|
105
|
-
* @param formatter
|
|
106
|
-
* @returns {string}
|
|
102
|
+
/**
|
|
103
|
+
* 日期格式化
|
|
104
|
+
* @param date
|
|
105
|
+
* @param formatter
|
|
106
|
+
* @returns {string}
|
|
107
107
|
*/
|
|
108
108
|
timeFormat: function timeFormat() {
|
|
109
109
|
var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
|
|
@@ -128,11 +128,11 @@ var util = {
|
|
|
128
128
|
return formatter.replace('hh', this.toDoubleNumber(h)).replace('mm', this.toDoubleNumber(m)).replace('ss', this.toDoubleNumber(s));
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
|
-
/**
|
|
132
|
-
* 从中间拆分字符串,长度超出的话,解析为xxx...xxx
|
|
133
|
-
* @param str
|
|
134
|
-
* @param config
|
|
135
|
-
* @returns {string}
|
|
131
|
+
/**
|
|
132
|
+
* 从中间拆分字符串,长度超出的话,解析为xxx...xxx
|
|
133
|
+
* @param str
|
|
134
|
+
* @param config
|
|
135
|
+
* @returns {string}
|
|
136
136
|
*/
|
|
137
137
|
strMiddleSplit: function strMiddleSplit(str) {
|
|
138
138
|
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
package/package.json
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-interval",
|
|
3
|
-
"version": "1.0.23-zhongyuan.
|
|
3
|
+
"version": "1.0.23-zhongyuan.1",
|
|
4
|
+
"private": false,
|
|
4
5
|
"module": "dist/esm/index.js",
|
|
5
6
|
"typings": "dist/esm/index.d.ts",
|
|
6
|
-
"private": false,
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"access": "public"
|
|
9
|
-
},
|
|
10
7
|
"files": [
|
|
11
8
|
"dist"
|
|
12
9
|
],
|
|
@@ -45,7 +42,7 @@
|
|
|
45
42
|
"@types/uuid": "^9.0.2",
|
|
46
43
|
"@umijs/fabric": "^2.8.1",
|
|
47
44
|
"@umijs/test": "^3.0.5",
|
|
48
|
-
"@zgfe/business-lib": "1.2.70-hxd.
|
|
45
|
+
"@zgfe/business-lib": "1.2.70-hxd.10",
|
|
49
46
|
"antd": "^4.22.6",
|
|
50
47
|
"dumi": "^1.1.0",
|
|
51
48
|
"echarts": "^5.3.2",
|
|
@@ -59,7 +56,10 @@
|
|
|
59
56
|
"umi-request": "^1.4.0",
|
|
60
57
|
"yorkie": "^2.0.0"
|
|
61
58
|
},
|
|
62
|
-
"
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public"
|
|
61
|
+
},
|
|
62
|
+
"gitHead": "e0ab09536ecccea2965d6c3e0e73ba24b31fea65",
|
|
63
63
|
"gitHooks": {
|
|
64
64
|
"pre-commit": "lint-staged"
|
|
65
65
|
}
|