|
|
@ -76,8 +76,8 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="list"> |
|
|
|
<view class="card" @click="$goPage('/pages/recordEntry/student/studentDetail/studentDetail')"> |
|
|
|
<appointItem-student/> |
|
|
|
<view class="card" @click="$goPage('/pages/recordEntry/student/studentDetail/studentDetail?id='+item.id)" v-for="(item,index) in list" :key="index"> |
|
|
|
<appointItem-student :item="item"/> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<UserTab name ='学员'></UserTab> |
|
|
@ -85,9 +85,11 @@ |
|
|
|
<u-datetime-picker |
|
|
|
:show="showDatePicker" |
|
|
|
mode="date" |
|
|
|
:minDate="1669341725000" |
|
|
|
:visibleItemCount="4" |
|
|
|
:closeOnClickOverlay="false" |
|
|
|
@confirm="confirmDatePicker" |
|
|
|
@cancel="showDatePicker=false" |
|
|
|
></u-datetime-picker> |
|
|
|
|
|
|
|
<u-picker :show="showCar" :columns="carArr" keyName="lab" @confirm="confirmCar" @cancel="showCar=false"></u-picker> |
|
|
@ -97,6 +99,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { imgUrl } from '@/config/site.config' |
|
|
|
import { studentRecordPage, schoolClass } from '@/config/api.js' |
|
|
|
import topUserInfo from '../statistics/comp/topUserInfo.vue' |
|
|
|
export default { |
|
|
|
components: { topUserInfo }, |
|
|
@ -124,28 +127,52 @@ |
|
|
|
{lab: 'C2vip',id: 2}, |
|
|
|
] |
|
|
|
], |
|
|
|
params: { |
|
|
|
"pageNo": 1, "pageSize": 10, status: 1, trainType: '' |
|
|
|
}, |
|
|
|
total: 20, |
|
|
|
list: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
uni.hideTabBar(); |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.studentRecordPageFn() |
|
|
|
this.schoolClassFn() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
confirmDatePicker(val) { |
|
|
|
this.showDatePicker = false |
|
|
|
console.log(val) |
|
|
|
console.log(uni.$u.date(val.value, 'yyyy-mm-dd')) |
|
|
|
this.screen.timer = uni.$u.date(val.value, 'yyyy-mm-dd') |
|
|
|
console.log(this.screen.timer) |
|
|
|
this.params.applyDate = this.screen.timer = uni.$u.date(val.value, 'yyyy-mm-dd') |
|
|
|
this.listInit() |
|
|
|
}, |
|
|
|
confirmCar(val) { |
|
|
|
let item = val.value[0] |
|
|
|
this.screen.car = item.lab |
|
|
|
this.params.trainType = this.screen.car = item.lab |
|
|
|
this.showCar = false |
|
|
|
this.listInit() |
|
|
|
}, |
|
|
|
confirmClass(val) { |
|
|
|
let item = val.value[0] |
|
|
|
this.screen.className = item.lab |
|
|
|
this.params.schoolClassId = item.id |
|
|
|
this.showClass = false |
|
|
|
this.listInit() |
|
|
|
}, |
|
|
|
// 获取班型 |
|
|
|
async schoolClass() { |
|
|
|
const {data: res} = await schoolClass({id: this.vuex_userInfo.shoolId}) |
|
|
|
}, |
|
|
|
listInit() { |
|
|
|
this.params.pageNo = 1 |
|
|
|
this.list = [] |
|
|
|
this.studentRecordPageFn() |
|
|
|
}, |
|
|
|
async studentRecordPageFn() { |
|
|
|
const {data: res} = await studentRecordPage(this.params) |
|
|
|
this.list.push(...res.list) |
|
|
|
this.total = res.total |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -154,6 +181,7 @@ |
|
|
|
<style lang="scss" scoped> |
|
|
|
.pad { |
|
|
|
min-height: 100vh; |
|
|
|
padding-bottom: 110rpx; |
|
|
|
} |
|
|
|
.card { |
|
|
|
padding: 0 28rpx; |
|
|
|