wolyshaw 4 年 前
コミット
8e8853ca9f

+ 3 - 3
src/views/photo-detail/index.vue

@@ -90,7 +90,7 @@ export default {
       return this.$route.query.name || '相册详情'
     },
     queryIdOrType() {
-      const id = this.$route.params.id
+      const id = this.$route.query.pid
       if (this.type === 'DEFAULT') {
         return {
           id,
@@ -184,11 +184,11 @@ export default {
     async confirm() {
       try {
         await this.$confirm('是否确认修改照片信息?', '提示')
-        const data = this.list.map((item, index) => ({
+        const data = this.list.map((item, index) => ([{
           ...item,
           order: index,
           clientShow: +this.views.includes(item.id)
-        }))
+        }]))
         await photoUpdate(data)
         this.editing = false
         this.$message.success('修改成功')

+ 1 - 0
src/views/resetTeaming/components/training-photos/api.js

@@ -5,6 +5,7 @@ export const photoAlbumQueryPage = (data) => {
     url: '/api-web/photoAlbum/queryPage',
     data,
     method: 'post',
+    requestType: 'form'
   })
 }
 

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

@@ -113,6 +113,7 @@ export default {
       this.$router.push({
         path: '/photo-detail/' + item.id,
         query: {
+          pid: item.id,
           returnUrl: this.$route.fullPath,
           name: item.name
         }