Commit c9797f2a by 匡雅琴

Merge branch 'v1.0.0' into v1.3.0

2 parents 8ebcdcd3 8df715dd
......@@ -3,23 +3,26 @@
<!-- 第一个盒子 -->
<div class="rank-box">
<box-title title="员工业绩排名"></box-title>
<div class="content">
<div v-if="staffOutputList.length" class="content">
<Ranking :id="'staffOutput'" :rankingsList="staffOutputList" :rankingDataObj="rankingDataObj"></Ranking>
</div>
<div v-else class="empty"><Empty></Empty></div>
</div>
<!-- 第二个盒子 -->
<div class="rank-box">
<box-title title="员工转化率排行"></box-title>
<div class="content">
<div v-if="staffPercentList.length" class="content">
<Ranking :id="'staffPercent'" :rankingsList="staffPercentList" :rankingDataObj="rankPercentObj"></Ranking>
</div>
<div v-else class="empty"><Empty></Empty></div>
</div>
<!-- 第三个盒子 -->
<div class="rank-box">
<box-title title="员工客单价排行"></box-title>
<div class="content">
<div class="content" v-if="staffPriceList.length">
<Ranking :id="'staffPrice'" :rankingsList="staffPriceList" :rankingDataObj="rankingDataObj"></Ranking>
</div>
<div v-else class="empty"><Empty></Empty></div>
</div>
</div>
</template>
......@@ -106,5 +109,12 @@ export default {
.content {
padding: 1.67vh 1.39vw;
}
.empty {
height: 19.44vh;
display: flex;
// justify-content: center;
text-align: center;
align-items: center;
}
}
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-19 17:18:33
* @LastEditors: huyue
* @LastEditTime: 2023-07-31 10:40:36
* @LastEditTime: 2023-08-02 17:47:33
-->
<template>
<div class="trends-box">
......@@ -69,13 +69,13 @@ export default {
mounted() {},
methods: {
init() {
this.getDataList()
this.getDataList(this.merchantid)
},
getDataList() {
getDataList(value) {
this.dataList = []
this.isFlag = false
if (!this.isFlag) {
this.api.boutique.getMerchantTrend({ year: this.year, MerchantId: this.merchantid }).then(res => {
this.api.boutique.getMerchantTrend({ year: this.year, MerchantId: value }).then(res => {
const _dataList = res.data.dataList
if (!_dataList.length) {
this.isEmpty = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!