@ -7,6 +7,7 @@
<VueOfficeExcel :src="url" style="height: 100vh;" />
</template>
<template v-else-if="type === 'pdf'">
<iframe :src="url" frameborder="0" style="width: 100%;height: 100%;" />
<VueOfficePdf :src="url" style="height: 100vh;" />
<template v-else-if="['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg'].indexOf(type) !== -1">
@ -92,6 +92,9 @@ export default {
show: true
},
xAxis: {
axisLabel: {
rotate: 45 // 文字倾斜45度
data: this.list.map((item) => item.plan_department?.name || item.plan_department_id || ' ')
yAxis: {
@ -85,7 +85,7 @@ export default {
table: [
{
title: '预算类别',
width: 100,
width: 140,
key: 'type_text',
ellipsis: true,
tooltip: true,
@ -138,7 +138,9 @@ export default {
}
created() {},
created() {
this.getData()
mounted() {
this.init()