wuzhen update test
This commit is contained in:
1 parent
098776b8c0
commit
138a250f28
12 files changed
+274
-63
No files matched your search
@@ -1,10 +1,5 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
title="申请详情"
|
||||
width="80%"
|
||||
:before-close="handleClose"
|
||||
>
|
||||
<el-dialog v-model="dialogVisible" title="申请详情" width="80%" :before-close="handleClose">
|
||||
<div v-loading="loading" class="application-detail">
|
||||
<template v-if="applicationData">
|
||||
<!-- 基本信息 -->
|
||||
@@ -130,12 +125,15 @@ const applicationData = ref<WorkStudyApplicationVO>();
|
||||
const dialogVisible = ref(false);
|
||||
|
||||
// 监听 visible 变化
|
||||
watch(() => props.visible, (newVal) => {
|
||||
dialogVisible.value = newVal;
|
||||
if (newVal && props.applicationId) {
|
||||
getDetail();
|
||||
watch(
|
||||
() => props.visible,
|
||||
(newVal) => {
|
||||
dialogVisible.value = newVal;
|
||||
if (newVal && props.applicationId) {
|
||||
getDetail();
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
|
||||
// 监听 dialogVisible 变化
|
||||
watch(dialogVisible, (newVal) => {
|
||||
|
||||
@@ -68,38 +68,13 @@
|
||||
<template #default="{ row }">
|
||||
<div class="operation-buttons">
|
||||
<el-tooltip content="查看详情" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="View"
|
||||
size="small"
|
||||
@click="handleDetail(row)"
|
||||
|
||||
>
|
||||
详情
|
||||
</el-button>
|
||||
<el-button link type="primary" icon="View" size="small" @click="handleDetail(row)"> 详情 </el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="审核通过" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="success"
|
||||
icon="Check"
|
||||
size="small"
|
||||
@click="handleReview(row, 'approved')"
|
||||
>
|
||||
通过
|
||||
</el-button>
|
||||
<el-button link type="success" icon="Check" size="small" @click="handleReview(row, 'approved')"> 通过 </el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="审核拒绝" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="danger"
|
||||
icon="Close"
|
||||
size="small"
|
||||
@click="handleReview(row, 'rejected')"
|
||||
>
|
||||
拒绝
|
||||
</el-button>
|
||||
<el-button link type="danger" icon="Close" size="small" @click="handleReview(row, 'rejected')"> 拒绝 </el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</template>
|
||||
@@ -245,7 +220,6 @@ const getList = async () => {
|
||||
} else {
|
||||
console.log('🔍 [调试] ⚠️ 列表为空!');
|
||||
}
|
||||
|
||||
} catch (error: any) {
|
||||
console.error('🔍 [调试] 获取待审核申请列表失败:', error);
|
||||
if (error?.response?.data) {
|
||||
|
||||
Reference in new issue
Block a user