更新前端src/views/data-visualization目录文件
This commit is contained in:
parent
caaaeab417
commit
8b6554263e
@ -9,8 +9,6 @@ import EmptyBackground from '@/components/empty-background/src/EmptyBackground.v
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useAppStoreWithOut } from '@/store/modules/app'
|
||||
import { initCanvasData, initCanvasDataPrepare, onInitReady } from '@/utils/canvasUtils'
|
||||
import { useRequestStoreWithOut } from '@/store/modules/request'
|
||||
import { usePermissionStoreWithOut } from '@/store/modules/permission'
|
||||
import { useMoveLine } from '@/hooks/web/useMoveLine'
|
||||
import { Icon } from '@/components/icon-custom'
|
||||
import { download2AppTemplate, downloadCanvas2 } from '@/utils/imgUtils'
|
||||
@ -32,7 +30,6 @@ const { dvInfo, canvasViewDataInfo } = storeToRefs(dvMainStore)
|
||||
const previewCanvasContainer = ref(null)
|
||||
const dvPreviewRef = ref(null)
|
||||
const slideShow = ref(true)
|
||||
const permissionStore = usePermissionStoreWithOut()
|
||||
const dataInitState = ref(true)
|
||||
const downloadStatus = ref(false)
|
||||
const { width, node } = useMoveLine('DASHBOARD')
|
||||
@ -47,6 +44,11 @@ const props = defineProps({
|
||||
required: false,
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
resourceTable: {
|
||||
required: false,
|
||||
type: String,
|
||||
default: 'core'
|
||||
}
|
||||
})
|
||||
|
||||
@ -76,7 +78,7 @@ const loadCanvasData = (dvId, weight?, ext?) => {
|
||||
dataInitState.value = false
|
||||
initMethod(
|
||||
dvId,
|
||||
'dataV',
|
||||
{ busiFlag: 'dataV', resourceTable: 'core' },
|
||||
function ({
|
||||
canvasDataResult,
|
||||
canvasStyleResult,
|
||||
@ -251,12 +253,13 @@ onBeforeMount(() => {
|
||||
v-show="slideShow"
|
||||
:cur-canvas-type="'dataV'"
|
||||
:show-position="showPosition"
|
||||
:resource-table="resourceTable"
|
||||
@node-click="resourceNodeClick"
|
||||
/>
|
||||
</el-aside>
|
||||
<el-container
|
||||
class="preview-area"
|
||||
:class="{ 'no-data': !hasTreeData }"
|
||||
:class="{ 'no-data': !state.dvInfo?.id }"
|
||||
v-loading="!dataInitState"
|
||||
>
|
||||
<div @click="slideOpenChange" class="flexible-button-area" v-if="false">
|
||||
|
Loading…
Reference in New Issue
Block a user