diff --git a/core/frontend/src/components/canvas/customComponent/UserView.vue b/core/frontend/src/components/canvas/customComponent/UserView.vue
index e24a7da4f5..76db594dc8 100644
--- a/core/frontend/src/components/canvas/customComponent/UserView.vue
+++ b/core/frontend/src/components/canvas/customComponent/UserView.vue
@@ -154,15 +154,39 @@
v-if="chartDetailsVisible"
style="position: absolute;right: 70px;top:15px"
>
-
- {{ $t('chart.export_img') }}
-
+
+
+ 导出分辨率
+
+
+
+
+
+
+
+ {{ $t('chart.export_img') }}
+
+
+
{
+ this.$refs['userViewDialog'].exportViewImg(this.pixel,() => {
this.imageDownloading = false
})
},
diff --git a/core/frontend/src/components/canvas/customComponent/UserViewDialog.vue b/core/frontend/src/components/canvas/customComponent/UserViewDialog.vue
index 52fdbf2d85..abde76c736 100644
--- a/core/frontend/src/components/canvas/customComponent/UserViewDialog.vue
+++ b/core/frontend/src/components/canvas/customComponent/UserViewDialog.vue
@@ -13,7 +13,6 @@
>
@@ -23,6 +22,7 @@
>
{
this.exporting = true
+ this.resizeChart()
setTimeout(() => {
exportImg(this.chart.name, (params) => {
this.exporting = false
+ this.resizeChart()
setTimeout(() => {
this.exportLoading = false
}, 500)
@@ -286,6 +303,13 @@ export default {
renderComponent() {
return this.chart.render
+ },
+ resizeChart() {
+ if (this.$refs[this.element.propValue.id]) {
+ this.chart.isPlugin
+ ? this.$refs[this.element.propValue.id].callPluginInner({ methodName: 'chartResize' })
+ : this.$refs[this.element.propValue.id].chartResize()
+ }
}
}
}
@@ -320,8 +344,8 @@ export default {
background-size: 100% 100% !important;
}
.canvas-class-exporting {
- width: 1080px!important;
- height: 560px!important;
+ width: 1980px!important;
+ height: 860px!important;
}
.abs-container {