lex-xin 4 месяцев назад
Родитель
Сommit
24681bf268
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/views/accompaniment/modals/edit-music.vue

+ 2 - 2
src/views/accompaniment/modals/edit-music.vue

@@ -744,13 +744,13 @@ export default {
     },
     /** 确认修改 */
     onDialogConfirm() {
-      this.formLists.forEach(item => {
+      this.formLists.forEach((item, index) => {
         if (this.dialogType === "musicSheetCategoryId") {
           item.musicSheetCategoryId = this.dialogForms.musicSheetCategoryId;
         } else if (this.dialogType === "rankType") {
           item.rankType = this.dialogForms.rankType;
         } else if (this.dialogType === "sortNumber") {
-          item.sortNumber = this.dialogForms.sortNumber;
+          item.sortNumber = Number(this.dialogForms.sortNumber) + index;
         } else if (this.dialogType === "scoreType") {
           item.scoreType = this.dialogForms.scoreType;
         } else if (this.dialogType === "isConvertibleScore") {