【新增】试题单选题弹窗代码迁移
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
/** 用户导入 */
|
||||
|
Reference in New Issue
Block a user