|
|
@@ -286,13 +286,24 @@ const formDialogVisible = ref(false);
|
|
|
const isEdit = ref(false);
|
|
|
const currentProcess = ref<Partial<EnrollmentProcessVO>>({});
|
|
|
|
|
|
+/** 本页列表展示的状态:录取处理中(2)、待最终确认(3) */
|
|
|
+const LIST_STATUS_VALUES = '2,3';
|
|
|
+
|
|
|
+/** 设置列表默认查询条件 */
|
|
|
+const applyListStatusFilter = () => {
|
|
|
+ queryParams.value.currentStatus = undefined;
|
|
|
+ queryParams.value.isCompleted = 0;
|
|
|
+ queryParams.value.params = {
|
|
|
+ ...(queryParams.value.params || {}),
|
|
|
+ currentStatusList: LIST_STATUS_VALUES
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
/** 查询流程列表 */
|
|
|
const getList = async () => {
|
|
|
loading.value = true;
|
|
|
try {
|
|
|
- // 设置查询参数,只查询录取处理中且未完成的数据
|
|
|
- queryParams.value.currentStatus = '2'; // 只查询录取处理中的数据
|
|
|
- queryParams.value.isCompleted = 0; // 只查询未完成的数据
|
|
|
+ applyListStatusFilter();
|
|
|
|
|
|
const res = await listEnrollmentProcess(queryParams.value);
|
|
|
|
|
|
@@ -327,7 +338,7 @@ const getList = async () => {
|
|
|
});
|
|
|
|
|
|
processList.value = processedList;
|
|
|
- total.value = processedList.length; // 更新总数为过滤后的数量
|
|
|
+ total.value = res.total ?? processedList.length;
|
|
|
} catch (error) {
|
|
|
console.error('获取流程列表失败:', error);
|
|
|
|
|
|
@@ -674,10 +685,6 @@ const isCompleted = (row: any): boolean => {
|
|
|
/** 初始化 */
|
|
|
onMounted(async () => {
|
|
|
try {
|
|
|
- // 设置默认查询参数
|
|
|
- queryParams.value.currentStatus = '2'; // 录取处理中
|
|
|
- queryParams.value.isCompleted = 0; // 未完成
|
|
|
-
|
|
|
// 处理路由参数
|
|
|
const route = useRoute();
|
|
|
if (route && route.query) {
|