xy 1 year ago
parent 7ba9aff082
commit c6bbcc03fc

@ -7,6 +7,7 @@
<VueOfficeExcel :src="url" style="height: 100vh;" /> <VueOfficeExcel :src="url" style="height: 100vh;" />
</template> </template>
<template v-else-if="type === 'pdf'"> <template v-else-if="type === 'pdf'">
<iframe :src="url" frameborder="0" style="width: 100%;height: 100%;" />
<VueOfficePdf :src="url" style="height: 100vh;" /> <VueOfficePdf :src="url" style="height: 100vh;" />
</template> </template>
<template v-else-if="['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg'].indexOf(type) !== -1"> <template v-else-if="['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg'].indexOf(type) !== -1">

@ -92,6 +92,9 @@ export default {
show: true show: true
}, },
xAxis: { xAxis: {
axisLabel: {
rotate: 45 // 45
},
data: this.list.map((item) => item.plan_department?.name || item.plan_department_id || ' ') data: this.list.map((item) => item.plan_department?.name || item.plan_department_id || ' ')
}, },
yAxis: { yAxis: {

@ -85,7 +85,7 @@ export default {
table: [ table: [
{ {
title: '预算类别', title: '预算类别',
width: 100, width: 140,
key: 'type_text', key: 'type_text',
ellipsis: true, ellipsis: true,
tooltip: true, tooltip: true,
@ -138,7 +138,9 @@ export default {
} }
} }
}, },
created() {}, created() {
this.getData()
},
mounted() { mounted() {
this.init() this.init()
}, },

Loading…
Cancel
Save