【新增】 word考点数关系列表,文件上传仅限图片更改成所有文件
This commit is contained in:
@@ -300,13 +300,12 @@ const handleDeptNodeClick = async (row) => {
|
||||
const chooseQuestionType = ref('');
|
||||
const handleSpecialtyNodeClick = async (row: any) => {
|
||||
chooseQuestionType.value = row.name;
|
||||
|
||||
// 判断点击的层级结构,进行入参
|
||||
if (!row.children != null){
|
||||
// 说明是题型
|
||||
queryParams.courseName = row.name
|
||||
}
|
||||
const specArr = findNamePathFromTreeList(specialtyList.value, row.id)
|
||||
const specArr: any = findNamePathFromTreeList(specialtyList.value, row.id)
|
||||
// 判断长度赋值
|
||||
if (specArr.length == 1) {
|
||||
// 说明是题型
|
||||
@@ -363,9 +362,9 @@ const formRef = ref()
|
||||
const cformRef = ref()
|
||||
const openForm = (type: string, id?: number) => {
|
||||
if (chooseQuestionType.value.includes("选择题")){
|
||||
formRef.value.open(type, id)
|
||||
} else {
|
||||
cformRef.value.open(type, id)
|
||||
} else {
|
||||
formRef.value.open(type, id)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user