统计组件
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
import Summary12 from './components/Summary12'
|
||||
import Summary13 from './components/Summary13'
|
||||
import Summary14 from './components/Summary14'
|
||||
import Summary15 from './components/Summary15'
|
||||
|
||||
export default {
|
||||
name: 'AiDvSummary',
|
||||
@@ -39,7 +40,8 @@
|
||||
Summary11,
|
||||
Summary12,
|
||||
Summary13,
|
||||
Summary14
|
||||
Summary14,
|
||||
Summary15
|
||||
},
|
||||
|
||||
props: {
|
||||
|
||||
BIN
components/layout/AiDvSummary/asset/ic1-15.png
Normal file
BIN
components/layout/AiDvSummary/asset/ic1-15.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
components/layout/AiDvSummary/asset/ic2-15.png
Normal file
BIN
components/layout/AiDvSummary/asset/ic2-15.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
components/layout/AiDvSummary/asset/ic3-15.png
Normal file
BIN
components/layout/AiDvSummary/asset/ic3-15.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
96
components/layout/AiDvSummary/components/Summary15.vue
Normal file
96
components/layout/AiDvSummary/components/Summary15.vue
Normal file
@@ -0,0 +1,96 @@
|
||||
<template>
|
||||
<div class="summary14">
|
||||
<div class="summary14-item" v-for="(item, index) in data" :class="'summary14-item' + (index + 1)" :key="index" v-if="index < 4">
|
||||
<p>{{ item[value] }}</p>
|
||||
<h2>{{ item[keys] }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Summary15',
|
||||
|
||||
props: {
|
||||
data: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
|
||||
keys: {
|
||||
type: String,
|
||||
default: 'key'
|
||||
},
|
||||
|
||||
value: {
|
||||
type: String,
|
||||
default: 'value'
|
||||
}
|
||||
},
|
||||
|
||||
data () {
|
||||
return {
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.summary14 {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
div {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.summary14-item {
|
||||
display: flex;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-direction: column;
|
||||
width: 116px;
|
||||
height: 98px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
background: url(../asset/ic1-15.png) no-repeat;
|
||||
background-position: center 14px;
|
||||
background-size: 64px 58px;
|
||||
|
||||
|
||||
&.summary14-item2 {
|
||||
background: url(../asset/ic2-15.png) no-repeat;
|
||||
background-position: center 14px;
|
||||
background-size: 64px 58px;
|
||||
}
|
||||
|
||||
&.summary14-item3 {
|
||||
background: url(../asset/ic3-15.png) no-repeat;
|
||||
background-position: center 14px;
|
||||
background-size: 64px 58px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
p {
|
||||
color: #ffffff;
|
||||
font-size: 26px;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -183,7 +183,7 @@ export default {
|
||||
return {
|
||||
borderList: ['border0', 'border1', 'border2', 'border3', 'border4', 'border5', 'border6'],//边框待选项
|
||||
summaryList: ['summary0', 'summary1', 'summary2', 'summary3', 'summary4', 'summary6', 'summary5',
|
||||
'summary7', 'summary8', 'summary9', 'summary10', 'summary11', 'summary12', 'summary13', 'summary14'],//汇总待选项
|
||||
'summary7', 'summary8', 'summary9', 'summary10', 'summary11', 'summary12', 'summary13', 'summary14', 'summary15'],//汇总待选项
|
||||
//是否显示排名
|
||||
tableStatus: [
|
||||
{label: '是', value: '1'},
|
||||
|
||||
Reference in New Issue
Block a user