From b5d5ebb4220a7037019c51c6114bf2daa7e435c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Tue, 14 Oct 2025 18:20:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E7=8F=AD=E7=BA=A7?= =?UTF-8?q?=E9=80=89=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/class/index.vue | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/src/views/class/index.vue b/src/views/class/index.vue index 67b1fef..f5003e6 100644 --- a/src/views/class/index.vue +++ b/src/views/class/index.vue @@ -108,16 +108,27 @@ const tableData: TableConfig = intTableData({ rules: ruleClassName, }, }, - type: { - label: "类型", + elective1: { + label: "主修", + width: "100px", + type: "dropdown", + edit: { + edit: true, + }, + }, + elective2: { + label: "选修1", + width: "100px", + type: "dropdown", + edit: { + edit: true, + }, + }, + elective3: { + label: "选修2", type: "dropdown", - search: { - yes: true, - }, edit: { - add: true, edit: true, - rules: ruleRequired, }, }, }, @@ -131,9 +142,13 @@ const tableData: TableConfig = intTableData({ const showTable = ref(false); onMounted(async () => { //初始化数据原 + const subjectC = (await getenum("SubjectEnum")).data; + tableData.column.elective1.setting.datasource = subjectC; + tableData.column.elective2.setting.datasource = subjectC; + tableData.column.elective3.setting.datasource = subjectC; tableData.column.Grade.setting.datasource = gradeComboModel(); - tableData.column.type.setting.datasource = (await getenum("ClassTypeEnum")).data; + // tableData.column.type.setting.datasource = (await getenum("ClassTypeEnum")).data; tableData.column.schoolId.setting.datasource = ( await SchoolApi.querycombo({ TextName: "Name", ValueName: "Id" }) ).data;