From 6ea58bf7fd572e26d249869fb1e987ddeece2184 Mon Sep 17 00:00:00 2001
From: wangjiahao <1522128093@qq.com>
Date: Wed, 10 Jul 2024 14:00:03 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF?=
=?UTF-8?q?=E6=8A=A5=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/data-visualization/PreviewShow.vue | 34 ++++++-------------
1 file changed, 11 insertions(+), 23 deletions(-)
diff --git a/core/core-frontend/src/views/data-visualization/PreviewShow.vue b/core/core-frontend/src/views/data-visualization/PreviewShow.vue
index d297dd695b..96bfdbaabf 100644
--- a/core/core-frontend/src/views/data-visualization/PreviewShow.vue
+++ b/core/core-frontend/src/views/data-visualization/PreviewShow.vue
@@ -15,9 +15,9 @@ import { Icon } from '@/components/icon-custom'
import { download2AppTemplate, downloadCanvas2 } from '@/utils/imgUtils'
import MultiplexPreviewShow from '@/views/data-visualization/MultiplexPreviewShow.vue'
import DvPreview from '@/views/data-visualization/DvPreview.vue'
-import AppExportForm from "@/components/de-app/AppExportForm.vue";
-import {personInfoApi} from "@/api/user";
-import {ElMessage} from "element-plus-secondary";
+import AppExportForm from '@/components/de-app/AppExportForm.vue'
+import { personInfoApi } from '@/api/user'
+import { ElMessage } from 'element-plus-secondary'
const dvMainStore = dvMainStoreWithOut()
const { dvInfo, canvasViewDataInfo } = storeToRefs(dvMainStore)
@@ -114,10 +114,10 @@ const downloadAsAppTemplate = downloadType => {
})
}
-const downLoadToAppPre =()=>{
+const downLoadToAppPre = () => {
const result = checkTemplate()
if (result && result.length > 0) {
- ElMessage.warning(`当前仪表板中[${result}]属于模版视图,无法导出,请先设置数据集!`,)
+ ElMessage.warning(`当前仪表板中[${result}]属于模版视图,无法导出,请先设置数据集!`)
} else {
appExportFormRef.value.init({
appName: dvInfo.value.name,
@@ -129,7 +129,7 @@ const downLoadToAppPre =()=>{
})
}
}
-const checkTemplate =()=> {
+const checkTemplate = () => {
let templateViewNames = ','
Object.keys(canvasViewDataInfo.value).forEach(key => {
const viewInfo = canvasViewDataInfo.value[key]
@@ -139,20 +139,9 @@ const checkTemplate =()=> {
})
return templateViewNames.slice(1)
}
-const downLoadToApp = (appAttachInfo) =>{
- this.dataLoading = true
- export2AppCheck(this.$store.state.panel.panelInfo.id).then(rsp => {
- if (rsp.data.checkStatus) {
- this.saveAppFile(rsp.data, appAttachInfo)
- } else {
- this.dataLoading = false
- this.$message({
- message: rsp.data.checkMes,
- type: 'error'
- })
- }
- })
-},
+const downLoadToApp = appAttachInfo => {
+ // do attach
+}
const slideOpenChange = () => {
slideShow.value = !slideShow.value
@@ -192,7 +181,7 @@ const getPreviewStateInfo = () => {
return state
}
-const downLoadApp = (appAttachInfo) =>{
+const downLoadApp = appAttachInfo => {
downLoadToApp(appAttachInfo)
}
@@ -302,8 +291,7 @@ onBeforeMount(() => {
-
+