完成订单模块和教师管理模块
This commit is contained in:
@@ -5,6 +5,7 @@ import api from '@/api/examination'
|
||||
import capi from '@/api/course'
|
||||
import custom from '@/utils/custom'
|
||||
import {formatDate} from '@/utils/format'
|
||||
import _ from 'lodash'
|
||||
// import { toSQLLine } from '@/utils/stringFun'
|
||||
import WarningBar from '@/components/warningBar/warningBar.vue'
|
||||
// import ckEditor from '@/components/richText/ckEditor5.vue'
|
||||
@@ -122,17 +123,18 @@ const handleSelectionChange = (val) => {
|
||||
// console.log(exam_ids.value)
|
||||
}
|
||||
function editCourseFunc(row) {
|
||||
row.exam.course_ids = JSON.parse(row.exam.course_ids)
|
||||
row.exam.question_ids = JSON.parse(row.exam.question_ids)
|
||||
console.log(row)
|
||||
// row.exam.course_ids = JSON.parse(row.exam.course_ids)
|
||||
// row.exam.question_ids = JSON.parse(row.exam.question_ids)
|
||||
|
||||
form.value = row.exam
|
||||
form.value = _.cloneDeep(row.exam)
|
||||
form.value.course_ids = JSON.parse(row.exam.course_ids)
|
||||
form.value.question_ids = JSON.parse(row.exam.question_ids)
|
||||
exam_types.value = row.exam_types.map((item) => {
|
||||
return item.persons
|
||||
})
|
||||
// console.log(form.value)
|
||||
current_subject.value = form.value.subject
|
||||
openDialog('edit')
|
||||
// console.log(JSON.parse(row.question))
|
||||
}
|
||||
function deleteExamFunc(row) {
|
||||
// console.log(row); return
|
||||
|
Reference in New Issue
Block a user