epx-frame 4.1.12 → 4.1.13
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/4.js +1 -1
- package/lib/chart.js +27 -20
- package/lib/epx-frame.common.js +1 -1
- package/package.json +1 -1
package/lib/chart.js
CHANGED
|
@@ -17313,8 +17313,8 @@ var Table_component = Object(componentNormalizer["a" /* default */])(
|
|
|
17313
17313
|
)
|
|
17314
17314
|
|
|
17315
17315
|
/* harmony default export */ var Table = (Table_component.exports);
|
|
17316
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/chart/Common.vue?vue&type=template&id=
|
|
17317
|
-
var
|
|
17316
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/chart/Common.vue?vue&type=template&id=08c7ff96
|
|
17317
|
+
var Commonvue_type_template_id_08c7ff96_render = function () {
|
|
17318
17318
|
var _vm = this
|
|
17319
17319
|
var _h = _vm.$createElement
|
|
17320
17320
|
var _c = _vm._self._c || _h
|
|
@@ -17573,11 +17573,11 @@ var Commonvue_type_template_id_2440ef9a_render = function () {
|
|
|
17573
17573
|
]
|
|
17574
17574
|
)
|
|
17575
17575
|
}
|
|
17576
|
-
var
|
|
17577
|
-
|
|
17576
|
+
var Commonvue_type_template_id_08c7ff96_staticRenderFns = []
|
|
17577
|
+
Commonvue_type_template_id_08c7ff96_render._withStripped = true
|
|
17578
17578
|
|
|
17579
17579
|
|
|
17580
|
-
// CONCATENATED MODULE: ./src/frame/packages/chart/Common.vue?vue&type=template&id=
|
|
17580
|
+
// CONCATENATED MODULE: ./src/frame/packages/chart/Common.vue?vue&type=template&id=08c7ff96
|
|
17581
17581
|
|
|
17582
17582
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
17583
17583
|
var esm_typeof = __webpack_require__(4);
|
|
@@ -18076,18 +18076,8 @@ var Commonvue_type_script_lang_js_excluded = ["total", "colItemSize", "rowItemSi
|
|
|
18076
18076
|
this.oldScopeParams = this.$_.cloneDeep(this.allScopeParams);
|
|
18077
18077
|
this.getDefaultConfigs();
|
|
18078
18078
|
this.getChartData().then(function (data) {
|
|
18079
|
-
var config = Object(objectSpread2["a" /* default */])({}, _this11.chartConfig);
|
|
18080
|
-
for (var key in _this11.defaultConfigs) {
|
|
18081
|
-
if (!_this11.chartConfig[key]) {
|
|
18082
|
-
config[key] = _this11.defaultConfigs[key];
|
|
18083
|
-
} else {
|
|
18084
|
-
if (Object(esm_typeof["a" /* default */])(_this11.chartConfig[key]) === 'object' && !Array.isArray(_this11.chartConfig[key])) {
|
|
18085
|
-
config[key] = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, _this11.defaultConfigs[key]), _this11.chartConfig[key]);
|
|
18086
|
-
}
|
|
18087
|
-
}
|
|
18088
|
-
}
|
|
18089
18079
|
// 绘制图表
|
|
18090
|
-
_this11.getChartOption(
|
|
18080
|
+
_this11.getChartOption(_this11.chartConfig, data);
|
|
18091
18081
|
if (!_this11.hasData) return;
|
|
18092
18082
|
_this11.createChart();
|
|
18093
18083
|
_this11.resizeObserver = _this11.openObserver();
|
|
@@ -18141,7 +18131,7 @@ var Commonvue_type_script_lang_js_excluded = ["total", "colItemSize", "rowItemSi
|
|
|
18141
18131
|
var data = configs.series[0].data.map(function (item) {
|
|
18142
18132
|
return item.name || '';
|
|
18143
18133
|
});
|
|
18144
|
-
if (configs.xAxis.type === 'value') {
|
|
18134
|
+
if (configs.xAxis && configs.xAxis.type === 'value') {
|
|
18145
18135
|
configs.yAxis.type = 'category';
|
|
18146
18136
|
configs.yAxis.data = data;
|
|
18147
18137
|
} else {
|
|
@@ -18159,6 +18149,10 @@ var Commonvue_type_script_lang_js_excluded = ["total", "colItemSize", "rowItemSi
|
|
|
18159
18149
|
if (value.showArea) {
|
|
18160
18150
|
delete value.showArea;
|
|
18161
18151
|
value.areaStyle = {};
|
|
18152
|
+
} else {
|
|
18153
|
+
if (_this12.$_.isEmpty(value.areaStyle)) {
|
|
18154
|
+
delete value.areaStyle;
|
|
18155
|
+
}
|
|
18162
18156
|
}
|
|
18163
18157
|
if (value.radius) {
|
|
18164
18158
|
item = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, value), {}, {
|
|
@@ -18346,6 +18340,9 @@ var Commonvue_type_script_lang_js_excluded = ["total", "colItemSize", "rowItemSi
|
|
|
18346
18340
|
nullShowPosition: nullShowPosition,
|
|
18347
18341
|
totalFlag: totalFlag
|
|
18348
18342
|
});
|
|
18343
|
+
if (this.designMode) {
|
|
18344
|
+
params.entityId = 'FM_REPORT_BASE';
|
|
18345
|
+
}
|
|
18349
18346
|
if (this.chartCache || this.chartConfigs.chartCache) {
|
|
18350
18347
|
params.dataStatisType = 'cache';
|
|
18351
18348
|
}
|
|
@@ -18364,7 +18361,17 @@ var Commonvue_type_script_lang_js_excluded = ["total", "colItemSize", "rowItemSi
|
|
|
18364
18361
|
_this13.$message.error(err.message);
|
|
18365
18362
|
});
|
|
18366
18363
|
},
|
|
18367
|
-
getChartOption: function getChartOption(
|
|
18364
|
+
getChartOption: function getChartOption(chartConfig, data) {
|
|
18365
|
+
var config = Object(objectSpread2["a" /* default */])({}, chartConfig);
|
|
18366
|
+
for (var key in this.defaultConfigs) {
|
|
18367
|
+
if (!this.chartConfig[key]) {
|
|
18368
|
+
config[key] = this.defaultConfigs[key];
|
|
18369
|
+
} else {
|
|
18370
|
+
if (Object(esm_typeof["a" /* default */])(chartConfig[key]) === 'object' && !Array.isArray(chartConfig[key])) {
|
|
18371
|
+
config[key] = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, this.defaultConfigs[key]), this.chartConfig[key]);
|
|
18372
|
+
}
|
|
18373
|
+
}
|
|
18374
|
+
}
|
|
18368
18375
|
var total = data.total,
|
|
18369
18376
|
colItemSize = data.colItemSize,
|
|
18370
18377
|
rowItemSize = data.rowItemSize,
|
|
@@ -18652,8 +18659,8 @@ var Commonvue_type_script_lang_js_excluded = ["total", "colItemSize", "rowItemSi
|
|
|
18652
18659
|
|
|
18653
18660
|
var Common_component = Object(componentNormalizer["a" /* default */])(
|
|
18654
18661
|
chart_Commonvue_type_script_lang_js,
|
|
18655
|
-
|
|
18656
|
-
|
|
18662
|
+
Commonvue_type_template_id_08c7ff96_render,
|
|
18663
|
+
Commonvue_type_template_id_08c7ff96_staticRenderFns,
|
|
18657
18664
|
false,
|
|
18658
18665
|
null,
|
|
18659
18666
|
null,
|