Files
supplier-dispatch-h5/src/views/report/components/report-list-item.vue
2025-06-12 10:27:59 +08:00

58 lines
1.1 KiB
Vue

<template>
<div class="bottom_wrap">
<div class="report_item" v-for="(item, index) in reportList" @click="goReportHandler(item)" :key="index">
<img class="report_icon" :src="item?.iconUrl" alt="">
<div class="report_title">{{item.name}}</div>
</div>
</div>
</template>
<script>
export default {
name: "report-list-item",
data() {
return {
addressReportCode: '',
}
},
props: ['reportList'],
methods: {
goReportHandler(data) {
this.$emit('getReport', data);
},
}
}
</script>
<style scoped lang="scss">
.bottom_wrap {
width: 100%;
/*position: fixed;*/
bottom: 0;
/*padding: 0 34px 20px;*/
padding-bottom: 20px;
display: flex;
flex-wrap: wrap;
background: #FFFFFF;
box-shadow: 0px 0px 20px 0px rgba(53,73,93,0.2);
box-sizing: border-box;
.report_item {
width: 25%;
margin-top: 20px;
text-align: center;
.report_icon {
width: 45px;
height: 45px;
}
.report_title {
color: rgba(53, 53, 53, 0.67);
font-size: 11px;
line-height: 16px;
margin-top: 6px;
}
}
}
</style>