--fix 评估重写

This commit is contained in:
yuping
2023-04-17 00:04:32 +08:00
parent 7f42b60444
commit 257c5a500e
2 changed files with 12 additions and 16 deletions

View File

@@ -93,8 +93,8 @@ const handleSave = () => {
editResearchMessage({ editResearchMessage({
id, id,
assessmentName: data.value.assessmentName, assessmentName: data.value.assessmentName,
assessmentSingleChoiceDtoList: data.value.singleStemVoList.flatMap(t=>t.assessmentSingleChoiceVoList.map(s=>({...s,deleted:(t.deleted || s.deleted),singleStemName:t.singleStemName}))), assessmentSingleChoiceDtoList: data.value.singleStemVoList.flatMap(t=>t.assessmentSingleChoiceVoList.map(s=>({...s,deleted:(t.deleted || s.deleted),orderNumber:t.orderNumber,singleStemName:t.singleStemName}))),
assessmentMultipleChoiceDtoList: data.value.multipleStemVoList.flatMap(t=>t.multipleChoiceVoList.map(s=>({...s,deleted:(t.deleted || s.deleted),multipleStemName:t.multipleStemName}))), assessmentMultipleChoiceDtoList: data.value.multipleStemVoList.flatMap(t=>t.multipleChoiceVoList.map(s=>({...s,deleted:(t.deleted || s.deleted),orderNumber:t.orderNumber,multipleStemName:t.multipleStemName}))),
assessmentEssayQuestionDtoList: data.value.essayQuestionVoList, assessmentEssayQuestionDtoList: data.value.essayQuestionVoList,
assessmentScoringQuestionDtoList: data.value.scoringQuestionVoList assessmentScoringQuestionDtoList: data.value.scoringQuestionVoList
}).then(() => { }).then(() => {
@@ -131,6 +131,7 @@ function addSingleItem() {
], ],
deleted: false, deleted: false,
}); });
console.log(data.value);
} }
function addMultipleItem() { function addMultipleItem() {

View File

@@ -154,13 +154,14 @@ shan<!-- 评估管理页面 -->
> >
<div class="out"> <div class="out">
<div class="top"> <div class="top">
<img class="topimg" src="../../assets/images/courseManage/add1.png" /> <img alt="add" class="topimg" src="../../assets/images/courseManage/add1.png" />
<div class="topc">{{ !formData.id ? "创建" : "编辑" }}评估</div> <div class="topc">{{ !formData.id ? "创建" : "编辑" }}评估</div>
<div <div
style="margin-left: 500px; cursor: pointer" style="margin-left: 500px; cursor: pointer"
@click="handleCancel" @click="handleCancel"
> >
<img <img
alt="close"
style="width: 20px; height: 20px" style="width: 20px; height: 20px"
src="../../assets/images/basicinfo/close.png" src="../../assets/images/basicinfo/close.png"
/> />
@@ -682,7 +683,7 @@ const handleNext = async () => {
} }
.btn { .btn {
padding: 0px 26px 0px 26px; padding: 0 26px 0 26px;
height: 38px; height: 38px;
background: #4ea6ff; background: #4ea6ff;
border-radius: 8px; border-radius: 8px;
@@ -707,7 +708,7 @@ const handleNext = async () => {
} }
.btnn { .btnn {
padding: 0px 26px 0px 26px; padding: 0 26px 0 26px;
height: 38px; height: 38px;
background: #4ea6ff; background: #4ea6ff;
border-radius: 8px; border-radius: 8px;
@@ -777,7 +778,7 @@ const handleNext = async () => {
display: flex; display: flex;
.btn { .btn {
padding: 0px 26px 0px 26px; padding: 0 26px;
height: 38px; height: 38px;
background: #4ea6ff; background: #4ea6ff;
border-radius: 8px; border-radius: 8px;
@@ -803,7 +804,7 @@ const handleNext = async () => {
} }
.btn3 { .btn3 {
margin-right: 0px; margin-right: 0;
.search { .search {
width: 17px; width: 17px;
@@ -845,12 +846,6 @@ const handleNext = async () => {
td.ant-table-cell { td.ant-table-cell {
text-align: center; text-align: center;
} }
.ant-table-tbody
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
> td {
background: #f6f9fd;
}
} }
.pa { .pa {
@@ -904,7 +899,7 @@ const handleNext = async () => {
z-index: 9999; z-index: 9999;
width: 424px; width: 424px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21); box-shadow: 0 1px 35px 0 rgba(118, 136, 166, 0.21);
border-radius: 4px; border-radius: 4px;
position: absolute; position: absolute;
left: 50%; left: 50%;
@@ -942,8 +937,8 @@ const handleNext = async () => {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: absolute; position: absolute;
top: 0px; top: 0;
left: 0px; left: 0;
background-size: 100% 100%; background-size: 100% 100%;
} }
} }