预览滚动条

yanzili 3 years ago
parent 94208a58e2
commit 87f8a5b22c

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

Loading…
Cancel
Save