Compare commits
No commits in common. "95c93f19ee319d49c5317bfbc67c1faa2798be31" and "dc368213662ebfa5673197597bea1b8ebb5856c4" have entirely different histories.
95c93f19ee
...
dc36821366
|
@ -120,7 +120,7 @@ import { useRouter, useRoute } from 'vue-router'
|
|||
|
||||
import { listEntpcoursework } from '@/api/education/entpCourseWork'
|
||||
import { listEvaluationclue } from '@/api/classTask'
|
||||
import { delEntpcoursework, updateEntpcoursework } from "@/api/education/entpCourseWork";
|
||||
import { delEntpcoursework } from "@/api/education/entpCourseWork";
|
||||
|
||||
import examDetailsDrawer from '@/components/exam-question/examDetailsDrawer.vue'
|
||||
import QuesItem from "@/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue";
|
||||
|
@ -284,7 +284,7 @@ const t = function(name, time) {
|
|||
edustage: userStore.edustage, // this.userStore.edustage,
|
||||
edusubject: userStore.edusubject, // this.userStore.edusubject,
|
||||
evalid: props.bookobj.levelSecondId, // this.activeParams.lession.id,
|
||||
status: "1",
|
||||
|
||||
orderby: 'concat(worktype,timestamp) DESC',
|
||||
|
||||
}
|
||||
|
@ -424,8 +424,7 @@ const onSubmitExamSingleCallback=(callback) =>{
|
|||
|
||||
/** 删除题目按钮操作 */
|
||||
const handleDelete = async(item, index) => {
|
||||
//await useHandleData(delEntpcoursework, item.id, `确认删除编号为【${index+1}】的题目?` );
|
||||
await useHandleData(updateEntpcoursework, {id:item.id, status:'0'}, `确认删除编号为【${index+1}】的题目?` );
|
||||
await useHandleData(delEntpcoursework, item.id, `确认删除编号为【${index+1}】的题目?` );
|
||||
debounceQueryData();
|
||||
}
|
||||
|
||||
|
|
|
@ -145,7 +145,8 @@
|
|||
</el-form-item>
|
||||
<el-form-item :prop="checkAnswer">
|
||||
<el-checkbox-group v-model="questForm.checkAnswer" style="display:flex; width: 100%">
|
||||
<el-button @click="addItem" type="primary" style="margin-left: auto;">+</el-button>
|
||||
<el-button @click="addItem" type="primary" style="margin-left: auto;"
|
||||
:disabled="questForm.list.length>=7">+</el-button>
|
||||
<el-button :disabled="questForm.list.length==1" @click="deleteItem(item,index)" type="primary"
|
||||
style="margin-left: 10px;">-</el-button>
|
||||
</el-checkbox-group>
|
||||
|
@ -490,7 +491,7 @@ const questForm = reactive({
|
|||
method: '',
|
||||
submitIndex: 0, // 该题对应原试题集合中的序号([单题上传]时为0, [扫描上传]为集合中的序号)
|
||||
submitType: 0, // 该题的上传方法
|
||||
status: '1', // 该题的状态
|
||||
status: 1, // 该题的状态
|
||||
list:[
|
||||
{
|
||||
text:""
|
||||
|
@ -951,7 +952,6 @@ const updateForm= async(item, submitIndex=0, submitType=1) =>{
|
|||
workAnswerArr.forEach(it => selList.push(it));
|
||||
}
|
||||
else if( item.worktype == '填空题' || item.worktype == '判断题'){
|
||||
item.title = item.title.replace(/<!--BA--><div class="quizPutTag" contenteditable="true">(?: )?<\/div><!--EA-->/g, '_____');
|
||||
// 处理选项 ()
|
||||
workAnswerArr.forEach((it,id)=>{
|
||||
const s = {
|
||||
|
@ -1000,7 +1000,6 @@ const updateForm= async(item, submitIndex=0, submitType=1) =>{
|
|||
const pointArr = item.evalnodeid.split(',');
|
||||
if (curKnowledgePointList.value.length > 0 && pointArr.length > 0) {
|
||||
pointArr.forEach(element => {
|
||||
element = element.trim();
|
||||
let point = [];
|
||||
if (getCurKnowledgePointToForm(point, element, curKnowledgePointList.value)) {
|
||||
point = point.reverse();
|
||||
|
@ -1338,10 +1337,8 @@ const submitForm=(formName) =>{
|
|||
const workType = questForm.worktype.replace('(主观题)', '');
|
||||
|
||||
// 需要对题目的单引号(设置字体)进行转义(因查询语句中模糊查询title_like单引号会报错)
|
||||
const title = questForm.title
|
||||
.replace(/'/g, "\\'")
|
||||
.replace(/_{3,}/g, "<!--BA--><div class=\"quizPutTag\" contenteditable=\"true\"></div><!--EA-->");
|
||||
console.log(questForm,'???????????????????????');
|
||||
const title = questForm.title.replace(/'/g, "\\'");
|
||||
console.log(questForm,'???????????????????????')
|
||||
let param = {
|
||||
id: questForm.id, // id
|
||||
thirdid: 0, // 第三方题库id SID
|
||||
|
|
Loading…
Reference in New Issue