预览滚动条

yanzili 3 years ago
parent 94208a58e2
commit 87f8a5b22c

@ -7,7 +7,10 @@
<template> <template>
<div class="layout"> <div class="layout">
<div :style="bigScreenStyle"> <div :style="bigScreenStyle">
<widget v-for="(widget, index) in widgets" :key="index" v-model="widget.value" :type="widget.type" /> <widget v-for="(widget, index) in widgets"
:key="index"
v-model="widget.value"
:type="widget.type" />
</div> </div>
</div> </div>
</template> </template>
@ -20,7 +23,7 @@ export default {
components: { components: {
widget, widget,
}, },
data() { data () {
return { return {
list: [ list: [
{ {
@ -94,11 +97,11 @@ export default {
widgets: [], widgets: [],
} }
}, },
mounted() { mounted () {
this.getData() this.getData()
}, },
methods: { methods: {
async getData() { async getData () {
const reportCode = this.$route.query.reportCode const reportCode = this.$route.query.reportCode
const { code, data } = await detailDashboard(reportCode) const { code, data } = await detailDashboard(reportCode)
if (code != 200) return if (code != 200) return
@ -128,5 +131,6 @@ export default {
.layout { .layout {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden;
} }
</style> </style>

Loading…
Cancel
Save