完整
This commit is contained in:
@@ -90,9 +90,9 @@
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<uni-calendar ref="calendar" :insert="false" range='true' :lunar="true" @confirm="calendarConfirm" />
|
||||
<!-- 日历弹窗 -->
|
||||
<up-calendar :show="showCalendar" mode="date" minDate="1776240407000" @confirm="calendarConfirm" @close="calendarClose"></up-calendar>
|
||||
<!-- <up-calendar :show="showCalendar" mode="date" minDate="1776240407000" @confirm="calendarConfirm" @close="calendarClose"></up-calendar> -->
|
||||
|
||||
<!-- 学生选择弹窗 -->
|
||||
<view class="modal-overlay" v-if="showStudentPicker" @click="closeStudentPicker"></view>
|
||||
@@ -132,7 +132,7 @@
|
||||
<up-popup :show="showRecordPopup" @close="closeRecordPopup" mode="center" round="16" bgColor="#fff">
|
||||
<view class="record-popup-content">
|
||||
<view class="record-popup-header">
|
||||
<text class="record-popup-title">{{ rowData.studentName +'·' + rowData.planName}}</text>
|
||||
<text class="record-popup-title">{{ rowData.studentName +'·' + rowData.planName+' PB: '+rowData.quicklyTime}}</text>
|
||||
<u-icon name="close" size="22" color="#999" @click="closeRecordPopup"></u-icon>
|
||||
</view>
|
||||
<scroll-view class="record-popup-body" scroll-y>
|
||||
@@ -195,7 +195,9 @@
|
||||
const begin = ref<string>('')
|
||||
const end = ref<string>('')
|
||||
const showCalendar = ref(false)
|
||||
|
||||
|
||||
let calendar=ref(null)
|
||||
|
||||
// 分页相关
|
||||
let page = ref(1)
|
||||
let pageTotal = ref(10)
|
||||
@@ -265,7 +267,7 @@
|
||||
}
|
||||
|
||||
const getStudentList=()=>{
|
||||
studentService.GetStudentList().then(res=>{
|
||||
studentService.GetStudentList('').then(res=>{
|
||||
if (res.code == 0) {
|
||||
studentList.value =res.data
|
||||
} else {
|
||||
@@ -276,6 +278,7 @@
|
||||
|
||||
|
||||
const cellClick=(e:any)=>{
|
||||
console.log(e);
|
||||
rowData.value=e
|
||||
showRecordPopup.value=true
|
||||
}
|
||||
@@ -306,11 +309,18 @@
|
||||
|
||||
const openCalendar = () => {
|
||||
showCalendar.value = true
|
||||
calendar.value.open()
|
||||
}
|
||||
|
||||
const calendarConfirm = (e: any) => {
|
||||
begin.value = e[0]
|
||||
end.value = e[e.length - 1]
|
||||
begin.value = e.range.before
|
||||
if( e.range.after){
|
||||
end.value = e.range.after
|
||||
}else{
|
||||
end.value = e.range.before
|
||||
}
|
||||
|
||||
|
||||
showCalendar.value = false
|
||||
getRecord()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user