|
@@ -121,11 +121,14 @@ export default {
|
|
|
|
|
|
if (this.isSubmit) return;
|
|
|
this.isSubmit = true;
|
|
|
+ const scoreDetail = this.modalForm.scoreDetail.map((item) => {
|
|
|
+ return { name: item.name, score: item.score + "" };
|
|
|
+ });
|
|
|
const datas = {
|
|
|
id: this.modalForm.id,
|
|
|
name: this.modalForm.name,
|
|
|
score: this.totalScore,
|
|
|
- scoreDetail: JSON.stringify(this.modalForm.scoreDetail),
|
|
|
+ scoreDetail: JSON.stringify(scoreDetail),
|
|
|
};
|
|
|
const data = await endScoreSave(datas).catch(() => {});
|
|
|
this.isSubmit = false;
|