You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.7 KiB
79 lines
1.7 KiB
<template>
|
|
<view>
|
|
<uni-section class="mb-10" title="业绩查看范围" type="line">
|
|
<uni-datetime-picker v-model="range" type="daterange" />
|
|
</uni-section>
|
|
<view class="">
|
|
<uni-card title="业绩排名">
|
|
<uni-list>
|
|
<uni-list-item direction="row" v-for="(item , index) in staffList" :key="index">
|
|
<template #body>
|
|
<view class="tag-wrap">
|
|
<view v-if="item.departmentTitle">
|
|
<u-tag :text="item.departmentTitle" size="12" />
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<template #header>
|
|
<view class="avatar-wrap">
|
|
<u-avatar :src="item.avatar" size="24">
|
|
</u-avatar>
|
|
<text class="staff-name">{{ item.nickname }}</text>
|
|
</view>
|
|
</template>
|
|
<template #footer>
|
|
<view style="font-size: 24rpx;">
|
|
<text style="margin-right: 10px;">单数:20单</text>
|
|
<text>总金额:2463.00</text>
|
|
</view>
|
|
</template>
|
|
</uni-list-item>
|
|
</uni-list>
|
|
</uni-card>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
range: [],
|
|
name: '',
|
|
staffList:[]
|
|
}
|
|
},
|
|
onLoad() {
|
|
this.getStaffList()
|
|
},
|
|
methods: {
|
|
getStaffList() {
|
|
this.tui.request('/app/common/user/findAllUserByShopId', 'get', {}, false, false, true).then((res) => {
|
|
if (res.code !== 200) return
|
|
this.staffList = res.result
|
|
})
|
|
}
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.example-body {}
|
|
.tag-wrap {
|
|
width: 100rpx;
|
|
flex: 1;
|
|
display: flex;
|
|
|
|
view {
|
|
margin: 0 2upx;
|
|
}
|
|
}
|
|
|
|
.avatar-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-size: 24upx;
|
|
}
|
|
</style>
|