mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
feat:修改评估复制
This commit is contained in:
@@ -379,15 +379,19 @@ const handle = (record) => ({
|
||||
loading.value = true;
|
||||
message.info("复制成功!");
|
||||
record.id = null;
|
||||
|
||||
if (record.essayQuestionVoList) {
|
||||
record.essayQuestionVoList.forEach((item) => {
|
||||
item.id = null;
|
||||
});
|
||||
}
|
||||
//多选题
|
||||
let assessmentMultipleChoiceDtoList = [];
|
||||
if (record.multipleStemVoList) {
|
||||
record.multipleStemVoList.forEach((item) => {
|
||||
item.multipleChoiceVoList.forEach((a) => {
|
||||
a.id = null;
|
||||
assessmentMultipleChoiceDtoList.push(a);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -396,10 +400,13 @@ const handle = (record) => ({
|
||||
item.id = null;
|
||||
});
|
||||
}
|
||||
//单选题
|
||||
let assessmentSingleChoiceDtoList = [];
|
||||
if (record.singleStemVoList) {
|
||||
record.singleStemVoList.forEach((item) => {
|
||||
item.assessmentSingleChoiceVoList.forEach((a) => {
|
||||
a.id = null;
|
||||
assessmentSingleChoiceDtoList.push(a);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -410,9 +417,9 @@ const handle = (record) => ({
|
||||
});
|
||||
let newObj = {
|
||||
assessmentEssayQuestionDtoList: record.essayQuestionVoList,
|
||||
assessmentMultipleChoiceDtoList: record.multipleStemVoList,
|
||||
assessmentMultipleChoiceDtoList: assessmentMultipleChoiceDtoList,
|
||||
assessmentScoringQuestionDtoList: record.scoringQuestionVoList,
|
||||
assessmentSingleChoiceDtoList: record.singleStemVoList,
|
||||
assessmentSingleChoiceDtoList: assessmentSingleChoiceDtoList,
|
||||
assessmentMark: record.assessmentMark,
|
||||
};
|
||||
console.log("newObj", newObj);
|
||||
|
||||
Reference in New Issue
Block a user