@zgfe/business-lib 1.0.0-beta.6 → 1.0.3
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/analysisLayout/demo/index.js +4 -1
- package/es/analysisLayout/index.d.ts +1 -28
- package/es/analysisLayout/index.js +38 -48
- package/es/analysisLayout/index.less +1 -1
- package/es/assets/styles/chunks.less +143 -0
- package/es/assets/styles/inner.less +3 -0
- package/es/assets/styles/resetAntd.less +398 -0
- package/es/assets/styles/variable.less +21 -0
- package/es/assets/theme.d.ts +5 -0
- package/es/assets/theme.js +4 -0
- package/es/attrConditions/components/operateList.d.ts +8 -0
- package/es/attrConditions/components/operateList.js +83 -0
- package/es/attrConditions/components/stringList.d.ts +9 -0
- package/es/attrConditions/components/stringList.js +168 -0
- package/es/attrConditions/components/valuesList.d.ts +10 -0
- package/es/attrConditions/components/valuesList.js +188 -0
- package/es/{attributeSelector/demo/multi.d.ts → attrConditions/demo/group.d.ts} +0 -0
- package/es/attrConditions/demo/group.js +82 -0
- package/es/{globalAttributes → attrConditions}/demo/index.d.ts +0 -0
- package/es/{datePicker/demo/form.js → attrConditions/demo/index.js} +43 -23
- package/es/attrConditions/group.d.ts +5 -0
- package/es/attrConditions/group.js +183 -0
- package/es/attrConditions/index.d.ts +6 -0
- package/es/attrConditions/index.js +160 -0
- package/es/attrConditions/styles/group.less +49 -0
- package/es/attrConditions/styles/index.less +94 -0
- package/es/attrConditions/types.d.ts +63 -0
- package/es/attrConditions/types.js +19 -0
- package/es/attrConditions/utils/operates.d.ts +16 -0
- package/es/attrConditions/utils/operates.js +67 -0
- package/es/attributeSelector/demo/index.d.ts +3 -0
- package/es/attributeSelector/demo/{singleForm.js → index.js} +42 -44
- package/es/attributeSelector/index.d.ts +4 -111
- package/es/attributeSelector/index.js +88 -543
- package/es/attributeSelector/listPanel.d.ts +4 -0
- package/es/attributeSelector/listPanel.js +208 -0
- package/es/attributeSelector/option.d.ts +15 -0
- package/es/attributeSelector/option.js +53 -0
- package/es/attributeSelector/styles/index.less +100 -0
- package/es/attributeSelector/types.d.ts +79 -0
- package/es/attributeSelector/types.js +15 -0
- package/es/attributeSelector/util.d.ts +7 -0
- package/es/attributeSelector/util.js +69 -0
- package/es/chart/demo/pie.js +1 -0
- package/es/chart/index.d.ts +2 -96
- package/es/chart/index.js +28 -35
- package/es/chart/styles/index.less +50 -0
- package/es/chart/types.d.ts +46 -0
- package/es/chart/{type.js → types.js} +0 -0
- package/es/chart/util/{chartConfig.d.ts → chartOptionConfig.d.ts} +4 -35
- package/es/chart/util/{chartConfig.js → chartOptionConfig.js} +45 -111
- package/es/chart/util/formatData.d.ts +3 -7
- package/es/chart/util/formatData.js +47 -26
- package/es/chart/util/formatOption.d.ts +2 -1
- package/es/chart/util/formatOption.js +22 -9
- package/es/chart/util/mapUtil.d.ts +3 -3
- package/es/chart/util/mapUtil.js +9 -19
- package/es/commonStyle/icon.less +116 -112
- package/es/commonStyle/select.less +1 -1
- package/es/commonStyle/theme.less +520 -473
- package/es/components/iconFont.js +4 -2
- package/es/context/index.d.ts +16 -0
- package/es/context/index.js +3 -0
- package/es/datePicker/datePicker.d.ts +10 -0
- package/es/datePicker/datePicker.js +115 -0
- package/es/datePicker/demo/index.d.ts +1 -0
- package/es/datePicker/demo/index.js +9 -2
- package/es/datePicker/index.d.ts +4 -27
- package/es/datePicker/index.js +72 -148
- package/es/datePicker/styles/index.less +48 -0
- package/es/datePicker/types.d.ts +24 -0
- package/es/{eventSelector/type.js → datePicker/types.js} +0 -0
- package/es/datePicker/utils.d.ts +6 -0
- package/es/datePicker/utils.js +70 -0
- package/es/dialog/components/itemNode.d.ts +10 -0
- package/es/dialog/components/itemNode.js +109 -0
- package/es/dialog/components/list.d.ts +3 -13
- package/es/dialog/components/list.js +15 -12
- package/es/dialog/components/selectToInput.d.ts +4 -48
- package/es/dialog/components/selectToInput.js +74 -80
- package/es/dialog/components/styles/handle.less +39 -0
- package/es/dialog/components/styles/list.less +60 -0
- package/es/dialog/components/styles/tab.less +55 -0
- package/es/dialog/components/tab.d.ts +3 -7
- package/es/dialog/components/tab.js +57 -19
- package/es/dialog/data/{chart.d.ts → data.d.ts} +9 -0
- package/es/dialog/data/{chart.js → data.js} +11 -0
- package/es/dialog/demo/index.d.ts +23 -0
- package/es/dialog/demo/index.js +34 -3
- package/es/dialog/demo/index2.js +14 -2
- package/es/dialog/index.d.ts +4 -97
- package/es/dialog/index.js +54 -109
- package/es/dialog/styles/index.less +11 -0
- package/es/dialog/types.d.ts +77 -0
- package/es/{targetConditionGroup/type.js → dialog/types.js} +0 -0
- package/es/eventSelector/demo/index.js +26 -44
- package/es/eventSelector/index.d.ts +4 -30
- package/es/eventSelector/index.js +90 -416
- package/es/eventSelector/listPanel.d.ts +4 -0
- package/es/eventSelector/listPanel.js +197 -0
- package/es/eventSelector/option.d.ts +17 -0
- package/es/eventSelector/option.js +54 -0
- package/es/eventSelector/styles/index.less +77 -0
- package/es/eventSelector/types.d.ts +31 -0
- package/es/eventSelector/types.js +1 -0
- package/es/index.d.ts +14 -11
- package/es/index.js +9 -11
- package/es/{attributeSelector/data → mock}/env.d.ts +0 -0
- package/es/{attributeSelector/data → mock}/env.js +0 -0
- package/es/{attributeSelector/data → mock}/event.d.ts +0 -0
- package/es/{attributeSelector/data → mock}/event.js +0 -0
- package/es/{attributeSelector/data → mock}/user.d.ts +0 -0
- package/es/{attributeSelector/data → mock}/user.js +0 -0
- package/es/{multipleSelector → searchInput}/demo/index.d.ts +0 -0
- package/es/searchInput/demo/index.js +5 -0
- package/es/searchInput/index.d.ts +8 -0
- package/es/searchInput/index.js +31 -0
- package/es/{attributeSelector/demo/multiForm.d.ts → select/demo/group.d.ts} +0 -0
- package/es/{globalAttributes/demo/index.js → select/demo/group.js} +49 -31
- package/es/select/demo/index.js +49 -21
- package/es/{attributeSelector/demo/single.d.ts → select/demo/multiple.d.ts} +0 -0
- package/es/{multipleSelector/demo/index.js → select/demo/multiple.js} +55 -12
- package/es/select/handle.d.ts +5 -0
- package/es/select/handle.js +119 -0
- package/es/select/index.d.ts +4 -49
- package/es/select/index.js +168 -122
- package/es/select/option.d.ts +4 -0
- package/es/select/option.js +59 -0
- package/es/select/overlay.d.ts +4 -0
- package/es/select/overlay.js +154 -0
- package/es/select/styles/handle.less +111 -0
- package/es/select/styles/index.less +99 -0
- package/es/select/types.d.ts +65 -0
- package/es/select/types.js +1 -0
- package/es/table/demo/data/table.js +1 -1
- package/es/table/demo/index.d.ts +1 -1
- package/es/table/demo/index.js +9 -8
- package/es/table/demo/index3.js +9 -18
- package/es/table/index.d.ts +4 -30
- package/es/table/index.js +30 -26
- package/es/table/styles/index.less +5 -0
- package/es/table/type.d.ts +10 -0
- package/es/table/type.js +1 -0
- package/es/targetConditionGroup/components/targetDimension.d.ts +8 -0
- package/es/targetConditionGroup/components/targetDimension.js +153 -0
- package/es/targetConditionGroup/data/operates.d.ts +8 -24
- package/es/targetConditionGroup/data/operates.js +26 -69
- package/es/targetConditionGroup/demo/group.d.ts +1 -0
- package/es/targetConditionGroup/demo/group.js +108 -23
- package/es/targetConditionGroup/demo/index.js +34 -34
- package/es/targetConditionGroup/demo/styles/index.less +29 -0
- package/es/targetConditionGroup/index.d.ts +4 -57
- package/es/targetConditionGroup/index.js +177 -274
- package/es/targetConditionGroup/styles/index.less +25 -0
- package/es/targetConditionGroup/types.d.ts +32 -0
- package/es/targetConditionGroup/types.js +1 -0
- package/es/targetSelector/demo/index.d.ts +1 -0
- package/es/targetSelector/demo/index.js +29 -71
- package/es/targetSelector/editBox.d.ts +8 -0
- package/es/targetSelector/{components/BizEventNameEditBox.js → editBox.js} +49 -24
- package/es/targetSelector/index.d.ts +5 -55
- package/es/targetSelector/index.js +103 -214
- package/es/targetSelector/optionIcon.d.ts +9 -0
- package/es/targetSelector/optionIcon.js +24 -0
- package/es/targetSelector/optionMenu.d.ts +7 -0
- package/es/targetSelector/optionMenu.js +38 -0
- package/es/targetSelector/styles/index.less +88 -0
- package/es/targetSelector/types.d.ts +18 -0
- package/es/targetSelector/types.js +1 -0
- package/es/userCondition/conditionTypeList.d.ts +10 -0
- package/es/userCondition/conditionTypeList.js +43 -0
- package/es/userCondition/conditionWrap.d.ts +7 -0
- package/es/userCondition/conditionWrap.js +18 -0
- package/es/userCondition/conditions/eventCondition.d.ts +8 -0
- package/es/userCondition/conditions/eventCondition.js +104 -0
- package/es/userCondition/conditions/periodCondition.d.ts +11 -0
- package/es/userCondition/conditions/periodCondition.js +156 -0
- package/es/userCondition/conditions/propCondition.d.ts +11 -0
- package/es/userCondition/conditions/propCondition.js +147 -0
- package/es/userCondition/conditions/runTimesCondition.d.ts +9 -0
- package/es/userCondition/conditions/runTimesCondition.js +78 -0
- package/es/userCondition/conditions/styles/eventCondition.less +49 -0
- package/es/userCondition/conditions/styles/periodCondition.less +14 -0
- package/es/userCondition/conditions/styles/propCondition.less +36 -0
- package/es/userCondition/conditions/styles/runTimesCondition.less +16 -0
- package/es/{attributeSelector/demo/singleForm.d.ts → userCondition/demo/index.d.ts} +0 -0
- package/es/userCondition/demo/index.js +97 -0
- package/es/userCondition/index.d.ts +7 -0
- package/es/userCondition/index.js +146 -0
- package/es/userCondition/orConditions.d.ts +5 -0
- package/es/userCondition/orConditions.js +202 -0
- package/es/userCondition/relationLabel.d.ts +6 -0
- package/es/userCondition/relationLabel.js +12 -0
- package/es/userCondition/styles/conditionTypeList.less +31 -0
- package/es/userCondition/styles/conditionWrap.less +14 -0
- package/es/userCondition/styles/index.less +13 -0
- package/es/userCondition/styles/orConditions.less +16 -0
- package/es/userCondition/styles/relationLabel.less +18 -0
- package/es/userCondition/types.d.ts +79 -0
- package/es/userCondition/types.js +1 -0
- package/es/userCondition/util.d.ts +2 -0
- package/es/userCondition/util.js +54 -0
- package/es/{datePicker/demo/form.d.ts → userGroup/demo/group.d.ts} +0 -0
- package/es/{targetConditionGroup/demo/form.js → userGroup/demo/group.js} +68 -72
- package/es/userGroup/demo/index.d.ts +0 -1
- package/es/userGroup/demo/index.js +5 -62
- package/es/userGroup/index.d.ts +3 -77
- package/es/userGroup/index.js +60 -108
- package/es/userGroup/styles/index.less +20 -0
- package/es/userGroup/types.d.ts +15 -0
- package/es/userGroup/types.js +1 -0
- package/es/utils/ajax.js +5 -20
- package/es/utils/type.d.ts +42 -44
- package/es/utils/util.d.ts +1 -35
- package/es/utils/util.js +27 -57
- package/package.json +11 -4
- package/es/attributeSelector/demo/multi.js +0 -39
- package/es/attributeSelector/demo/multiForm.js +0 -64
- package/es/attributeSelector/demo/single.js +0 -43
- package/es/attributeSelector/group.d.ts +0 -31
- package/es/attributeSelector/group.js +0 -225
- package/es/attributeSelector/index.less +0 -172
- package/es/chart/index.less +0 -38
- package/es/chart/style/circle.svg +0 -4
- package/es/chart/type.d.ts +0 -22
- package/es/datePicker/data.d.ts +0 -9
- package/es/datePicker/data.js +0 -65
- package/es/datePicker/index.less +0 -364
- package/es/dialog/components/style/list.less +0 -59
- package/es/dialog/components/style/tab.less +0 -61
- package/es/dialog/style/index.less +0 -86
- package/es/eventSelector/demo/form.d.ts +0 -2
- package/es/eventSelector/demo/form.js +0 -89
- package/es/eventSelector/demo/nodata.d.ts +0 -2
- package/es/eventSelector/demo/nodata.js +0 -13
- package/es/eventSelector/index.less +0 -121
- package/es/eventSelector/type.d.ts +0 -41
- package/es/globalAttributes/demo/data/env.d.ts +0 -11
- package/es/globalAttributes/demo/data/env.js +0 -181
- package/es/globalAttributes/demo/data/event.d.ts +0 -237
- package/es/globalAttributes/demo/data/event.js +0 -3483
- package/es/globalAttributes/demo/data/user.d.ts +0 -22
- package/es/globalAttributes/demo/data/user.js +0 -218
- package/es/globalAttributes/index.d.ts +0 -47
- package/es/globalAttributes/index.js +0 -112
- package/es/multipleSelector/index.d.ts +0 -36
- package/es/multipleSelector/index.js +0 -131
- package/es/multipleSelector/index.less +0 -136
- package/es/table/demo/index.less +0 -8
- package/es/table/index.less +0 -139
- package/es/targetConditionGroup/components/conditionGroup.d.ts +0 -30
- package/es/targetConditionGroup/components/conditionGroup.js +0 -112
- package/es/targetConditionGroup/components/conditionItem.d.ts +0 -47
- package/es/targetConditionGroup/components/conditionItem.js +0 -232
- package/es/targetConditionGroup/components/style/group.less +0 -47
- package/es/targetConditionGroup/components/style/index.less +0 -16
- package/es/targetConditionGroup/demo/data/env.d.ts +0 -11
- package/es/targetConditionGroup/demo/data/env.js +0 -181
- package/es/targetConditionGroup/demo/data/event.d.ts +0 -237
- package/es/targetConditionGroup/demo/data/event.js +0 -3483
- package/es/targetConditionGroup/demo/data/user.d.ts +0 -22
- package/es/targetConditionGroup/demo/data/user.js +0 -218
- package/es/targetConditionGroup/demo/form.d.ts +0 -2
- package/es/targetConditionGroup/demo/item.d.ts +0 -2
- package/es/targetConditionGroup/demo/item.js +0 -5
- package/es/targetConditionGroup/group.d.ts +0 -56
- package/es/targetConditionGroup/group.js +0 -204
- package/es/targetConditionGroup/index.less +0 -76
- package/es/targetConditionGroup/type.d.ts +0 -95
- package/es/targetSelector/components/BizCascadeBox.d.ts +0 -34
- package/es/targetSelector/components/BizCascadeBox.js +0 -213
- package/es/targetSelector/components/BizEventNameEditBox.d.ts +0 -20
- package/es/targetSelector/demo/form.d.ts +0 -2
- package/es/targetSelector/demo/form.js +0 -133
- package/es/targetSelector/demo/nodata.d.ts +0 -2
- package/es/targetSelector/demo/nodata.js +0 -13
- package/es/targetSelector/index.less +0 -28
- package/es/userGroup/demo/cluster.d.ts +0 -3
- package/es/userGroup/demo/cluster.js +0 -102
- package/es/userGroup/demo/index.less +0 -3
- package/es/userGroup/index.less +0 -2
- package/es/userGroup/userCluster.d.ts +0 -63
- package/es/userGroup/userCluster.js +0 -255
|
@@ -2,4 +2,5 @@ declare const tooltipFormatterDefault: (params: any) => string;
|
|
|
2
2
|
declare const yAxisFormatterDefault: (value: number) => string;
|
|
3
3
|
declare const xAxisFormatterDefault: (value: string) => string;
|
|
4
4
|
declare const mapTooltipFormatter: (params: any) => string | undefined;
|
|
5
|
-
|
|
5
|
+
declare const legendFormatterDefault: (label: string) => string;
|
|
6
|
+
export { tooltipFormatterDefault, xAxisFormatterDefault, yAxisFormatterDefault, mapTooltipFormatter, legendFormatterDefault, };
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import util from '../../utils/util';
|
|
2
|
+
var maxLength = 20;
|
|
2
3
|
|
|
3
4
|
var tooltipFormatterDefault = function tooltipFormatterDefault(params) {
|
|
4
5
|
var xDate = params[0].name;
|
|
5
6
|
var xLabel = xDate;
|
|
7
|
+
var lengthReg = new RegExp('\\S{1,' + maxLength + '}', 'g');
|
|
6
8
|
|
|
7
9
|
if (/^\d{4}-\d{2}-\d{2}$/.test(xLabel)) {
|
|
8
|
-
// 处理日期
|
|
9
10
|
xLabel = xLabel.replace(/\d{4}-/, '');
|
|
11
|
+
} else if (/^\d{4}-\d{2}-\d{2}\|\d{4}-\d{2}-\d{2}$/.test(xLabel)) {
|
|
12
|
+
var dates = xLabel.match(/\d{4}-\d{2}-\d{2}/g);
|
|
13
|
+
xLabel = dates[0].replace(/\d{4}-/, '') + '~' + dates[1].replace(/\d{4}-/, '');
|
|
14
|
+
} else {
|
|
15
|
+
xLabel = (xLabel.match(lengthReg) || []).join('<br/>');
|
|
10
16
|
}
|
|
11
17
|
|
|
12
18
|
var htmlArray = [];
|
|
13
19
|
|
|
14
20
|
if (params.length > 1) {
|
|
15
|
-
htmlArray.push("<
|
|
21
|
+
htmlArray.push("<div class=\"biz-chart-tooltip-title\">".concat(xLabel, "</div>"));
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
params.forEach(function (item) {
|
|
@@ -24,7 +30,8 @@ var tooltipFormatterDefault = function tooltipFormatterDefault(params) {
|
|
|
24
30
|
lineLabel = util.toThousands(lineLabel);
|
|
25
31
|
}
|
|
26
32
|
|
|
27
|
-
|
|
33
|
+
var name = (params.length > 1 ? item.seriesName : item.name).trim();
|
|
34
|
+
htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <span class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-marker\" style=\"background:".concat(item.color, "\"></span>").concat(name, "\n </span> \n <span class=\"biz-chart-tooltip-value\">").concat(lineLabel, "</span>\n </div>"));
|
|
28
35
|
});
|
|
29
36
|
return htmlArray.join('');
|
|
30
37
|
};
|
|
@@ -39,10 +46,8 @@ var yAxisFormatterDefault = function yAxisFormatterDefault(value) {
|
|
|
39
46
|
|
|
40
47
|
var xAxisFormatterDefault = function xAxisFormatterDefault(value) {
|
|
41
48
|
if (/^\d{4}-\d{2}-\d{2}$/.test(value)) {
|
|
42
|
-
// 处理日期
|
|
43
49
|
return value.replace(/\d{4}-/, '');
|
|
44
50
|
} else if (/^\d{4}-\d{2}-\d{2}\|\d{4}-\d{2}-\d{2}$/.test(value)) {
|
|
45
|
-
// 周、月日期
|
|
46
51
|
var dates = value.match(/\d{4}-\d{2}-\d{2}/g);
|
|
47
52
|
return dates ? dates[0].replace(/\d{4}-/, '') + '~' + dates[1].replace(/\d{4}-/, '') : value;
|
|
48
53
|
} else {
|
|
@@ -59,7 +64,6 @@ var xAxisFormatterDefault = function xAxisFormatterDefault(value) {
|
|
|
59
64
|
};
|
|
60
65
|
|
|
61
66
|
var mapTooltipFormatter = function mapTooltipFormatter(params) {
|
|
62
|
-
console.log('t00l>>', params);
|
|
63
67
|
if (params.data === null || params.data === undefined) return;
|
|
64
68
|
var data = params.data;
|
|
65
69
|
|
|
@@ -67,7 +71,7 @@ var mapTooltipFormatter = function mapTooltipFormatter(params) {
|
|
|
67
71
|
var series = [];
|
|
68
72
|
var childrenOptions = data.childrenOptions;
|
|
69
73
|
childrenOptions.forEach(function (option) {
|
|
70
|
-
var label = option.name || option.names.join('
|
|
74
|
+
var label = option.name || option.names.join(',');
|
|
71
75
|
var value = option.value || option.values;
|
|
72
76
|
|
|
73
77
|
if (util.isArray(value)) {
|
|
@@ -85,7 +89,16 @@ var mapTooltipFormatter = function mapTooltipFormatter(params) {
|
|
|
85
89
|
dataValue = dataValue[dataValue.length - 1];
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
return "<div class=\"biz-chart-tooltip-item\"><span class=\"biz-chart-tooltip-content\">".concat(data.name || data.names.join('
|
|
92
|
+
return "<div class=\"biz-chart-tooltip-item\"><span class=\"biz-chart-tooltip-content\">".concat(data.name || data.names.join(','), ": </span><span style=\"color:#66ccff;\">").concat(util.toThousands(dataValue), "</span></div>");
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
var legendFormatterDefault = function legendFormatterDefault(label) {
|
|
96
|
+
return util.strMiddleSplit(label, {
|
|
97
|
+
maxLength: maxLength,
|
|
98
|
+
beginLength: maxLength / 2 - 2,
|
|
99
|
+
endLength: maxLength / 2 - 2,
|
|
100
|
+
replaceStr: '...'
|
|
101
|
+
});
|
|
89
102
|
};
|
|
90
103
|
|
|
91
|
-
export { tooltipFormatterDefault, xAxisFormatterDefault, yAxisFormatterDefault, mapTooltipFormatter };
|
|
104
|
+
export { tooltipFormatterDefault, xAxisFormatterDefault, yAxisFormatterDefault, mapTooltipFormatter, legendFormatterDefault };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const citySeries: (
|
|
3
|
-
declare const provinceSeries: (data:
|
|
1
|
+
import { ChartTypes, ItemDataProps } from '../types';
|
|
2
|
+
declare const citySeries: (data: ChartTypes.Value, haveUserGroup: boolean) => ItemDataProps[];
|
|
3
|
+
declare const provinceSeries: (data: ChartTypes.Value, haveUserGroup?: boolean | undefined) => any;
|
|
4
4
|
declare const maxMinValue: (series: ItemDataProps) => {
|
|
5
5
|
max: number;
|
|
6
6
|
min: number;
|
package/es/chart/util/mapUtil.js
CHANGED
|
@@ -22,31 +22,29 @@ import util from '../../utils/util';
|
|
|
22
22
|
import cityGeoCoord from './data/cityGeoCoord';
|
|
23
23
|
import provinceGeoCoord from './data/provinceGeoCoord';
|
|
24
24
|
|
|
25
|
-
var citySeries = function citySeries(
|
|
25
|
+
var citySeries = function citySeries(data, haveUserGroup) {
|
|
26
26
|
var backGroundMapSeries = {
|
|
27
27
|
type: 'map',
|
|
28
28
|
map: 'china',
|
|
29
29
|
showLegendSymbol: false,
|
|
30
30
|
top: 20,
|
|
31
31
|
bottom: 20,
|
|
32
|
-
data: []
|
|
33
|
-
|
|
32
|
+
data: []
|
|
34
33
|
};
|
|
35
34
|
var scatterSeries = {
|
|
36
35
|
name: '',
|
|
37
36
|
type: 'scatter',
|
|
38
37
|
coordinateSystem: 'geo',
|
|
39
38
|
symbolSize: 8,
|
|
40
|
-
data: []
|
|
41
|
-
|
|
39
|
+
data: []
|
|
42
40
|
};
|
|
43
41
|
var provinceMapData = {};
|
|
44
|
-
|
|
42
|
+
data.x_axis.forEach(function (xItem, i) {
|
|
45
43
|
scatterSeries.name = xItem;
|
|
46
|
-
|
|
44
|
+
data.series.forEach(function (cityItem) {
|
|
47
45
|
var cityName = cityItem.names[cityItem.names.length - 1];
|
|
48
46
|
cityName = cityName.replace(/(市|省|自治区)$/, '');
|
|
49
|
-
var cityCoordObj = cityGeoCoord[cityName];
|
|
47
|
+
var cityCoordObj = cityGeoCoord[cityName];
|
|
50
48
|
|
|
51
49
|
if (cityCoordObj) {
|
|
52
50
|
var cityValue = cityItem.values[i];
|
|
@@ -56,10 +54,8 @@ var citySeries = function citySeries(mapStore, haveUserGroup) {
|
|
|
56
54
|
value: [cityCoordObj.log, cityCoordObj.lat, cityValue],
|
|
57
55
|
childrenOptions: cityItem.userGroupCompareData
|
|
58
56
|
};
|
|
59
|
-
scatterSeries.data.push(scatterItem);
|
|
60
|
-
|
|
61
|
-
var provinceObj = cityCoordObj.province; // 省份坐标对象
|
|
62
|
-
|
|
57
|
+
scatterSeries.data.push(scatterItem);
|
|
58
|
+
var provinceObj = cityCoordObj.province;
|
|
63
59
|
var provinceName = provinceObj ? provinceObj.name.replace(/(省|市)$/, '') : '';
|
|
64
60
|
var currentMapData = provinceMapData[provinceName];
|
|
65
61
|
var currentMapOptions = currentMapData ? currentMapData.childrenOptions : [];
|
|
@@ -98,10 +94,7 @@ var provinceSeries = function provinceSeries(data, haveUserGroup) {
|
|
|
98
94
|
bottom: 20,
|
|
99
95
|
label: {
|
|
100
96
|
show: true,
|
|
101
|
-
color: '#565656'
|
|
102
|
-
// return params.name.replace(/(市|省|自治区|维吾尔自治区|特别行政区|壮族自治区|回族自治区)$/, '')
|
|
103
|
-
// }
|
|
104
|
-
|
|
97
|
+
color: '#565656'
|
|
105
98
|
},
|
|
106
99
|
showLegendSymbol: false,
|
|
107
100
|
data: []
|
|
@@ -115,7 +108,6 @@ var provinceSeries = function provinceSeries(data, haveUserGroup) {
|
|
|
115
108
|
name = name.replace(/(市|省|自治区)$/, '');
|
|
116
109
|
|
|
117
110
|
if (provinceCoordObj) {
|
|
118
|
-
// 过滤json库中不存在的省
|
|
119
111
|
item.data.push({
|
|
120
112
|
name: name,
|
|
121
113
|
isProvince: true,
|
|
@@ -160,7 +152,6 @@ var maxMinValue = function maxMinValue(series) {
|
|
|
160
152
|
|
|
161
153
|
var formatData = function formatData(seriesData, haveUserGroup) {
|
|
162
154
|
if (haveUserGroup) {
|
|
163
|
-
// 有用户群时增加userGroupCompareData
|
|
164
155
|
var store = {
|
|
165
156
|
x_axis: seriesData.x_axis,
|
|
166
157
|
series: []
|
|
@@ -176,7 +167,6 @@ var formatData = function formatData(seriesData, haveUserGroup) {
|
|
|
176
167
|
userGroupCompareData: [item]
|
|
177
168
|
};
|
|
178
169
|
} else {
|
|
179
|
-
// 注:当有用户群对比时,此区域的values粗略计算为各用户群相加之和(此处未去重,因数据不准目前只做颜色展示,后续产品会修改)
|
|
180
170
|
areaObjMap[areaName].values = [areaObjMap[areaName].values[0] + item.values[0]];
|
|
181
171
|
areaObjMap[areaName].userGroupCompareData.push(item);
|
|
182
172
|
}
|
package/es/commonStyle/icon.less
CHANGED
|
@@ -76,115 +76,119 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
.biz-btn,
|
|
80
|
-
.ant-btn {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
79
|
+
// .biz-btn,
|
|
80
|
+
// .ant-btn {
|
|
81
|
+
// height: auto;
|
|
82
|
+
// padding: 10px 24px;
|
|
83
|
+
// font-weight: 400;
|
|
84
|
+
// font-size: 14px;
|
|
85
|
+
// line-height: 20px;
|
|
86
|
+
// border-radius: 4px;
|
|
87
|
+
// cursor: pointer;
|
|
88
|
+
|
|
89
|
+
// .anticon {
|
|
90
|
+
// margin-right: 8px;
|
|
91
|
+
// font-size: 24px;
|
|
92
|
+
// }
|
|
93
|
+
|
|
94
|
+
// &.small {
|
|
95
|
+
// padding: 5px 12px;
|
|
96
|
+
// }
|
|
97
|
+
// }
|
|
98
|
+
|
|
99
|
+
// .biz-btn-primary,
|
|
100
|
+
// .ant-btn-primary {
|
|
101
|
+
// color: #fff;
|
|
102
|
+
// background: @themeColor;
|
|
103
|
+
// border: none;
|
|
104
|
+
|
|
105
|
+
// &:hover,
|
|
106
|
+
// &:active {
|
|
107
|
+
// background: #85adfc;
|
|
108
|
+
// }
|
|
109
|
+
|
|
110
|
+
// &:focus {
|
|
111
|
+
// background: #1451db;
|
|
112
|
+
// }
|
|
113
|
+
|
|
114
|
+
// &:disabled {
|
|
115
|
+
// color: @disableColor;
|
|
116
|
+
// background: @grayColor;
|
|
117
|
+
// }
|
|
118
|
+
// }
|
|
119
|
+
|
|
120
|
+
// .biz-btn-default,
|
|
121
|
+
// .ant-btn-default {
|
|
122
|
+
// color: #242541;
|
|
123
|
+
// background: #f6f6f6;
|
|
124
|
+
// border: none;
|
|
125
|
+
|
|
126
|
+
// &:hover,
|
|
127
|
+
// &:focus {
|
|
128
|
+
// color: #242541;
|
|
129
|
+
// background: #cacdd4;
|
|
130
|
+
// }
|
|
131
|
+
|
|
132
|
+
// &:active {
|
|
133
|
+
// color: #242541;
|
|
134
|
+
// background: #94a6ce;
|
|
135
|
+
// }
|
|
136
|
+
|
|
137
|
+
// &:disabled {
|
|
138
|
+
// color: #cacdd4;
|
|
139
|
+
// background: #f6f6f6;
|
|
140
|
+
// }
|
|
141
|
+
// }
|
|
142
|
+
|
|
143
|
+
// .biz-btn-text {
|
|
144
|
+
// color: #021429;
|
|
145
|
+
|
|
146
|
+
// &:hover {
|
|
147
|
+
// background: #f6f6f6;
|
|
148
|
+
// }
|
|
149
|
+
|
|
150
|
+
// &:active {
|
|
151
|
+
// background: #cacdd4;
|
|
152
|
+
// }
|
|
153
|
+
|
|
154
|
+
// &:disabled {
|
|
155
|
+
// color: #cacdd4;
|
|
156
|
+
// }
|
|
157
|
+
// }
|
|
158
|
+
|
|
159
|
+
// .biz-btn-line {
|
|
160
|
+
// box-sizing: border-box;
|
|
161
|
+
// color: #5f6085;
|
|
162
|
+
// background: #ffffff;
|
|
163
|
+
// border: 1px solid #ecedf0;
|
|
164
|
+
// border-radius: 4px;
|
|
165
|
+
|
|
166
|
+
// &:hover {
|
|
167
|
+
// color: #165dff;
|
|
168
|
+
// background: #e8efff;
|
|
169
|
+
// border-color: #165dff;
|
|
170
|
+
// }
|
|
171
|
+
// }
|
|
172
|
+
|
|
173
|
+
// .ant-tooltip {
|
|
174
|
+
// .ant-tooltip-inner {
|
|
175
|
+
// border-radius: @boxRadius2;
|
|
176
|
+
// }
|
|
177
|
+
|
|
178
|
+
// &.biz-tooltip {
|
|
179
|
+
// width: auto;
|
|
180
|
+
|
|
181
|
+
// .ant-tooltip-inner {
|
|
182
|
+
// padding: 4px;
|
|
183
|
+
// color: @fontColor;
|
|
184
|
+
// background-color: #fff;
|
|
185
|
+
// border-radius: 4px;
|
|
186
|
+
// box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
187
|
+
// }
|
|
188
|
+
|
|
189
|
+
// .ant-tooltip-arrow-content {
|
|
190
|
+
// background-color: #fff;
|
|
191
|
+
// --antd-arrow-background-color: #fff;
|
|
192
|
+
// }
|
|
193
|
+
// }
|
|
194
|
+
// }
|