baigl #381
|
@ -71,6 +71,16 @@ export function updateClassworkeval(data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 修改classworkeval
|
||||||
|
export function updateClassworkevalList(data) {
|
||||||
|
return request({
|
||||||
|
url: '/education/classworkeval/updateList',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 修改classworkdata
|
// 修改classworkdata
|
||||||
export function updateClassworkdata(data) {
|
export function updateClassworkdata(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -147,8 +147,12 @@ const initData = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else if (o.worktype == '填空题') { // 填空题
|
else if (o.worktype == '填空题') { // 填空题
|
||||||
const regex = /<!--BA-->(.*?)<!--EA-->/g // 定义正则表达式,匹配 <!--BA-->xxx<!--EA--> 格式的内容
|
let title = o.title.replace(/_{3,}/g, '_____'); //将3-10的下划线统一格式为5个
|
||||||
children = (o.title||'').match(regex).map((v,i) => {
|
let regex = /<!--BA-->(.*?)<!--EA-->/g // 定义正则表达式,匹配 <!--BA-->xxx<!--EA--> 格式的内容
|
||||||
|
if (title.indexOf('_____') != -1) {
|
||||||
|
regex = /_{5}/g // 定义正则表达式,匹配 <!--BA-->xxx<!--EA--> 格式的内容
|
||||||
|
}
|
||||||
|
children = (title||'').match(regex).map((v,i) => {
|
||||||
const def = `填空项 ${i+1}`
|
const def = `填空项 ${i+1}`
|
||||||
//const code = '( )'
|
//const code = '( )'
|
||||||
const code = '(略)', txt=v
|
const code = '(略)', txt=v
|
||||||
|
|
|
@ -427,7 +427,7 @@ import useUserStore from '@/store/modules/user'
|
||||||
import { ref, reactive } from 'vue'
|
import { ref, reactive } from 'vue'
|
||||||
// import { Plus } from '@element-plus/icons-vue'
|
// import { Plus } from '@element-plus/icons-vue'
|
||||||
import { ElMessageBox, ElMessage } from 'element-plus'
|
import { ElMessageBox, ElMessage } from 'element-plus'
|
||||||
import { updateClassworkeval, updateClassworkdata, getClassworkdata } from '@/api/classTask'
|
import { updateClassworkeval, updateClassworkdata, getClassworkdata, updateClassworkevalList } from '@/api/classTask'
|
||||||
import { getTimeDate } from '@/utils/date'
|
import { getTimeDate } from '@/utils/date'
|
||||||
import ReFilePreview from '@/components/refile-preview/index.vue'
|
import ReFilePreview from '@/components/refile-preview/index.vue'
|
||||||
import { quizStrToList } from '@/utils/comm';
|
import { quizStrToList } from '@/utils/comm';
|
||||||
|
@ -898,6 +898,21 @@ const onSubmit = () => {
|
||||||
// }
|
// }
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
// let queryList = [];
|
||||||
|
// classWorkFormScore.teacherRating && classWorkFormScore.teacherRating.map((item, index) => {
|
||||||
|
// const queryParams = {
|
||||||
|
// id: item.id,
|
||||||
|
// teacherRating: item.score, // 教师评分
|
||||||
|
// rating: classWorkFormScore.rating, // 评价
|
||||||
|
// teacherremark: classWorkFormScore.teacherremark, //评分说明
|
||||||
|
// timestamp: getTimeDate() // 时间
|
||||||
|
// }
|
||||||
|
// //console.log(queryParams);
|
||||||
|
// queryList.push(queryParams);
|
||||||
|
// })
|
||||||
|
// //console.log(queryList);
|
||||||
|
// updateClassworkevalList(queryList).then((res) => {
|
||||||
|
// })
|
||||||
ElMessage({
|
ElMessage({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '提交成功!'
|
message: '提交成功!'
|
||||||
|
|
|
@ -224,8 +224,13 @@ const initData = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else if (o.worktype == '填空题') { // 填空题
|
else if (o.worktype == '填空题') { // 填空题
|
||||||
const regex = /<!--BA-->(.*?)<!--EA-->/g // 定义正则表达式,匹配 <!--BA-->xxx<!--EA--> 格式的内容
|
//console.log('填空题->', o.title);
|
||||||
children = (o.title||'').match(regex).map((v,i) => {
|
let title = o.title.replace(/_{3,}/g, '_____'); //将3-10的下划线统一格式为5个
|
||||||
|
let regex = /<!--BA-->(.*?)<!--EA-->/g // 定义正则表达式,匹配 <!--BA-->xxx<!--EA--> 格式的内容
|
||||||
|
if (title.indexOf('_____') != -1) {
|
||||||
|
regex = /_{5}/g // 定义正则表达式,匹配 <!--BA-->xxx<!--EA--> 格式的内容
|
||||||
|
}
|
||||||
|
children = (title||'').match(regex).map((v,i) => {
|
||||||
const def = `填空项 ${i+1}`
|
const def = `填空项 ${i+1}`
|
||||||
//const code = '( )'
|
//const code = '( )'
|
||||||
const code = '(略)', txt=v
|
const code = '(略)', txt=v
|
||||||
|
|
Loading…
Reference in New Issue