From 0c68591cfdc2d9498420d62ae1dd923fd6b91aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8D=E6=BD=9C?= <1620556043@qq.com> Date: Sat, 22 Mar 2025 15:34:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A2=98=E7=9B=AE=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E5=88=A4=E6=96=AD=E9=A2=98=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E9=A2=98=E7=9B=AE=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/CodeSpirit.ExamApi/Dtos/Question/CreateQuestionDto.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/CodeSpirit.ExamApi/Dtos/Question/CreateQuestionDto.cs b/Src/CodeSpirit.ExamApi/Dtos/Question/CreateQuestionDto.cs index d0cacdd..01d4b3c 100644 --- a/Src/CodeSpirit.ExamApi/Dtos/Question/CreateQuestionDto.cs +++ b/Src/CodeSpirit.ExamApi/Dtos/Question/CreateQuestionDto.cs @@ -41,7 +41,8 @@ public class CreateQuestionDto Addable = true, Removable = true, Draggable = true, - MaxLength = 10 + MaxLength = 10, + VisibleOn = "type != 3" )] public List Options { get; set; } = []; -- Gitee From efb57727528b7ee7800b543fe5ada4750a04f372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8D=E6=BD=9C?= <1620556043@qq.com> Date: Sat, 22 Mar 2025 15:57:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E8=AF=95=E5=8D=B7=E5=88=9B=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dtos/ExamPaper/GenerateRandomExamPaperDto.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/CodeSpirit.ExamApi/Dtos/ExamPaper/GenerateRandomExamPaperDto.cs b/Src/CodeSpirit.ExamApi/Dtos/ExamPaper/GenerateRandomExamPaperDto.cs index adf18a7..88724ba 100644 --- a/Src/CodeSpirit.ExamApi/Dtos/ExamPaper/GenerateRandomExamPaperDto.cs +++ b/Src/CodeSpirit.ExamApi/Dtos/ExamPaper/GenerateRandomExamPaperDto.cs @@ -89,7 +89,9 @@ public class GenerateRandomExamPaperDto Cascade = true, ShowOutline = true, LabelField = "name", - ValueField = "id" + ValueField = "id", + JoinValues = false, + ExtractValue = true )] public List CategoryIds { get; set; } } -- Gitee