zhangjie 1 年之前
父節點
當前提交
e813cf77d1
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/modules/mark/components/markParam/MarkParamGroup.vue

+ 3 - 2
src/modules/mark/components/markParam/MarkParamGroup.vue

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