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