diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue
index 3106b30..4b4ef4c 100644
--- a/frontend/src/views/chart/view/ChartEdit.vue
+++ b/frontend/src/views/chart/view/ChartEdit.vue
@@ -286,6 +286,27 @@
{{ $t('chart.placeholder_field') }}
+
+
+ {{ $t('chart.drag_block_table_data_row') }}
+ /
+ {{ $t('chart.dimension') }}
+
+
+
+
+
+
+
{{ $t('chart.drag_block_table_data_column') }}
@@ -920,7 +941,7 @@ export default {
ele.filter = []
}
})
- if (view.type === 'chart-mix') {
+ if (view.type === 'chart-mix' || view.type === 'table-normal') {
view.yaxisExt.forEach(function(ele) {
if (!ele.chartType) {
ele.chartType = 'bar'
@@ -1046,6 +1067,10 @@ export default {
this.view.customAttr = this.view.customAttr ? JSON.parse(this.view.customAttr) : {}
this.view.customStyle = this.view.customStyle ? JSON.parse(this.view.customStyle) : {}
this.view.customFilter = this.view.customFilter ? JSON.parse(this.view.customFilter) : {}
+ console.log(this.view.xaxis)
+ console.log(this.view.yaxis)
+ console.log(this.view.yaxisExt)
+ console.log(this.view.type)
// 将视图传入echart组件
this.chart = response.data
this.data = response.data.data
@@ -1120,6 +1145,11 @@ export default {
this.save(true)
},
+ dimensionRowItemRemove(item) {
+ this.view.yaxisExt.splice(item.index, 1)
+ this.save(true)
+ },
+
quotaItemChange(item) {
// 更新item
// this.view.yaxis.forEach(function(ele) {
@@ -1405,6 +1435,12 @@ export default {
this.dragMoveDuplicate(this.view.xaxis, e)
this.save(true)
},
+ addRowXaxis(e) {
+ this.view.yaxisExt = [this.view.yaxisExt[0]]
+ this.dragCheckType(this.view.yaxisExt, 'd')
+ this.dragMoveDuplicate(this.view.yaxisExt, e)
+ this.save(true)
+ },
addYaxis(e) {
if (this.view.type === 'map' && this.view.yaxis.length > 1) {
this.view.yaxis = [this.view.yaxis[0]]