2021-03-03 15:06:52 +08:00
|
|
|
<template>
|
2021-10-08 17:22:21 +08:00
|
|
|
<!-- <de-container v-loading="$store.getters.loadingMap[$store.getters.currentPath]" style="background-color: #f7f8fa"> -->
|
|
|
|
<de-container v-loading="$store.getters.loadingMap[$store.getters.currentPath]">
|
2021-06-17 18:58:46 +08:00
|
|
|
<de-main-container>
|
2021-08-27 17:56:10 +08:00
|
|
|
<ds-main ref="dsMain" />
|
2021-06-17 18:58:46 +08:00
|
|
|
</de-main-container>
|
|
|
|
</de-container>
|
2021-03-03 15:06:52 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-06-17 18:58:46 +08:00
|
|
|
import DeMainContainer from '@/components/dataease/DeMainContainer'
|
|
|
|
import DeContainer from '@/components/dataease/DeContainer'
|
|
|
|
import DsMain from './DsMain'
|
2021-08-27 17:56:10 +08:00
|
|
|
import bus from '@/utils/bus'
|
2021-03-03 15:06:52 +08:00
|
|
|
export default {
|
2021-06-17 18:58:46 +08:00
|
|
|
name: 'Panel',
|
|
|
|
components: { DeMainContainer, DeContainer, DsMain },
|
2021-03-03 15:06:52 +08:00
|
|
|
data() {
|
|
|
|
return {
|
2021-06-17 18:58:46 +08:00
|
|
|
component: DsMain,
|
|
|
|
componentName: 'DsMain',
|
|
|
|
param: {}
|
2021-03-03 15:06:52 +08:00
|
|
|
}
|
|
|
|
},
|
2021-04-28 12:23:06 +08:00
|
|
|
mounted() {
|
2021-08-27 17:56:10 +08:00
|
|
|
bus.$on('to-msg-ds', params => {
|
|
|
|
this.toMsgDs(params)
|
|
|
|
})
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
this.$store.dispatch('app/toggleSideBarHide', true)
|
|
|
|
const routerParam = this.$router.currentRoute.params
|
|
|
|
this.toMsgDs(routerParam)
|
2021-03-03 15:06:52 +08:00
|
|
|
},
|
|
|
|
methods: {
|
2021-08-27 17:56:10 +08:00
|
|
|
toMsgDs(routerParam) {
|
|
|
|
if (routerParam !== null && routerParam.msgNotification) {
|
|
|
|
const panelShareTypeIds = [7, 8]
|
|
|
|
// 说明是从消息通知跳转过来的
|
|
|
|
if (panelShareTypeIds.includes(routerParam.msgType)) { // 是数据集同步
|
|
|
|
if (routerParam.sourceParam) {
|
|
|
|
try {
|
|
|
|
// const msgParam = JSON.parse(routerParam.sourceParam)
|
|
|
|
// this.param = msgParam.id
|
|
|
|
// this.component = ViewTable
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$refs.dsMain && this.$refs.dsMain.msg2Current && this.$refs.dsMain.msg2Current(routerParam.sourceParam)
|
|
|
|
})
|
|
|
|
} catch (error) {
|
|
|
|
console.error(error)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-03 15:06:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
2021-06-17 18:58:46 +08:00
|
|
|
.ms-aside-container {
|
|
|
|
height: calc(100vh - 56px);
|
|
|
|
padding: 0px;
|
|
|
|
min-width: 260px;
|
|
|
|
max-width: 460px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ms-main-container {
|
|
|
|
height: calc(100vh - 56px);
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-03-03 15:06:52 +08:00
|
|
|
|
|
|
|
</style>
|