<template>
|
<div class="width96 height margin-auto">
|
<div
|
v-for="(item, index) in boardlist"
|
:key="index"
|
class="width height45 margin-bottom background-F0F2F5 borderradius boxshadow"
|
:style="'background:' + boardbg"
|
>
|
<div class="board-title flex justify-between align-center" :style="'background:' + boardtitlebg">
|
<p class="PrintTitleInfo relative padding-left">{{ item.title_index }}</p>
|
<!-- <el-button
|
:class="item.button == '通过' ? 'passbg' : item.button == '不通过' ? 'notgobg' : ''"
|
class="board-button margin-right15"
|
size="mini"
|
>{{ item.button }}</el-button> -->
|
|
</div>
|
<div class="width94 margintopbot height-calc70 overflow">
|
<p class="fontweight600 margintopbot">{{ item.title }}</p>
|
<p class="fontweight600 margintopbot">{{ item.serial }}</p>
|
<p class="fontweight600 margintopbot">
|
<count-to :startVal="startVal" :endVal="item.value" :duration="3000"></count-to>
|
件
|
</p>
|
</div>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import countTo from "vue-count-to";
|
export default {
|
data() {
|
return {
|
startVal: 0
|
};
|
},
|
props: {
|
boardlist: {
|
type: Array,
|
default: () => []
|
},
|
boardtitlebg: {
|
type: String,
|
default: ""
|
},
|
boardbg: {
|
type: String,
|
default: ""
|
}
|
},
|
components: { countTo },
|
methods: {
|
load() {}
|
}
|
};
|
</script>
|
|
<style lang="scss" scoped>
|
.board-title {
|
width: 100%;
|
height: 45px;
|
box-shadow: 0 1px 3px 0 #d8dce5;
|
background: rgba(240, 242, 245, 1);
|
.PrintTitleInfo {
|
margin-left: 10px;
|
&::after {
|
content: "";
|
position: absolute;
|
top: 0;
|
left: 0;
|
height: 20px;
|
width: 4px;
|
background: #2a33ff;
|
}
|
}
|
.board-button {
|
padding: 10px 30px;
|
border-radius: 8px;
|
}
|
.passbg {
|
color: #fff;
|
background: #409eff;
|
}
|
.notgobg {
|
color: #fff;
|
background: #e6a23c;
|
}
|
}
|
</style>
|