This commit is contained in:
zlwu committed 2025-08-05 14:00:23 +08:00
1 parent 109577a578
commit 4cf21648f5
10 files changed
+900 -11

No files matched your search

+8 -4
View File
@@ -211,8 +211,12 @@
<el-table-column label="请假原因" align="center" prop="leaveReason" />
<!-- <el-table-column label="请假时地理位置" align="center" prop="leaveLocation" /> -->
<el-table-column label="附件OSS文件ID" align="center" prop="attachmentOssIds" width="280" />
<!-- <el-table-column label="审批状态" align="center" prop="approvalStatus" />
<el-table-column label="审批意见" align="center" prop="approvalOpinion" />
<el-table-column label="审批状态" align="center" prop="approvalStatus">
<template #default="scope">
<dict-tag :options="student_leave_approval_status" :value="scope.row.approvalStatus" />
</template>
</el-table-column>
<!--<el-table-column label="审批意见" align="center" prop="approvalOpinion" />
<el-table-column label="审批时间" align="center" prop="approvalTime" width="180">
<template #default="scope">
<span>{{ parseTime(scope.row.approvalTime, '{y}-{m}-{d}') }}</span>
@@ -278,7 +282,7 @@ interface PageData<T, Q> {
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
// 加载字典数据
const { sys_yesno } = toRefs<any>(proxy?.useDict('sys_yesno'));
const { sys_yesno, student_leave_approval_status } = toRefs<any>(proxy?.useDict('sys_yesno', 'student_leave_approval_status'));
const studentLeaveList = ref<StudentLeaveVO[]>([]);
const buttonLoading = ref(false);
@@ -384,7 +388,7 @@ const data = reactive<PageData<StudentLeaveForm, StudentLeaveQuery>>({
isLeaveSchool: [{ required: true, message: '是否离校:0-否,1-是不能为空', trigger: 'blur' }],
needCancel: [{ required: true, message: '是否需要销假:0-否,1-是不能为空', trigger: 'blur' }],
leaveReason: [{ required: true, message: '请假原因不能为空', trigger: 'blur' }],
approvalStatus: [{ required: true, message: '审批状态:0-待审批,1-已通过,2-已拒绝,3-已取消不能为空', trigger: 'change' }],
approvalStatus: [{ required: true, message: '审批状态不能为空', trigger: 'change' }],
cancelStatus: [{ required: true, message: '销假状态:0-未销假,1-已销假,2-逾期未销假不能为空', trigger: 'change' }]
}
});