Commit 7818f74f3bc8cd1a290a00d0e56754132d3f15ce

Authored by liuqimichale
1 parent 667dd190

地磁

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