diff --git a/backend/src/main/java/io/dataease/ext/ExtChartViewMapper.xml b/backend/src/main/java/io/dataease/ext/ExtChartViewMapper.xml index 7fc57a374f..68b45e2614 100644 --- a/backend/src/main/java/io/dataease/ext/ExtChartViewMapper.xml +++ b/backend/src/main/java/io/dataease/ext/ExtChartViewMapper.xml @@ -365,6 +365,7 @@ custom_filter, drill_fields, SNAPSHOT, + senior, data_from) SELECT pv_copy.chart_view_id AS id, `name`, @@ -392,6 +393,7 @@ custom_filter, drill_fields, SNAPSHOT, + senior, data_from FROM ( SELECT panel_id, diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue index bf683a80d9..98add1ebf9 100644 --- a/frontend/src/components/DeDrag/index.vue +++ b/frontend/src/components/DeDrag/index.vue @@ -751,6 +751,9 @@ export default { } return [null, null] }, + triggerPluginEdit(e) { + this.elementMouseDown(e) + }, // 元素触摸按下 elementTouchDown(e) { eventsFor = events.touch diff --git a/frontend/src/components/canvas/components/Editor/Preview.vue b/frontend/src/components/canvas/components/Editor/Preview.vue index 517ca5e989..6e15a7685b 100644 --- a/frontend/src/components/canvas/components/Editor/Preview.vue +++ b/frontend/src/components/canvas/components/Editor/Preview.vue @@ -2,10 +2,11 @@
-
-            
-            {{ $t('panel.panel_off') }}
-        
+
+ +
+ {{ $t('panel.panel_off') }} +
{{ $t('panel.panelNull') }} diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue index e48d8a95fc..c5c50d1b3e 100644 --- a/frontend/src/components/canvas/components/Editor/index.vue +++ b/frontend/src/components/canvas/components/Editor/index.vue @@ -100,6 +100,7 @@ :h="getShapeStyleIntDeDrag(item.style,'height')" :canvas-style-data="canvasStyleData" @input="handleInput" + @trigger-plugin-edit="pluginEditHandler" /> @@ -1067,6 +1068,21 @@ export default { created() { }, methods: { + pluginEditHandler({ e, id }) { + let index = -1 + for (let i = 0; i < this.componentData.length; i++) { + const item = this.componentData[i] + const itemId = item.id + if (id === itemId) { + index = i + break + } + } + if (index >= 0) { + const _this = this + _this.$refs.deDragRef && _this.$refs.deDragRef[index] && _this.$refs.deDragRef[index].triggerPluginEdit && _this.$refs.deDragRef[index].triggerPluginEdit(e) + } + }, linkageActiveCheck(item) { return this.linkageSettingStatus && item === this.curLinkageView }, diff --git a/frontend/src/components/canvas/custom-component/UserView.vue b/frontend/src/components/canvas/custom-component/UserView.vue index bb6b9fd515..80ec0dabac 100644 --- a/frontend/src/components/canvas/custom-component/UserView.vue +++ b/frontend/src/components/canvas/custom-component/UserView.vue @@ -36,6 +36,7 @@ class="chart-class" @onChartClick="chartClick" @onJumpClick="jumpClick" + @trigger-edit-click="pluginEditHandler" /> { + this.componentViewsData[this.chart.id] = response.data + }) + } else { + this.componentViewsData[this.chart.id] = sourceResponseData + } + } } } } diff --git a/frontend/src/components/canvas/custom-component/component-list.js b/frontend/src/components/canvas/custom-component/component-list.js index dc16d07ba3..ca788f5547 100644 --- a/frontend/src/components/canvas/custom-component/component-list.js +++ b/frontend/src/components/canvas/custom-component/component-list.js @@ -411,8 +411,7 @@ const list = [ verticalAlign: 'middle', borderStyle: 'solid', borderColor: '#000000', - time_margin: 0, - padding: 10 + time_margin: 0 }, formatInfo: { openMode: '0', diff --git a/frontend/src/views/chart/chart/gauge/gauge.js b/frontend/src/views/chart/chart/gauge/gauge.js index 477d155d4d..9c45f7f8d7 100644 --- a/frontend/src/views/chart/chart/gauge/gauge.js +++ b/frontend/src/views/chart/chart/gauge/gauge.js @@ -130,7 +130,7 @@ export function baseGaugeOption(chart_option, chart, scale = 1) { } } } - console.log(chart_option.series[0]) + // console.log(chart_option.series[0]) // console.log(chart_option); componentStyle(chart_option, chart) return chart_option diff --git a/frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue b/frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue index fc352ee843..ae1c84dee0 100644 --- a/frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue +++ b/frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue @@ -71,7 +71,7 @@ - + diff --git a/frontend/src/views/chart/components/drag-item/ChartDragItem.vue b/frontend/src/views/chart/components/drag-item/ChartDragItem.vue index 134968c658..1f0343777d 100644 --- a/frontend/src/views/chart/components/drag-item/ChartDragItem.vue +++ b/frontend/src/views/chart/components/drag-item/ChartDragItem.vue @@ -257,7 +257,7 @@ export default { .item-span-style{ display: inline-block; - width: 100px; + width: 80px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; diff --git a/frontend/src/views/chart/components/normal/LabelNormalText.vue b/frontend/src/views/chart/components/normal/LabelNormalText.vue index b60dc5ac2e..5da713827e 100644 --- a/frontend/src/views/chart/components/normal/LabelNormalText.vue +++ b/frontend/src/views/chart/components/normal/LabelNormalText.vue @@ -1,5 +1,5 @@