|
@@ -317,7 +317,8 @@ export default {
|
|
row.pictureConfigs = this.autoParsePictureConfigList(row.questions);
|
|
row.pictureConfigs = this.autoParsePictureConfigList(row.questions);
|
|
}
|
|
}
|
|
|
|
|
|
- await this.updateMarkGroup(row, pos === -1);
|
|
|
|
|
|
+ const data = await this.updateMarkGroup(row, pos === -1);
|
|
|
|
+ row.pictureConfigs = data.pictureConfigList;
|
|
if (pos === -1) {
|
|
if (pos === -1) {
|
|
this.groupList.push(row);
|
|
this.groupList.push(row);
|
|
} else {
|
|
} else {
|
|
@@ -333,7 +334,7 @@ export default {
|
|
groupInfo: omit(row, ["id"]),
|
|
groupInfo: omit(row, ["id"]),
|
|
};
|
|
};
|
|
const updateApi = isAdd ? markGroupItemSave : markGroupItemUpdate;
|
|
const updateApi = isAdd ? markGroupItemSave : markGroupItemUpdate;
|
|
- await updateApi(data);
|
|
|
|
|
|
+ return await updateApi(data);
|
|
},
|
|
},
|
|
autoParsePictureConfigList(questions) {
|
|
autoParsePictureConfigList(questions) {
|
|
if (!questions.length) return [];
|
|
if (!questions.length) return [];
|