task#,格式化承接案件量数据
This commit is contained in:
@ -46,7 +46,8 @@
|
|||||||
<div :class="{'title':true,'webTitle':!isMobile}">接单指标</div>
|
<div :class="{'title':true,'webTitle':!isMobile}">接单指标</div>
|
||||||
<div class="reciceOrderIWrap">
|
<div class="reciceOrderIWrap">
|
||||||
<div class="left common">
|
<div class="left common">
|
||||||
<div class="num">{{ indexData && indexData.receiveOrderCount }}</div>
|
<!-- indexData && -->
|
||||||
|
<div class="num">{{ formatCurrency(indexData?.receiveOrderCount) }}</div>
|
||||||
<div class="itemTitle">承接案件量</div>
|
<div class="itemTitle">承接案件量</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="center common" @click="clickJumpHandle(5)">
|
<div class="center common" @click="clickJumpHandle(5)">
|
||||||
@ -465,6 +466,12 @@ export default {
|
|||||||
this.loadingData = false
|
this.loadingData = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 格式化承接案件量数据
|
||||||
|
formatCurrency(value) {
|
||||||
|
if (!value) return '';
|
||||||
|
let num = parseInt(value);
|
||||||
|
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||||||
|
},
|
||||||
async clickJumpHandle(type) {
|
async clickJumpHandle(type) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.active = type;
|
this.active = type;
|
||||||
|
Reference in New Issue
Block a user