【修改】修改试卷页面,其它细节
This commit is contained in:
@@ -295,6 +295,12 @@
|
||||
<UserImportForm ref="importFormRef" @success="getList" />
|
||||
<!-- 分配角色 -->
|
||||
<UserAssignRoleForm ref="assignRoleFormRef" @success="getList" />
|
||||
|
||||
<MdesignForm ref="mformRef" @success="getList" />
|
||||
|
||||
<BdesignForm ref="bformRef" @success="getList" />
|
||||
|
||||
<FdesignForm ref="fformRef" @success="getList" />
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
@@ -305,7 +311,9 @@ import * as QuestionApi from '@/api/paper/question'
|
||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||
import ChoiceForm from './ChoiceForm.vue'
|
||||
import CdesignForm from './CdesignForm.vue'
|
||||
|
||||
import MdesignForm from './MysqlForm.vue'
|
||||
import BdesignForm from './BrowerForm.vue'
|
||||
import FdesignForm from './FileForm.vue'
|
||||
import UserImportForm from './UserImportForm.vue'
|
||||
import UserAssignRoleForm from './UserAssignRoleForm.vue'
|
||||
import {handleTree} from "@/utils/tree";
|
||||
@@ -624,17 +632,30 @@ const findNamePathFromTreeList = (treeList: Tree[], targetId: number): string[]
|
||||
/** 添加/修改操作 */
|
||||
const formRef = ref()
|
||||
const cformRef = ref()
|
||||
const mformRef = ref()
|
||||
const bformRef = ref()
|
||||
const fformRef = ref()
|
||||
const wformRef = ref()
|
||||
const openForm = (type: string, row: any) => {
|
||||
console.log(queryParams)
|
||||
// if (queryParams.subjectName == "") {
|
||||
// return message.confirm('请选择题型!');
|
||||
// }
|
||||
// if (chooseQuestionType.value.includes("选择题")){
|
||||
// cformRef.value.open(type, id)
|
||||
// } else {
|
||||
// formRef.value.open(queryParams, type, id)
|
||||
// }
|
||||
formRef.value.open(queryParams, type, row.quId)
|
||||
console.log(row.subjectName+"subjectName");
|
||||
if (row.subjectName == "") {
|
||||
return message.confirm('请选择题型!');
|
||||
}
|
||||
if (row.subjectName.includes("选择题")){
|
||||
|
||||
console.log(row.quId+"row.quId")
|
||||
formRef.value.open(queryParams,type, row.quId)
|
||||
} else if(row.subjectName.includes("编程题")) {
|
||||
cformRef.value.open(queryParams,type, row.quId)
|
||||
}else if(row.subjectName.includes("程序设计")) {
|
||||
mformRef.value.open(queryParams,type, row.quId)
|
||||
}else if(row.subjectName.includes("网络题")) {
|
||||
bformRef.value.open(queryParams,type, row.quId)
|
||||
}else if(row.subjectName.includes("文件处理")) {
|
||||
fformRef.value.open(queryParams,type, row.quId)
|
||||
} else if (row.subjectName.includes("文字")){
|
||||
wformRef.value.open(queryParams,type, row.quId)
|
||||
}
|
||||
}
|
||||
|
||||
/** 用户导入 */
|
||||
|
Reference in New Issue
Block a user