xt-element-ui 1.1.2 → 1.1.4
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/lib/css/2.9f53fb10.css +1 -0
- package/lib/css/3.f955b130.css +1 -0
- package/lib/css/4.04feac2c.css +1 -0
- package/lib/css/5.6a8558e0.css +1 -0
- package/lib/css/6.e474b334.css +1 -0
- package/lib/index.common.0.js +16448 -15696
- package/lib/index.common.2.js +298 -270
- package/lib/index.common.3.js +82 -54
- package/lib/index.common.4.js +519 -489
- package/lib/index.common.5.js +74 -46
- package/lib/index.common.6.js +76 -48
- package/lib/index.common.js +826 -308
- package/lib/index.css +1 -1
- package/lib/index.umd.0.js +16448 -15696
- package/lib/index.umd.2.js +298 -270
- package/lib/index.umd.3.js +82 -54
- package/lib/index.umd.4.js +519 -489
- package/lib/index.umd.5.js +74 -46
- package/lib/index.umd.6.js +76 -48
- package/lib/index.umd.js +832 -313
- package/lib/index.umd.min.0.js +3 -3
- package/lib/index.umd.min.2.js +1 -1
- package/lib/index.umd.min.3.js +1 -1
- package/lib/index.umd.min.4.js +1 -1
- package/lib/index.umd.min.5.js +1 -1
- package/lib/index.umd.min.6.js +1 -1
- package/lib/index.umd.min.js +1 -1
- package/package.json +2 -1
- package/src/components/ex-button/index.js +2 -0
- package/src/components/ex-button/index.vue +61 -0
- package/src/components/ex-button/style/index.scss +31 -0
- package/src/components/ex-card/index.js +7 -0
- package/src/components/ex-card/index.vue +150 -0
- package/src/components/ex-card/style/index.scss +69 -0
- package/src/components/{chart → ex-chart}/ExBar.vue +3 -0
- package/src/components/{chart → ex-chart}/ExLine.vue +3 -0
- package/src/components/{chart → ex-chart}/ExMulti.vue +5 -0
- package/src/components/{chart → ex-chart}/ExPie.vue +3 -0
- package/src/components/{chart → ex-chart}/ExTrend.vue +3 -0
- package/src/components/ex-chart/index.js +2 -0
- package/src/components/ex-chart/index.vue +134 -0
- package/src/components/{chart → ex-chart}/theme/dark.js +1 -1
- package/src/components/{chart → ex-chart}/utils.js +40 -12
- package/src/components/index.scss +13 -7
- package/src/components/{button → xt-button}/index.vue +1 -1
- package/src/components/{card-item → xt-card-item}/index.vue +1 -1
- package/src/components/{config-provider → xt-config-provider}/index.vue +66 -0
- package/src/components/{date-picker → xt-date-picker}/index.vue +1 -1
- package/src/components/{date-picker → xt-date-picker}/quarter.vue +4 -2
- package/src/components/{table → xt-table}/index.vue +48 -107
- package/src/config/element-registry.js +136 -0
- package/src/index.js +56 -32
- package/src/styles/theme/colors.scss +1 -0
- package/lib/css/2.3f7aa432.css +0 -1
- package/lib/css/3.ffcc175d.css +0 -1
- package/lib/css/4.9abd1f2b.css +0 -1
- package/lib/css/5.1a31ed8a.css +0 -1
- package/lib/css/6.c2d0d77e.css +0 -1
- package/src/components/chart/index.js +0 -2
- package/src/components/chart/index.vue +0 -51
- /package/src/components/{chart → ex-chart}/pieList.vue +0 -0
- /package/src/components/{chart → ex-chart}/theme/blue.js +0 -0
- /package/src/components/{chart → ex-chart}/theme/orange.js +0 -0
- /package/src/components/{chart → ex-chart}/theme/starry.js +0 -0
- /package/src/components/{chart → ex-chart}/theme/white.js +0 -0
- /package/src/components/{button → xt-button}/index.js +0 -0
- /package/src/components/{button → xt-button}/style/index.scss +0 -0
- /package/src/components/{card → xt-card}/index.js +0 -0
- /package/src/components/{card → xt-card}/index.vue +0 -0
- /package/src/components/{card → xt-card}/style/index.scss +0 -0
- /package/src/components/{card-item → xt-card-item}/index.js +0 -0
- /package/src/components/{card-item → xt-card-item}/style/index.scss +0 -0
- /package/src/components/{config-provider → xt-config-provider}/index.js +0 -0
- /package/src/components/{config-provider → xt-config-provider}/style/index.scss +0 -0
- /package/src/components/{date-picker → xt-date-picker}/SearchDate.vue +0 -0
- /package/src/components/{date-picker → xt-date-picker}/index.js +0 -0
- /package/src/components/{flex-box → xt-flex-box}/index.js +0 -0
- /package/src/components/{flex-box → xt-flex-box}/index.vue +0 -0
- /package/src/components/{flex-box → xt-flex-box}/style/index.scss +0 -0
- /package/src/components/{grid-box → xt-grid-box}/index.js +0 -0
- /package/src/components/{grid-box → xt-grid-box}/index.vue +0 -0
- /package/src/components/{input → xt-input}/index.js +0 -0
- /package/src/components/{input → xt-input}/index.vue +0 -0
- /package/src/components/{input → xt-input}/style/index.scss +0 -0
- /package/src/components/{layout → xt-layout}/BaseCollapse.vue +0 -0
- /package/src/components/{layout → xt-layout}/ExFieldset.vue +0 -0
- /package/src/components/{page → xt-page}/index.js +0 -0
- /package/src/components/{page → xt-page}/index.vue +0 -0
- /package/src/components/{select-tree → xt-select-tree}/index.js +0 -0
- /package/src/components/{select-tree → xt-select-tree}/index.vue +0 -0
- /package/src/components/{table → xt-table}/ExCell.vue +0 -0
- /package/src/components/{table → xt-table}/ExColumn.vue +0 -0
- /package/src/components/{table → xt-table}/index.js +0 -0
- /package/src/components/{table → xt-table}/processor.js +0 -0
- /package/src/components/{text → xt-text}/index.js +0 -0
- /package/src/components/{text → xt-text}/index.vue +0 -0
- /package/src/components/{text → xt-text}/style/index.scss +0 -0
- /package/src/components/{upload → xt-upload}/index.js +0 -0
- /package/src/components/{upload → xt-upload}/index.vue +0 -0
- /package/src/components/{upload → xt-upload}/preview.vue +0 -0
package/lib/index.common.4.js
CHANGED
|
@@ -1,166 +1,357 @@
|
|
|
1
1
|
((typeof self !== 'undefined' ? self : this)["webpackJsonpxt_element_ui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpxt_element_ui"] || []).push([[4],{
|
|
2
2
|
|
|
3
|
-
/***/ "
|
|
3
|
+
/***/ "20f2":
|
|
4
4
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
|
+
// ESM COMPAT FLAG
|
|
8
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7
9
|
|
|
8
|
-
//
|
|
10
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4207ee36-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ex-chart/ExMulti.vue?vue&type=template&id=18661424&scoped=true
|
|
11
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"multilinechart",staticClass:"multiline-box"})
|
|
12
|
+
}
|
|
13
|
+
var staticRenderFns = []
|
|
9
14
|
|
|
10
|
-
// EXTERNAL MODULE: ./node_modules/echarts/index.js + 575 modules
|
|
11
|
-
var echarts = __webpack_require__("313e");
|
|
12
15
|
|
|
13
|
-
// CONCATENATED MODULE: ./src/components/chart/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
fontSize: 12
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
line: {
|
|
31
|
-
itemStyle: {
|
|
16
|
+
// CONCATENATED MODULE: ./src/components/ex-chart/ExMulti.vue?vue&type=template&id=18661424&scoped=true
|
|
17
|
+
|
|
18
|
+
// EXTERNAL MODULE: ./src/components/ex-chart/utils.js + 5 modules
|
|
19
|
+
var utils = __webpack_require__("22f5");
|
|
20
|
+
|
|
21
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ex-chart/ExMulti.vue?vue&type=script&lang=js
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
/* harmony default export */ var ExMultivue_type_script_lang_js = ({
|
|
25
|
+
name: "XtMulti",
|
|
26
|
+
props: {
|
|
27
|
+
isDark: {
|
|
28
|
+
type: Boolean, // 设置文字标线为白色系
|
|
29
|
+
default: false
|
|
32
30
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
bar: {
|
|
38
|
-
itemStyle: {
|
|
39
|
-
borderRadius: 4
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
pie: {
|
|
43
|
-
roseType: "radius",
|
|
44
|
-
label: {
|
|
45
|
-
color: "#333"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
radar: {
|
|
49
|
-
indicator: {
|
|
50
|
-
color: "#666666"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
map: {
|
|
54
|
-
label: {
|
|
55
|
-
color: "#333"
|
|
31
|
+
theme: {},
|
|
32
|
+
size: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "medium"
|
|
56
35
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
toolbox: {
|
|
69
|
-
iconStyle: {
|
|
70
|
-
borderColor: "#666666"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
xAxis: {
|
|
74
|
-
axisLine: {
|
|
75
|
-
lineStyle: {
|
|
76
|
-
color: "#DFE9EE"
|
|
36
|
+
config: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default() {
|
|
39
|
+
return {
|
|
40
|
+
interval: 0,
|
|
41
|
+
rotate: 0,
|
|
42
|
+
gridbottom: 40,
|
|
43
|
+
isShowthreshold: false
|
|
44
|
+
|
|
45
|
+
};
|
|
77
46
|
}
|
|
78
47
|
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
48
|
+
chartData: {
|
|
49
|
+
type: Array,
|
|
50
|
+
default: () => {
|
|
51
|
+
return [
|
|
52
|
+
{
|
|
53
|
+
label: "入户数",
|
|
54
|
+
data: [
|
|
55
|
+
{ label: "01月", value: 980 },
|
|
56
|
+
{ label: "02月", value: 806 },
|
|
57
|
+
{ label: "03月", value: 930 },
|
|
58
|
+
{ label: "04月", value: 804 },
|
|
59
|
+
{ label: "05月", value: 750 },
|
|
60
|
+
{ label: "06月", value: 660 },
|
|
61
|
+
{ label: "07月", value: 780 },
|
|
62
|
+
{ label: "08月", value: 630 },
|
|
63
|
+
{ label: "09月", value: 806 },
|
|
64
|
+
{ label: "10月", value: 950 },
|
|
65
|
+
{ label: "11月", value: 810 },
|
|
66
|
+
{ label: "12月", value: 703 }
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "隐患数",
|
|
71
|
+
data: [
|
|
72
|
+
{ label: "01月", value: 200 },
|
|
73
|
+
{ label: "02月", value: 120 },
|
|
74
|
+
{ label: "03月", value: 110 },
|
|
75
|
+
{ label: "04月", value: 109 },
|
|
76
|
+
{ label: "05月", value: 108 },
|
|
77
|
+
{ label: "06月", value: 150 },
|
|
78
|
+
{ label: "07月", value: 126 },
|
|
79
|
+
{ label: "08月", value: 130 },
|
|
80
|
+
{ label: "09月", value: 108 },
|
|
81
|
+
{ label: "10月", value: 109 },
|
|
82
|
+
{ label: "11月", value: 140 },
|
|
83
|
+
{ label: "12月", value: 106 }
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: "整改数",
|
|
88
|
+
data: [
|
|
89
|
+
{ label: "01月", value: 25 },
|
|
90
|
+
{ label: "02月", value: 19 },
|
|
91
|
+
{ label: "03月", value: 34 },
|
|
92
|
+
{ label: "04月", value: 12 },
|
|
93
|
+
{ label: "05月", value: 16 },
|
|
94
|
+
{ label: "06月", value: 20 },
|
|
95
|
+
{ label: "07月", value: 19 },
|
|
96
|
+
{ label: "08月", value: 18 },
|
|
97
|
+
{ label: "09月", value: 14 },
|
|
98
|
+
{ label: "10月", value: 12 },
|
|
99
|
+
{ label: "11月", value: 11 },
|
|
100
|
+
{ label: "12月", value: 16 }
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
];
|
|
90
104
|
}
|
|
91
105
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
106
|
+
colors: {
|
|
107
|
+
type: Array,
|
|
108
|
+
default: () => { return []; }
|
|
96
109
|
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
splitArea: {
|
|
106
|
-
areaStyle: {
|
|
107
|
-
color: ["#f7f8fa", "#ffffff"]
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
legend: {
|
|
111
|
-
textStyle: {
|
|
112
|
-
color: "#333333"
|
|
110
|
+
selectedNew: {
|
|
111
|
+
type: Object,
|
|
112
|
+
default: null
|
|
113
|
+
},
|
|
114
|
+
energyType: {
|
|
115
|
+
type: [String, Array],
|
|
116
|
+
default: ""
|
|
113
117
|
}
|
|
114
118
|
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
trigger: "axis"
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
// CONCATENATED MODULE: ./src/components/chart/theme/dark.js
|
|
126
|
-
/* harmony default export */ var dark = ({
|
|
127
|
-
color: ["#0de7ff", "#a782ff", "#fcdd60", "#0de7ff", "#ffc5a1", "#6291ae", "#13ce66"],
|
|
128
|
-
backgroundColor: "#ffffff",
|
|
129
|
-
textStyle: {
|
|
130
|
-
fontFamily: "Microsoft YaHei, sans-serif"
|
|
119
|
+
data() {
|
|
120
|
+
return {
|
|
121
|
+
myChart: null
|
|
122
|
+
// chartList: []
|
|
123
|
+
};
|
|
131
124
|
},
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
125
|
+
watch: {
|
|
126
|
+
chartData: {
|
|
127
|
+
deep: true,
|
|
128
|
+
handler(newVal, oldVal) {
|
|
129
|
+
const _self = this;
|
|
130
|
+
this.myChart && this.myChart.dispose();
|
|
131
|
+
this.myChart = null;
|
|
132
|
+
_self.initChart();
|
|
133
|
+
}
|
|
135
134
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
135
|
+
energyType: {
|
|
136
|
+
deep: true,
|
|
137
|
+
handler(newVal, oldVal) {
|
|
138
|
+
if (newVal && oldVal && newVal.toString() == oldVal.toString()) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
this.myChart && this.myChart.dispose();
|
|
142
|
+
this.myChart = null;
|
|
143
|
+
const _self = this;
|
|
144
|
+
_self.initChart();
|
|
145
|
+
}
|
|
142
146
|
},
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
bar: {
|
|
148
|
-
itemStyle: {
|
|
149
|
-
borderRadius: 4
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
pie: {
|
|
153
|
-
roseType: "radius",
|
|
154
|
-
label: {
|
|
155
|
-
color: "#333"
|
|
147
|
+
theme(newVal) {
|
|
148
|
+
this.myChart && this.myChart.dispose();
|
|
149
|
+
this.myChart = null;
|
|
150
|
+
this.initChart();
|
|
156
151
|
}
|
|
157
152
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
color: "#666666"
|
|
161
|
-
}
|
|
153
|
+
mounted() {
|
|
154
|
+
this.initChart();
|
|
162
155
|
},
|
|
163
|
-
|
|
156
|
+
methods: {
|
|
157
|
+
initChart() {
|
|
158
|
+
const _self = this;
|
|
159
|
+
// 数据处理
|
|
160
|
+
const groupYAxis = (unit) => {
|
|
161
|
+
return {
|
|
162
|
+
type: "value",
|
|
163
|
+
name: unit,
|
|
164
|
+
axisLine: {
|
|
165
|
+
show: false,
|
|
166
|
+
lineStyle: {
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
axisTick: {
|
|
170
|
+
show: false
|
|
171
|
+
},
|
|
172
|
+
splitLine: {
|
|
173
|
+
lineStyle: {
|
|
174
|
+
type: "dashed"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
axisLabel: {
|
|
178
|
+
formatter: function(value, index) {
|
|
179
|
+
if (value >= 10000 && value < 10000000) {
|
|
180
|
+
value = Math.floor(value / 10000) + "万";
|
|
181
|
+
} else if (value >= 10000000) {
|
|
182
|
+
value = Math.floor(value / 10000000) + "千万";
|
|
183
|
+
}
|
|
184
|
+
return value;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
const option = {
|
|
190
|
+
legend: {
|
|
191
|
+
right: 20,
|
|
192
|
+
top: 0,
|
|
193
|
+
show: true,
|
|
194
|
+
data: _self.chartData.map((item) => {
|
|
195
|
+
return item.label;
|
|
196
|
+
}),
|
|
197
|
+
selectedMode: "multiple",
|
|
198
|
+
selected: _self.selectedNew,
|
|
199
|
+
textStyle: {
|
|
200
|
+
fontSize: 12
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
tooltip: {
|
|
204
|
+
borderWidth: 1,
|
|
205
|
+
trigger: "axis",
|
|
206
|
+
axisPointer: {
|
|
207
|
+
type: "shadow"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
grid: {
|
|
211
|
+
top: "25%",
|
|
212
|
+
left: "40",
|
|
213
|
+
right: "15",
|
|
214
|
+
bottom: this.config.gridbottom == null ? 20 : this.config.gridbottom
|
|
215
|
+
},
|
|
216
|
+
xAxis: {
|
|
217
|
+
type: "category",
|
|
218
|
+
// splitLine: {
|
|
219
|
+
// show: true,
|
|
220
|
+
// lineStyle: {
|
|
221
|
+
// type: "dashed"
|
|
222
|
+
// }
|
|
223
|
+
// },
|
|
224
|
+
axisLabel: {
|
|
225
|
+
rotate: this.config.rotate
|
|
226
|
+
},
|
|
227
|
+
data: _self.chartData && _self.chartData.length ? _self.chartData[0].data.map((item) => {
|
|
228
|
+
return item.label;
|
|
229
|
+
}) : []
|
|
230
|
+
},
|
|
231
|
+
yAxis: typeof _self.energyType == "string" ? groupYAxis(_self.energyType) : this.energyType.map(unit => groupYAxis(unit)),
|
|
232
|
+
dataZoom: [
|
|
233
|
+
{
|
|
234
|
+
type: "inside",
|
|
235
|
+
xAxisIndex: [0],
|
|
236
|
+
start: 1,
|
|
237
|
+
end: 100
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
series: this.getSeriesData()
|
|
241
|
+
};
|
|
242
|
+
this.myChart = utils["a" /* default */].init(_self.$refs.multilinechart, this.theme, option, this.size);
|
|
243
|
+
},
|
|
244
|
+
getSeriesData() {
|
|
245
|
+
// 创建 24小时 时间数据填充对象
|
|
246
|
+
const _self = this;
|
|
247
|
+
|
|
248
|
+
const _seriesData = [];
|
|
249
|
+
_self.chartData.map((item, ind) => {
|
|
250
|
+
// debugger;
|
|
251
|
+
const _isNUll = item.data.some(it => !it.value || it.value == "--");
|
|
252
|
+
const _itemNull = {
|
|
253
|
+
type: "",
|
|
254
|
+
name: item.label,
|
|
255
|
+
connectNulls: true, // 断点连线,true-连接,false-不连接
|
|
256
|
+
data: item.data.map(it => it.value),
|
|
257
|
+
tooltip: {
|
|
258
|
+
show: false
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
const _item = {
|
|
262
|
+
animation: true,
|
|
263
|
+
name: item.label,
|
|
264
|
+
type: item.type || "bar",
|
|
265
|
+
avoidLabelOverlap: true,
|
|
266
|
+
data: item.data.map(it => it.value)
|
|
267
|
+
};
|
|
268
|
+
_seriesData.push(_item);
|
|
269
|
+
});
|
|
270
|
+
return _seriesData;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
// CONCATENATED MODULE: ./src/components/ex-chart/ExMulti.vue?vue&type=script&lang=js
|
|
276
|
+
/* harmony default export */ var ex_chart_ExMultivue_type_script_lang_js = (ExMultivue_type_script_lang_js);
|
|
277
|
+
// EXTERNAL MODULE: ./src/components/ex-chart/ExMulti.vue?vue&type=style&index=0&id=18661424&prod&lang=scss&scoped=true
|
|
278
|
+
var ExMultivue_type_style_index_0_id_18661424_prod_lang_scss_scoped_true = __webpack_require__("a68f");
|
|
279
|
+
|
|
280
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
281
|
+
var componentNormalizer = __webpack_require__("2877");
|
|
282
|
+
|
|
283
|
+
// CONCATENATED MODULE: ./src/components/ex-chart/ExMulti.vue
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
/* normalize component */
|
|
291
|
+
|
|
292
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
293
|
+
ex_chart_ExMultivue_type_script_lang_js,
|
|
294
|
+
render,
|
|
295
|
+
staticRenderFns,
|
|
296
|
+
false,
|
|
297
|
+
null,
|
|
298
|
+
"18661424",
|
|
299
|
+
null
|
|
300
|
+
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
/* harmony default export */ var ExMulti = __webpack_exports__["default"] = (component.exports);
|
|
304
|
+
|
|
305
|
+
/***/ }),
|
|
306
|
+
|
|
307
|
+
/***/ "22f5":
|
|
308
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
309
|
+
|
|
310
|
+
"use strict";
|
|
311
|
+
|
|
312
|
+
// UNUSED EXPORTS: getEcharts
|
|
313
|
+
|
|
314
|
+
// CONCATENATED MODULE: ./src/components/ex-chart/theme/white.js
|
|
315
|
+
/* harmony default export */ var white = ({
|
|
316
|
+
color: ["#1890ff", "#37c3a4", "#29c0ce", "#6480D7", "#8cce6f", "#3a5dca", "#ffb74d"],
|
|
317
|
+
backgroundColor: "#ffffff",
|
|
318
|
+
textStyle: {
|
|
319
|
+
fontFamily: "Microsoft YaHei, sans-serif"
|
|
320
|
+
},
|
|
321
|
+
title: {
|
|
322
|
+
textStyle: {
|
|
323
|
+
color: "#333",
|
|
324
|
+
fontSize: 16
|
|
325
|
+
},
|
|
326
|
+
subtextStyle: {
|
|
327
|
+
color: "#666666",
|
|
328
|
+
fontSize: 12
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
line: {
|
|
332
|
+
itemStyle: {
|
|
333
|
+
},
|
|
334
|
+
lineStyle: {
|
|
335
|
+
width: 2
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
bar: {
|
|
339
|
+
itemStyle: {
|
|
340
|
+
borderRadius: 4
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
pie: {
|
|
344
|
+
roseType: "radius",
|
|
345
|
+
label: {
|
|
346
|
+
color: "#333"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
radar: {
|
|
350
|
+
indicator: {
|
|
351
|
+
color: "#666666"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
map: {
|
|
164
355
|
label: {
|
|
165
356
|
color: "#333"
|
|
166
357
|
},
|
|
@@ -180,19 +371,36 @@ var echarts = __webpack_require__("313e");
|
|
|
180
371
|
borderColor: "#666666"
|
|
181
372
|
}
|
|
182
373
|
},
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
374
|
+
xAxis: {
|
|
375
|
+
axisLine: {
|
|
376
|
+
lineStyle: {
|
|
377
|
+
color: "#DFE9EE"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
axisTick: {
|
|
381
|
+
lineStyle: {
|
|
382
|
+
color: "#DFE9EE"
|
|
383
|
+
},
|
|
384
|
+
show: false
|
|
191
385
|
}
|
|
192
386
|
},
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
387
|
+
yAxis: {
|
|
388
|
+
axisLine: {
|
|
389
|
+
lineStyle: {
|
|
390
|
+
color: "#DFE9EE"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
axisTick: {
|
|
394
|
+
lineStyle: {
|
|
395
|
+
color: "#DFE9EE"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
splitLine: {
|
|
399
|
+
show: true,
|
|
400
|
+
lineStyle: {
|
|
401
|
+
type: "dashed",
|
|
402
|
+
color: "#DFE9EE"
|
|
403
|
+
}
|
|
196
404
|
}
|
|
197
405
|
},
|
|
198
406
|
splitArea: {
|
|
@@ -202,23 +410,23 @@ var echarts = __webpack_require__("313e");
|
|
|
202
410
|
},
|
|
203
411
|
legend: {
|
|
204
412
|
textStyle: {
|
|
205
|
-
color: "#
|
|
413
|
+
color: "#333333"
|
|
206
414
|
}
|
|
207
415
|
},
|
|
208
416
|
tooltip: {
|
|
209
|
-
backgroundColor: "rgba(255, 255, 255, 0.95)",
|
|
210
|
-
borderColor: "#DCDFE6",
|
|
211
417
|
borderWidth: 1,
|
|
418
|
+
backgroundColor: "#ffffff",
|
|
212
419
|
textStyle: {
|
|
213
|
-
color: "#
|
|
214
|
-
}
|
|
420
|
+
color: "#333333"
|
|
421
|
+
},
|
|
422
|
+
trigger: "axis"
|
|
215
423
|
}
|
|
216
424
|
});
|
|
217
425
|
|
|
218
|
-
// CONCATENATED MODULE: ./src/components/chart/theme/
|
|
219
|
-
/* harmony default export */ var
|
|
220
|
-
color: ["#
|
|
221
|
-
backgroundColor: "
|
|
426
|
+
// CONCATENATED MODULE: ./src/components/ex-chart/theme/dark.js
|
|
427
|
+
/* harmony default export */ var dark = ({
|
|
428
|
+
color: ["#0de7ff", "#a782ff", "#fcdd60", "#0de7ff", "#ffc5a1", "#6291ae", "#13ce66"],
|
|
429
|
+
backgroundColor: "transparent",
|
|
222
430
|
textStyle: {
|
|
223
431
|
fontFamily: "Microsoft YaHei, sans-serif"
|
|
224
432
|
},
|
|
@@ -308,19 +516,112 @@ var echarts = __webpack_require__("313e");
|
|
|
308
516
|
}
|
|
309
517
|
});
|
|
310
518
|
|
|
311
|
-
// CONCATENATED MODULE: ./src/components/chart/theme/
|
|
312
|
-
/* harmony default export */ var
|
|
313
|
-
color: [
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
"
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
519
|
+
// CONCATENATED MODULE: ./src/components/ex-chart/theme/blue.js
|
|
520
|
+
/* harmony default export */ var blue = ({
|
|
521
|
+
color: ["#2CDEB3", "#A17EE6", "#E57E40", "#409EFF"],
|
|
522
|
+
backgroundColor: "#ffffff",
|
|
523
|
+
textStyle: {
|
|
524
|
+
fontFamily: "Microsoft YaHei, sans-serif"
|
|
525
|
+
},
|
|
526
|
+
title: {
|
|
527
|
+
textStyle: {
|
|
528
|
+
color: "#333"
|
|
529
|
+
},
|
|
530
|
+
subtextStyle: {
|
|
531
|
+
color: "#666666"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
line: {
|
|
535
|
+
itemStyle: {
|
|
536
|
+
},
|
|
537
|
+
lineStyle: {
|
|
538
|
+
width: 2
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
bar: {
|
|
542
|
+
itemStyle: {
|
|
543
|
+
borderRadius: 4
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
pie: {
|
|
547
|
+
roseType: "radius",
|
|
548
|
+
label: {
|
|
549
|
+
color: "#333"
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
radar: {
|
|
553
|
+
indicator: {
|
|
554
|
+
color: "#666666"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
map: {
|
|
558
|
+
label: {
|
|
559
|
+
color: "#333"
|
|
560
|
+
},
|
|
561
|
+
itemStyle: {
|
|
562
|
+
borderColor: "#fff"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
gauge: {
|
|
566
|
+
axisLine: {
|
|
567
|
+
lineStyle: {
|
|
568
|
+
color: [[1, "#5470c6"]]
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
toolbox: {
|
|
573
|
+
iconStyle: {
|
|
574
|
+
borderColor: "#666666"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
axisLine: {
|
|
578
|
+
lineStyle: {
|
|
579
|
+
color: "#DCDFE6"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
axisTick: {
|
|
583
|
+
lineStyle: {
|
|
584
|
+
color: "#DCDFE6"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
splitLine: {
|
|
588
|
+
lineStyle: {
|
|
589
|
+
color: "#ebeef5"
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
splitArea: {
|
|
593
|
+
areaStyle: {
|
|
594
|
+
color: ["#f7f8fa", "#ffffff"]
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
legend: {
|
|
598
|
+
textStyle: {
|
|
599
|
+
color: "#666"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
tooltip: {
|
|
603
|
+
backgroundColor: "rgba(255, 255, 255, 0.95)",
|
|
604
|
+
borderColor: "#DCDFE6",
|
|
605
|
+
borderWidth: 1,
|
|
606
|
+
textStyle: {
|
|
607
|
+
color: "#333"
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
|
|
612
|
+
// CONCATENATED MODULE: ./src/components/ex-chart/theme/starry.js
|
|
613
|
+
/* harmony default export */ var starry = ({
|
|
614
|
+
color: [
|
|
615
|
+
"#1685a9", // 石青
|
|
616
|
+
"#21a675", // 松柏绿
|
|
617
|
+
"#1bd1a5", // 飞燕草蓝
|
|
618
|
+
"#8c4356", // 绛紫
|
|
619
|
+
"#0dafc6", // 孔雀蓝
|
|
620
|
+
"#4b5cc4", // 宝蓝
|
|
621
|
+
"#758a99", // 墨灰
|
|
622
|
+
"#cca4e3", // 丁香色
|
|
623
|
+
"#205277", // 靛青色
|
|
624
|
+
"#d9b611", // 秋香色
|
|
324
625
|
"#ff8c31", // 杏红
|
|
325
626
|
"#9d2933", // 胭脂
|
|
326
627
|
"#0288c5", // 浅靛青蓝
|
|
@@ -416,7 +717,7 @@ var echarts = __webpack_require__("313e");
|
|
|
416
717
|
}
|
|
417
718
|
});
|
|
418
719
|
|
|
419
|
-
// CONCATENATED MODULE: ./src/components/chart/theme/orange.js
|
|
720
|
+
// CONCATENATED MODULE: ./src/components/ex-chart/theme/orange.js
|
|
420
721
|
/* harmony default export */ var orange = ({
|
|
421
722
|
color: ["#e69419", "#A5b4da", "#F8792C", "#97bfb4", "#de747b", "#d6bac0", "#e62737", "#f35969", "#f1ccb0", "#b7394e", "#fe9c1c2"],
|
|
422
723
|
backgroundColor: "#ffffff",
|
|
@@ -510,9 +811,7 @@ var echarts = __webpack_require__("313e");
|
|
|
510
811
|
}
|
|
511
812
|
});
|
|
512
813
|
|
|
513
|
-
// CONCATENATED MODULE: ./src/components/chart/utils.js
|
|
514
|
-
|
|
515
|
-
|
|
814
|
+
// CONCATENATED MODULE: ./src/components/ex-chart/utils.js
|
|
516
815
|
|
|
517
816
|
|
|
518
817
|
|
|
@@ -528,8 +827,22 @@ const themeKeys = {
|
|
|
528
827
|
"orange": orange
|
|
529
828
|
};
|
|
530
829
|
|
|
531
|
-
|
|
532
|
-
|
|
830
|
+
// echarts 仅在客户端加载,避免 SSR 编译/渲染报错
|
|
831
|
+
let echarts = null;
|
|
832
|
+
|
|
833
|
+
function getEcharts() {
|
|
834
|
+
if (!echarts && typeof window !== 'undefined') {
|
|
835
|
+
try {
|
|
836
|
+
echarts = __webpack_require__("313e");
|
|
837
|
+
// 注册所有主题
|
|
838
|
+
for (const key in themeKeys) {
|
|
839
|
+
echarts.registerTheme(key, themeKeys[key]);
|
|
840
|
+
}
|
|
841
|
+
} catch (e) {
|
|
842
|
+
console.warn('[ExChart] echarts 加载失败:', e.message);
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
return echarts;
|
|
533
846
|
}
|
|
534
847
|
|
|
535
848
|
// 字体大小配置
|
|
@@ -675,6 +988,10 @@ EchartsUtil.applyFontSize = function(themeOption, size) {
|
|
|
675
988
|
};
|
|
676
989
|
|
|
677
990
|
EchartsUtil.init = function(dom, theme, customOption, size) {
|
|
991
|
+
const ec = getEcharts();
|
|
992
|
+
// SSR 环境下忽略初始化
|
|
993
|
+
if (!ec || !dom) return null;
|
|
994
|
+
|
|
678
995
|
theme = theme || "default";
|
|
679
996
|
size = size || "medium";
|
|
680
997
|
customOption = customOption || {};
|
|
@@ -691,7 +1008,7 @@ EchartsUtil.init = function(dom, theme, customOption, size) {
|
|
|
691
1008
|
|
|
692
1009
|
const option = this.mergeOptions(themeOption, customOption);
|
|
693
1010
|
|
|
694
|
-
const chart =
|
|
1011
|
+
const chart = ec.init(dom, useTheme);
|
|
695
1012
|
chart.setOption(option, true);
|
|
696
1013
|
|
|
697
1014
|
this.chartInstanceList.push({
|
|
@@ -706,7 +1023,8 @@ EchartsUtil.init = function(dom, theme, customOption, size) {
|
|
|
706
1023
|
};
|
|
707
1024
|
|
|
708
1025
|
EchartsUtil.changeSingleTheme = function(dom, chartIns, customOption, newTheme) {
|
|
709
|
-
|
|
1026
|
+
const ec = getEcharts();
|
|
1027
|
+
if (!ec || !dom || !chartIns) return;
|
|
710
1028
|
|
|
711
1029
|
customOption = customOption || {};
|
|
712
1030
|
newTheme = newTheme || "default";
|
|
@@ -714,7 +1032,7 @@ EchartsUtil.changeSingleTheme = function(dom, chartIns, customOption, newTheme)
|
|
|
714
1032
|
this.currentTheme = newTheme;
|
|
715
1033
|
chartIns.dispose();
|
|
716
1034
|
|
|
717
|
-
const newChart =
|
|
1035
|
+
const newChart = ec.init(dom, newTheme, customOption);
|
|
718
1036
|
|
|
719
1037
|
const item = this.chartInstanceList.find(function(v) {
|
|
720
1038
|
return v.dom === dom;
|
|
@@ -727,26 +1045,37 @@ EchartsUtil.changeSingleTheme = function(dom, chartIns, customOption, newTheme)
|
|
|
727
1045
|
return newChart;
|
|
728
1046
|
};
|
|
729
1047
|
|
|
730
|
-
EchartsUtil.changeAllTheme = function(newTheme) {
|
|
731
|
-
|
|
1048
|
+
EchartsUtil.changeAllTheme = function(newTheme, newSize) {
|
|
1049
|
+
const ec = getEcharts();
|
|
1050
|
+
if (!ec || !newTheme) return;
|
|
732
1051
|
|
|
733
1052
|
this.currentTheme = newTheme;
|
|
1053
|
+
// 如果传入了新的 size,则更新全局 size
|
|
1054
|
+
if (newSize) {
|
|
1055
|
+
this.currentSize = newSize;
|
|
1056
|
+
}
|
|
734
1057
|
|
|
735
1058
|
this.chartInstanceList.forEach(function(item) {
|
|
736
1059
|
const dom = item.dom;
|
|
737
1060
|
const chart = item.chart;
|
|
738
1061
|
const customOption = item.customOption;
|
|
1062
|
+
// 使用图表自己的 size,如果没有则使用全局 size
|
|
1063
|
+
const useSize = item.size || EchartsUtil.currentSize;
|
|
739
1064
|
|
|
740
1065
|
if (chart) {
|
|
741
1066
|
chart.dispose();
|
|
742
1067
|
}
|
|
743
1068
|
|
|
744
|
-
const newChart =
|
|
745
|
-
|
|
1069
|
+
const newChart = ec.init(dom, newTheme);
|
|
1070
|
+
let themeOption = themeKeys[newTheme];
|
|
1071
|
+
// 应用字体大小配置
|
|
1072
|
+
themeOption = EchartsUtil.applyFontSize(themeOption, useSize);
|
|
746
1073
|
const option = EchartsUtil.mergeOptions(themeOption, customOption);
|
|
747
1074
|
|
|
748
1075
|
newChart.setOption(option, true);
|
|
749
1076
|
item.chart = newChart;
|
|
1077
|
+
// 更新图表的 size 记录
|
|
1078
|
+
item.size = useSize;
|
|
750
1079
|
EchartsUtil.bindResize(newChart);
|
|
751
1080
|
});
|
|
752
1081
|
};
|
|
@@ -788,317 +1117,18 @@ EchartsUtil.destroyAll = function() {
|
|
|
788
1117
|
|
|
789
1118
|
/***/ }),
|
|
790
1119
|
|
|
791
|
-
/***/ "
|
|
792
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
793
|
-
|
|
794
|
-
"use strict";
|
|
795
|
-
// ESM COMPAT FLAG
|
|
796
|
-
__webpack_require__.r(__webpack_exports__);
|
|
797
|
-
|
|
798
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f5ad930a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/chart/ExMulti.vue?vue&type=template&id=6f25e9c5&scoped=true
|
|
799
|
-
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"multilinechart",staticClass:"multiline-box"})
|
|
800
|
-
}
|
|
801
|
-
var staticRenderFns = []
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
// CONCATENATED MODULE: ./src/components/chart/ExMulti.vue?vue&type=template&id=6f25e9c5&scoped=true
|
|
805
|
-
|
|
806
|
-
// EXTERNAL MODULE: ./src/components/chart/utils.js + 5 modules
|
|
807
|
-
var utils = __webpack_require__("202d");
|
|
808
|
-
|
|
809
|
-
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/chart/ExMulti.vue?vue&type=script&lang=js
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
/* harmony default export */ var ExMultivue_type_script_lang_js = ({
|
|
813
|
-
name: "XtMulti",
|
|
814
|
-
props: {
|
|
815
|
-
isDark: {
|
|
816
|
-
type: Boolean, // 设置文字标线为白色系
|
|
817
|
-
default: false
|
|
818
|
-
},
|
|
819
|
-
theme: {},
|
|
820
|
-
size: {
|
|
821
|
-
type: String,
|
|
822
|
-
default: "medium"
|
|
823
|
-
},
|
|
824
|
-
config: {
|
|
825
|
-
type: Object,
|
|
826
|
-
default() {
|
|
827
|
-
return {
|
|
828
|
-
interval: 0,
|
|
829
|
-
rotate: 0,
|
|
830
|
-
gridbottom: 40,
|
|
831
|
-
isShowthreshold: false
|
|
832
|
-
|
|
833
|
-
};
|
|
834
|
-
}
|
|
835
|
-
},
|
|
836
|
-
chartData: {
|
|
837
|
-
type: Array,
|
|
838
|
-
default: () => {
|
|
839
|
-
return [
|
|
840
|
-
{
|
|
841
|
-
label: "入户数",
|
|
842
|
-
data: [
|
|
843
|
-
{ label: "01月", value: 980 },
|
|
844
|
-
{ label: "02月", value: 806 },
|
|
845
|
-
{ label: "03月", value: 930 },
|
|
846
|
-
{ label: "04月", value: 804 },
|
|
847
|
-
{ label: "05月", value: 750 },
|
|
848
|
-
{ label: "06月", value: 660 },
|
|
849
|
-
{ label: "07月", value: 780 },
|
|
850
|
-
{ label: "08月", value: 630 },
|
|
851
|
-
{ label: "09月", value: 806 },
|
|
852
|
-
{ label: "10月", value: 950 },
|
|
853
|
-
{ label: "11月", value: 810 },
|
|
854
|
-
{ label: "12月", value: 703 }
|
|
855
|
-
]
|
|
856
|
-
},
|
|
857
|
-
{
|
|
858
|
-
label: "隐患数",
|
|
859
|
-
data: [
|
|
860
|
-
{ label: "01月", value: 200 },
|
|
861
|
-
{ label: "02月", value: 120 },
|
|
862
|
-
{ label: "03月", value: 110 },
|
|
863
|
-
{ label: "04月", value: 109 },
|
|
864
|
-
{ label: "05月", value: 108 },
|
|
865
|
-
{ label: "06月", value: 150 },
|
|
866
|
-
{ label: "07月", value: 126 },
|
|
867
|
-
{ label: "08月", value: 130 },
|
|
868
|
-
{ label: "09月", value: 108 },
|
|
869
|
-
{ label: "10月", value: 109 },
|
|
870
|
-
{ label: "11月", value: 140 },
|
|
871
|
-
{ label: "12月", value: 106 }
|
|
872
|
-
]
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
label: "整改数",
|
|
876
|
-
data: [
|
|
877
|
-
{ label: "01月", value: 25 },
|
|
878
|
-
{ label: "02月", value: 19 },
|
|
879
|
-
{ label: "03月", value: 34 },
|
|
880
|
-
{ label: "04月", value: 12 },
|
|
881
|
-
{ label: "05月", value: 16 },
|
|
882
|
-
{ label: "06月", value: 20 },
|
|
883
|
-
{ label: "07月", value: 19 },
|
|
884
|
-
{ label: "08月", value: 18 },
|
|
885
|
-
{ label: "09月", value: 14 },
|
|
886
|
-
{ label: "10月", value: 12 },
|
|
887
|
-
{ label: "11月", value: 11 },
|
|
888
|
-
{ label: "12月", value: 16 }
|
|
889
|
-
]
|
|
890
|
-
}
|
|
891
|
-
];
|
|
892
|
-
}
|
|
893
|
-
},
|
|
894
|
-
colors: {
|
|
895
|
-
type: Array,
|
|
896
|
-
default: () => { return []; }
|
|
897
|
-
},
|
|
898
|
-
selectedNew: {
|
|
899
|
-
type: Object,
|
|
900
|
-
default: null
|
|
901
|
-
},
|
|
902
|
-
energyType: {
|
|
903
|
-
type: [String, Array],
|
|
904
|
-
default: ""
|
|
905
|
-
}
|
|
906
|
-
},
|
|
907
|
-
data() {
|
|
908
|
-
return {
|
|
909
|
-
myChart: null
|
|
910
|
-
// chartList: []
|
|
911
|
-
};
|
|
912
|
-
},
|
|
913
|
-
watch: {
|
|
914
|
-
chartData: {
|
|
915
|
-
deep: true,
|
|
916
|
-
handler(newVal, oldVal) {
|
|
917
|
-
const _self = this;
|
|
918
|
-
this.myChart && this.myChart.dispose();
|
|
919
|
-
this.myChart = null;
|
|
920
|
-
_self.initChart();
|
|
921
|
-
}
|
|
922
|
-
},
|
|
923
|
-
energyType: {
|
|
924
|
-
deep: true,
|
|
925
|
-
handler(newVal, oldVal) {
|
|
926
|
-
if (newVal && oldVal && newVal.toString() == oldVal.toString()) {
|
|
927
|
-
return;
|
|
928
|
-
}
|
|
929
|
-
this.myChart && this.myChart.dispose();
|
|
930
|
-
this.myChart = null;
|
|
931
|
-
const _self = this;
|
|
932
|
-
_self.initChart();
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
},
|
|
936
|
-
mounted() {
|
|
937
|
-
this.initChart();
|
|
938
|
-
},
|
|
939
|
-
methods: {
|
|
940
|
-
initChart() {
|
|
941
|
-
const _self = this;
|
|
942
|
-
// 数据处理
|
|
943
|
-
const groupYAxis = (unit) => {
|
|
944
|
-
return {
|
|
945
|
-
type: "value",
|
|
946
|
-
name: unit,
|
|
947
|
-
axisLine: {
|
|
948
|
-
show: false,
|
|
949
|
-
lineStyle: {
|
|
950
|
-
}
|
|
951
|
-
},
|
|
952
|
-
axisTick: {
|
|
953
|
-
show: false
|
|
954
|
-
},
|
|
955
|
-
splitLine: {
|
|
956
|
-
lineStyle: {
|
|
957
|
-
type: "dashed"
|
|
958
|
-
}
|
|
959
|
-
},
|
|
960
|
-
axisLabel: {
|
|
961
|
-
formatter: function(value, index) {
|
|
962
|
-
if (value >= 10000 && value < 10000000) {
|
|
963
|
-
value = Math.floor(value / 10000) + "万";
|
|
964
|
-
} else if (value >= 10000000) {
|
|
965
|
-
value = Math.floor(value / 10000000) + "千万";
|
|
966
|
-
}
|
|
967
|
-
return value;
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
};
|
|
971
|
-
};
|
|
972
|
-
const option = {
|
|
973
|
-
legend: {
|
|
974
|
-
right: 20,
|
|
975
|
-
top: 0,
|
|
976
|
-
show: true,
|
|
977
|
-
data: _self.chartData.map((item) => {
|
|
978
|
-
return item.label;
|
|
979
|
-
}),
|
|
980
|
-
selectedMode: "multiple",
|
|
981
|
-
selected: _self.selectedNew,
|
|
982
|
-
textStyle: {
|
|
983
|
-
fontSize: 12
|
|
984
|
-
}
|
|
985
|
-
},
|
|
986
|
-
tooltip: {
|
|
987
|
-
borderWidth: 1,
|
|
988
|
-
trigger: "axis",
|
|
989
|
-
axisPointer: {
|
|
990
|
-
type: "shadow"
|
|
991
|
-
}
|
|
992
|
-
},
|
|
993
|
-
grid: {
|
|
994
|
-
top: "25%",
|
|
995
|
-
left: "40",
|
|
996
|
-
right: "15",
|
|
997
|
-
bottom: this.config.gridbottom == null ? 20 : this.config.gridbottom
|
|
998
|
-
},
|
|
999
|
-
xAxis: {
|
|
1000
|
-
type: "category",
|
|
1001
|
-
// splitLine: {
|
|
1002
|
-
// show: true,
|
|
1003
|
-
// lineStyle: {
|
|
1004
|
-
// type: "dashed"
|
|
1005
|
-
// }
|
|
1006
|
-
// },
|
|
1007
|
-
axisLabel: {
|
|
1008
|
-
rotate: this.config.rotate
|
|
1009
|
-
},
|
|
1010
|
-
data: _self.chartData && _self.chartData.length ? _self.chartData[0].data.map((item) => {
|
|
1011
|
-
return item.label;
|
|
1012
|
-
}) : []
|
|
1013
|
-
},
|
|
1014
|
-
yAxis: typeof _self.energyType == "string" ? groupYAxis(_self.energyType) : this.energyType.map(unit => groupYAxis(unit)),
|
|
1015
|
-
dataZoom: [
|
|
1016
|
-
{
|
|
1017
|
-
type: "inside",
|
|
1018
|
-
xAxisIndex: [0],
|
|
1019
|
-
start: 1,
|
|
1020
|
-
end: 100
|
|
1021
|
-
}
|
|
1022
|
-
],
|
|
1023
|
-
series: this.getSeriesData()
|
|
1024
|
-
};
|
|
1025
|
-
this.myChart = utils["a" /* default */].init(_self.$refs.multilinechart, this.theme, option, this.size);
|
|
1026
|
-
},
|
|
1027
|
-
getSeriesData() {
|
|
1028
|
-
// 创建 24小时 时间数据填充对象
|
|
1029
|
-
const _self = this;
|
|
1030
|
-
|
|
1031
|
-
const _seriesData = [];
|
|
1032
|
-
_self.chartData.map((item, ind) => {
|
|
1033
|
-
// debugger;
|
|
1034
|
-
const _isNUll = item.data.some(it => !it.value || it.value == "--");
|
|
1035
|
-
const _itemNull = {
|
|
1036
|
-
type: "",
|
|
1037
|
-
name: item.label,
|
|
1038
|
-
connectNulls: true, // 断点连线,true-连接,false-不连接
|
|
1039
|
-
data: item.data.map(it => it.value),
|
|
1040
|
-
tooltip: {
|
|
1041
|
-
show: false
|
|
1042
|
-
}
|
|
1043
|
-
};
|
|
1044
|
-
const _item = {
|
|
1045
|
-
animation: true,
|
|
1046
|
-
name: item.label,
|
|
1047
|
-
type: item.type || "bar",
|
|
1048
|
-
avoidLabelOverlap: true,
|
|
1049
|
-
data: item.data.map(it => it.value)
|
|
1050
|
-
};
|
|
1051
|
-
_seriesData.push(_item);
|
|
1052
|
-
});
|
|
1053
|
-
return _seriesData;
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
});
|
|
1057
|
-
|
|
1058
|
-
// CONCATENATED MODULE: ./src/components/chart/ExMulti.vue?vue&type=script&lang=js
|
|
1059
|
-
/* harmony default export */ var chart_ExMultivue_type_script_lang_js = (ExMultivue_type_script_lang_js);
|
|
1060
|
-
// EXTERNAL MODULE: ./src/components/chart/ExMulti.vue?vue&type=style&index=0&id=6f25e9c5&prod&lang=scss&scoped=true
|
|
1061
|
-
var ExMultivue_type_style_index_0_id_6f25e9c5_prod_lang_scss_scoped_true = __webpack_require__("8d67");
|
|
1062
|
-
|
|
1063
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1064
|
-
var componentNormalizer = __webpack_require__("2877");
|
|
1065
|
-
|
|
1066
|
-
// CONCATENATED MODULE: ./src/components/chart/ExMulti.vue
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
/* normalize component */
|
|
1074
|
-
|
|
1075
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1076
|
-
chart_ExMultivue_type_script_lang_js,
|
|
1077
|
-
render,
|
|
1078
|
-
staticRenderFns,
|
|
1079
|
-
false,
|
|
1080
|
-
null,
|
|
1081
|
-
"6f25e9c5",
|
|
1082
|
-
null
|
|
1083
|
-
|
|
1084
|
-
)
|
|
1085
|
-
|
|
1086
|
-
/* harmony default export */ var ExMulti = __webpack_exports__["default"] = (component.exports);
|
|
1087
|
-
|
|
1088
|
-
/***/ }),
|
|
1089
|
-
|
|
1090
|
-
/***/ "8d67":
|
|
1120
|
+
/***/ "a68f":
|
|
1091
1121
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1092
1122
|
|
|
1093
1123
|
"use strict";
|
|
1094
|
-
/* harmony import */ var
|
|
1095
|
-
/* harmony import */ var
|
|
1124
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExMulti_vue_vue_type_style_index_0_id_18661424_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f7d1");
|
|
1125
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExMulti_vue_vue_type_style_index_0_id_18661424_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExMulti_vue_vue_type_style_index_0_id_18661424_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
1096
1126
|
/* unused harmony reexport * */
|
|
1097
1127
|
|
|
1098
1128
|
|
|
1099
1129
|
/***/ }),
|
|
1100
1130
|
|
|
1101
|
-
/***/ "
|
|
1131
|
+
/***/ "f7d1":
|
|
1102
1132
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1103
1133
|
|
|
1104
1134
|
// extracted by mini-css-extract-plugin
|