Commit 7818f74f3bc8cd1a290a00d0e56754132d3f15ce
1 parent
667dd190
地磁
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/dicisection.vue
| @@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
| 5 | <ul class="flexfm dici-wrap"> | 5 | <ul class="flexfm dici-wrap"> |
| 6 | <li v-for="(item, index) in diciList" :key="index"> | 6 | <li v-for="(item, index) in diciList" :key="index"> |
| 7 | <div>{{item.name}}</div> | 7 | <div>{{item.name}}</div> |
| 8 | - <div><span style="width:80%"></span></div> | ||
| 9 | - <div>{{$util.formatNumArr(item.count).join('')}}</div> | 8 | + <div><span :style="{width : item.percentage}"></span></div> |
| 9 | + <div>{{item.count | formatNum}}</div> | ||
| 10 | </li> | 10 | </li> |
| 11 | </ul> | 11 | </ul> |
| 12 | </div> | 12 | </div> |
| @@ -15,6 +15,7 @@ | @@ -15,6 +15,7 @@ | ||
| 15 | <script> | 15 | <script> |
| 16 | import titlesection from '../components/titlesection' | 16 | import titlesection from '../components/titlesection' |
| 17 | import totalsection from '../components/total' | 17 | import totalsection from '../components/total' |
| 18 | +import { formatNum } from '../filters/filters' | ||
| 18 | import {fetchList} from '../api/api' | 19 | import {fetchList} from '../api/api' |
| 19 | 20 | ||
| 20 | export default { | 21 | export default { |
| @@ -46,7 +47,6 @@ export default { | @@ -46,7 +47,6 @@ export default { | ||
| 46 | } | 47 | } |
| 47 | }, | 48 | }, |
| 48 | created() { | 49 | created() { |
| 49 | - console.log(this.$util.formatNumArr('123123')) | ||
| 50 | }, | 50 | }, |
| 51 | methods: { | 51 | methods: { |
| 52 | getList() { | 52 | getList() { |