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;
|
loading.value = true;
|
||||||
message.info("复制成功!");
|
message.info("复制成功!");
|
||||||
record.id = null;
|
record.id = null;
|
||||||
|
|
||||||
if (record.essayQuestionVoList) {
|
if (record.essayQuestionVoList) {
|
||||||
record.essayQuestionVoList.forEach((item) => {
|
record.essayQuestionVoList.forEach((item) => {
|
||||||
item.id = null;
|
item.id = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
//多选题
|
||||||
|
let assessmentMultipleChoiceDtoList = [];
|
||||||
if (record.multipleStemVoList) {
|
if (record.multipleStemVoList) {
|
||||||
record.multipleStemVoList.forEach((item) => {
|
record.multipleStemVoList.forEach((item) => {
|
||||||
item.multipleChoiceVoList.forEach((a) => {
|
item.multipleChoiceVoList.forEach((a) => {
|
||||||
a.id = null;
|
a.id = null;
|
||||||
|
assessmentMultipleChoiceDtoList.push(a);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -396,10 +400,13 @@ const handle = (record) => ({
|
|||||||
item.id = null;
|
item.id = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
//单选题
|
||||||
|
let assessmentSingleChoiceDtoList = [];
|
||||||
if (record.singleStemVoList) {
|
if (record.singleStemVoList) {
|
||||||
record.singleStemVoList.forEach((item) => {
|
record.singleStemVoList.forEach((item) => {
|
||||||
item.assessmentSingleChoiceVoList.forEach((a) => {
|
item.assessmentSingleChoiceVoList.forEach((a) => {
|
||||||
a.id = null;
|
a.id = null;
|
||||||
|
assessmentSingleChoiceDtoList.push(a);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -410,9 +417,9 @@ const handle = (record) => ({
|
|||||||
});
|
});
|
||||||
let newObj = {
|
let newObj = {
|
||||||
assessmentEssayQuestionDtoList: record.essayQuestionVoList,
|
assessmentEssayQuestionDtoList: record.essayQuestionVoList,
|
||||||
assessmentMultipleChoiceDtoList: record.multipleStemVoList,
|
assessmentMultipleChoiceDtoList: assessmentMultipleChoiceDtoList,
|
||||||
assessmentScoringQuestionDtoList: record.scoringQuestionVoList,
|
assessmentScoringQuestionDtoList: record.scoringQuestionVoList,
|
||||||
assessmentSingleChoiceDtoList: record.singleStemVoList,
|
assessmentSingleChoiceDtoList: assessmentSingleChoiceDtoList,
|
||||||
assessmentMark: record.assessmentMark,
|
assessmentMark: record.assessmentMark,
|
||||||
};
|
};
|
||||||
console.log("newObj", newObj);
|
console.log("newObj", newObj);
|
||||||
|
|||||||
Reference in New Issue
Block a user