fix(数据集): 当以tab页预览仪表板时,点击导出,可在右侧弹出数据导出中心
This commit is contained in:
parent
348d017b51
commit
f3a9d91cbd
@ -495,7 +495,6 @@ export default {
|
|||||||
{
|
{
|
||||||
props: {
|
props: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
size: 'mini'
|
|
||||||
},
|
},
|
||||||
class: 'btn-text',
|
class: 'btn-text',
|
||||||
on: {
|
on: {
|
||||||
@ -525,7 +524,6 @@ export default {
|
|||||||
{
|
{
|
||||||
props: {
|
props: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
size: 'mini'
|
|
||||||
},
|
},
|
||||||
class: 'btn-text',
|
class: 'btn-text',
|
||||||
on: {
|
on: {
|
||||||
|
|||||||
@ -191,10 +191,12 @@
|
|||||||
:open-type="showChartInfoType"
|
:open-type="showChartInfoType"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<ExportExcel ref="ExportExcelRef" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import ExportExcel from '@/views/dataset/exportExcel/index.vue'
|
||||||
import { getStyle } from '@/components/canvas/utils/style'
|
import { getStyle } from '@/components/canvas/utils/style'
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import ComponentWrapper from './ComponentWrapper'
|
import ComponentWrapper from './ComponentWrapper'
|
||||||
@ -220,7 +222,7 @@ import LinkOptBar from '@/components/canvas/components/editor/LinkOptBar'
|
|||||||
|
|
||||||
const erd = elementResizeDetectorMaker()
|
const erd = elementResizeDetectorMaker()
|
||||||
export default {
|
export default {
|
||||||
components: { LinkOptBar, UserViewDialog, ComponentWrapper, CanvasOptBar, PDFPreExport },
|
components: { LinkOptBar, UserViewDialog, ComponentWrapper, CanvasOptBar, PDFPreExport, ExportExcel },
|
||||||
model: {
|
model: {
|
||||||
prop: 'show',
|
prop: 'show',
|
||||||
event: 'change'
|
event: 'change'
|
||||||
@ -562,8 +564,10 @@ export default {
|
|||||||
bus.$on('trigger-search-button', this.triggerSearchButton)
|
bus.$on('trigger-search-button', this.triggerSearchButton)
|
||||||
bus.$on('trigger-reset-button', this.triggerResetButton)
|
bus.$on('trigger-reset-button', this.triggerResetButton)
|
||||||
this.initPdfTemplate()
|
this.initPdfTemplate()
|
||||||
|
bus.$on('data-export-center', this.downloadClick)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
bus.$off('data-export-center', this.downloadClick)
|
||||||
if (this.$refs[this.previewTempRefId]) {
|
if (this.$refs[this.previewTempRefId]) {
|
||||||
erd.uninstall(this.$refs[this.previewTempRefId])
|
erd.uninstall(this.$refs[this.previewTempRefId])
|
||||||
}
|
}
|
||||||
@ -578,6 +582,9 @@ export default {
|
|||||||
bus.$off('trigger-reset-button', this.triggerResetButton)
|
bus.$off('trigger-reset-button', this.triggerResetButton)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
downloadClick() {
|
||||||
|
this.$refs.ExportExcelRef.init()
|
||||||
|
},
|
||||||
reloadWatermark() {
|
reloadWatermark() {
|
||||||
if (this.screenShotStatues) {
|
if (this.screenShotStatues) {
|
||||||
this.initWatermark('preview-temp-canvas-main')
|
this.initWatermark('preview-temp-canvas-main')
|
||||||
|
|||||||
@ -784,7 +784,6 @@ export default {
|
|||||||
{
|
{
|
||||||
props: {
|
props: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
size: 'mini'
|
|
||||||
},
|
},
|
||||||
class: 'btn-text',
|
class: 'btn-text',
|
||||||
on: {
|
on: {
|
||||||
@ -814,7 +813,6 @@ export default {
|
|||||||
{
|
{
|
||||||
props: {
|
props: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
size: 'mini'
|
|
||||||
},
|
},
|
||||||
class: 'btn-text',
|
class: 'btn-text',
|
||||||
on: {
|
on: {
|
||||||
|
|||||||
@ -503,7 +503,6 @@ export default {
|
|||||||
{
|
{
|
||||||
props: {
|
props: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
size: 'mini'
|
|
||||||
},
|
},
|
||||||
class: 'btn-text',
|
class: 'btn-text',
|
||||||
on: {
|
on: {
|
||||||
|
|||||||
@ -291,7 +291,6 @@ export default {
|
|||||||
{
|
{
|
||||||
props: {
|
props: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
size: 'mini'
|
|
||||||
},
|
},
|
||||||
class: 'btn-text',
|
class: 'btn-text',
|
||||||
on: {
|
on: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user