【新增】试题单选题弹窗代码迁移

This commit is contained in:
maghny@126.com
2025-04-26 21:07:13 +08:00
committed by 陆光LG
parent 9d0498d262
commit dce7096928
2 changed files with 277 additions and 354 deletions

View File

@@ -297,7 +297,10 @@ const handleDeptNodeClick = async (row) => {
}
/** 处理专业被点击 */
const handleSpecialtyNodeClick = async (row) => {
const chooseQuestionType = ref('');
const handleSpecialtyNodeClick = async (row: any) => {
chooseQuestionType.value = row.name;
// 判断点击的层级结构,进行入参
if (!row.children != null){
// 说明是题型
@@ -359,7 +362,11 @@ const findNamePathFromTreeList = (treeList: Tree[], targetId: number): string[]
const formRef = ref()
const cformRef = ref()
const openForm = (type: string, id?: number) => {
cformRef.value.open(type, id)
if (chooseQuestionType.value.includes("选择题")){
formRef.value.open(type, id)
} else {
cformRef.value.open(type, id)
}
}
/** 用户导入 */