|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="mrd-container">
|
|
<div class="mrd-container">
|
|
<van-nav-bar title="部门排名" left-text="返回" @click-left="$route_back" left-arrow />
|
|
<van-nav-bar title="部门排名" left-text="返回" @click-left="$route_back" left-arrow />
|
|
- <van-dropdown-menu>
|
|
|
|
|
|
+ <van-dropdown-menu v-if="showSearchBar">
|
|
<!-- A/B分 -->
|
|
<!-- A/B分 -->
|
|
<van-dropdown-item :title="timeScopeText" @open="calendarOpen"></van-dropdown-item>
|
|
<van-dropdown-item :title="timeScopeText" @open="calendarOpen"></van-dropdown-item>
|
|
<van-dropdown-item :title="searchForm.deptName" ref="deptDropdownItem"><DeptSelectorDropdown @onConfirm="onConfirmDept" /></van-dropdown-item>
|
|
<van-dropdown-item :title="searchForm.deptName" ref="deptDropdownItem"><DeptSelectorDropdown @onConfirm="onConfirmDept" /></van-dropdown-item>
|
|
@@ -9,7 +9,7 @@
|
|
<van-dropdown-item>
|
|
<van-dropdown-item>
|
|
<van-icon name="list-switch" slot="title" size="1.5em" />
|
|
<van-icon name="list-switch" slot="title" size="1.5em" />
|
|
<template slot="default">
|
|
<template slot="default">
|
|
- <van-cell center title="积分分类">
|
|
|
|
|
|
+ <van-cell center title="积分类型">
|
|
<template #right-icon>
|
|
<template #right-icon>
|
|
<van-radio-group v-model="searchForm.ptId" direction="horizontal">
|
|
<van-radio-group v-model="searchForm.ptId" direction="horizontal">
|
|
<van-radio v-for="pt in pts" :key="pt.value" :name="pt.value">{{pt.text}}</van-radio>
|
|
<van-radio v-for="pt in pts" :key="pt.value" :name="pt.value">{{pt.text}}</van-radio>
|
|
@@ -31,6 +31,7 @@
|
|
:on-refresh="onRefresh"
|
|
:on-refresh="onRefresh"
|
|
>
|
|
>
|
|
<van-cell v-for="item in dataList" :key="item.id" :title="item.name" :value="item.point"/>
|
|
<van-cell v-for="item in dataList" :key="item.id" :title="item.name" :value="item.point"/>
|
|
|
|
+ <noData :list="dataList" />
|
|
|
|
|
|
</scroller>
|
|
</scroller>
|
|
</div>
|
|
</div>
|
|
@@ -106,7 +107,8 @@ export default {
|
|
showCalendar:false,
|
|
showCalendar:false,
|
|
minDate:minDate,
|
|
minDate:minDate,
|
|
maxDate:maxDate,
|
|
maxDate:maxDate,
|
|
- timeScope:[new Date(startDate),new Date(endDate)]
|
|
|
|
|
|
+ timeScope:[new Date(startDate),new Date(endDate)],
|
|
|
|
+ showSearchBar:!this.$supremeAuthority('employee')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed:{
|
|
computed:{
|
|
@@ -222,9 +224,9 @@ export default {
|
|
background-color: white;
|
|
background-color: white;
|
|
|
|
|
|
& .mrd-content {
|
|
& .mrd-content {
|
|
- margin-top: 20px;
|
|
|
|
|
|
+ margin-top: 0.2rem;
|
|
position: relative;
|
|
position: relative;
|
|
- height: calc(100%);
|
|
|
|
|
|
+ height: calc(100% - 2.1rem);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|