| | |
| | | class="countCard" |
| | | v-for="(item, index) in carCountData.slice(0, 3)" |
| | | :key="item.id" |
| | | @click="toCarDetail(item.id)" |
| | | > |
| | | <img class="iconImg" :src="imgList[index]" /> |
| | | <div> |
| | |
| | | <div |
| | | class="countCard" |
| | | v-for="(item, index) in carCountData.slice(3, 7)" |
| | | @click="toCarDetail(item.id)" |
| | | :key="item.id" |
| | | > |
| | | <img class="iconImg" :src="imgList[index + 3]" /> |
| | |
| | | next(); |
| | | }, |
| | | methods: { |
| | | toCarDetail(id) { |
| | | this.$router.push({ |
| | | path: "/car-manage", |
| | | query: { id }, |
| | | }); |
| | | }, |
| | | // 获取车辆统计数据 |
| | | async getCarCountData() { |
| | | try { |
| | |
| | | barWidth: "20px", |
| | | itemStyle: { |
| | | borderRadius: [20, 20, 20, 20], |
| | | color: (params) => { |
| | | return ["#5B8FF9", "#5AD8A6", "#F6BD16", "#6DC8EC", "#945FB9"][ |
| | | params.dataIndex |
| | | ]; |
| | | }, |
| | | // color: (params) => { |
| | | // return ["#5B8FF9", "#5AD8A6", "#F6BD16", "#6DC8EC", "#945FB9"][ |
| | | // params.dataIndex |
| | | // ]; |
| | | // }, |
| | | }, |
| | | data: this.countList.map((item) => item.num), |
| | | }, |
| | |
| | | color: rgba(0, 0, 0, 0.45); |
| | | line-height: 17px; |
| | | text-align: right; |
| | | overflow: auto; |
| | | white-space: nowrap; |
| | | text-overflow: ellipsis; |
| | | } |
| | | |
| | | .rankRight { |