Browse Source

排序修复

wolyshaw 4 years ago
parent
commit
52b598d236
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/resetTeaming/components/training-photos/index.vue

+ 6 - 1
src/views/resetTeaming/components/training-photos/index.vue

@@ -127,7 +127,12 @@ export default {
     },
     async setSort() {
       try {
-        await photoAlbumUpdate(this.list.map((item, index) => ({
+        const times = Object.values(this.times)
+        let list = []
+        for (const item of times) {
+          list = list.concat(item.list)
+        }
+        await photoAlbumUpdate(list.map((item, index) => ({
           ...item,
           order: index
         })))