修改bug

main
yanzai 2 years ago
parent 6c2e28a38c
commit 9c9f689dc0

@ -142,10 +142,11 @@ class AppointmentService
$ageDiff = $birthdate->diff($currentDate)->y; $ageDiff = $birthdate->diff($currentDate)->y;
// 判断年龄是否大于65岁 // 判断年龄是否大于65岁
if ($ageDiff > 65) { if ($ageDiff >= 65) {
return true; return true;
} else { } else {
return false; return false;
} }
} }
} }

@ -55,11 +55,7 @@
<el-tag v-if="scope.row.fee_type==1" class="ml-2" type="info"></el-tag> <el-tag v-if="scope.row.fee_type==1" class="ml-2" type="info"></el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="date" label="预约时间" > <el-table-column prop="created_at" label="创建时间" />
<template #default="scope">
<span v-if="scope.row.date"> {{scope.row.date.substring(0,10)}} (<span style="color:#1cb9d1">{{scope.row.time}}</span>)</span>
</template>
</el-table-column>
<!-- <el-table-column label="操作" width="100"> <!-- <el-table-column label="操作" width="100">
<template #default="scope"> <template #default="scope">
@ -103,11 +99,11 @@
}) })
const PageSizeChange = (e) => { // const PageSizeChange = (e) => { //
pageSize.value = e pageSize.value = e
GetUserList() GetList()
} }
const PageCurrentChange = (e) => { // const PageCurrentChange = (e) => { //
currentPage.value = e currentPage.value = e
GetUserList() GetList()
} }
// //

Loading…
Cancel
Save