From 13504e167be34510a843a5ba9592c167d36aabf4 Mon Sep 17 00:00:00 2001 From: Qi <3194726156@qq.com> Date: Tue, 3 Jun 2025 18:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AE=9A=E4=B9=89bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cees/student/Student.data.ts | 14 ++--- src/views/cees/student/StudentList.vue | 4 +- .../cees/waiTeacher/CeesWaiTeacher.data.ts | 18 ++++-- .../cees/waiTeacher/CeesWaiTeacherList.vue | 63 ++++++++++++------- .../role/components/RolePermissionDrawer.vue | 28 ++++----- 5 files changed, 74 insertions(+), 53 deletions(-) diff --git a/src/views/cees/student/Student.data.ts b/src/views/cees/student/Student.data.ts index 613cf08..f99bdeb 100644 --- a/src/views/cees/student/Student.data.ts +++ b/src/views/cees/student/Student.data.ts @@ -1,14 +1,14 @@ import { BasicColumn } from '/@/components/Table'; import { FormSchema } from '/@/components/Table'; import { rules } from '/@/utils/helper/validator'; -import { ref,reactive } from 'vue'; +import { ref, reactive } from 'vue'; import { render } from '/@/utils/common/renderUtils'; -import {defHttp} from '/@/utils/http/axios'; +import { defHttp } from '/@/utils/http/axios'; import { getOption } from 'showdown'; import { usePermission } from '/@/hooks/web/usePermission'; const { hasPermission } = usePermission(); -const groupOptions=ref() +const groupOptions = ref(); // 创建一个简单的事件总线 export const updateGroupOptions = reactive({ updateGroupOptions(newOptions: any) { @@ -44,13 +44,13 @@ export const columns: BasicColumn[] = [ dataIndex: 'majorId', }, { - title: '所属分组', + title: '所属分组', align: 'center', customRender: ({ text }) => { if (!groupOptions.value) { return '加载中...'; // 如果未加载,显示加载中 } - const group = groupOptions.value.find(item => item.value === text.groupId); + const group = groupOptions.value.find((item) => item.value === text.groupId); if (group) { return group.label; } @@ -96,8 +96,8 @@ export const searchFormSchema: FormSchema[] = [ }, ifShow: ({ values }) => { return hasPermission('student:majorId:select'); - } - } + }, + }, ]; //表单数据 export const formSchema: FormSchema[] = [ diff --git a/src/views/cees/student/StudentList.vue b/src/views/cees/student/StudentList.vue index 0aa5976..bd4ef8d 100644 --- a/src/views/cees/student/StudentList.vue +++ b/src/views/cees/student/StudentList.vue @@ -35,8 +35,8 @@