wolyshaw 4 tahun lalu
induk
melakukan
8e8853ca9f

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

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

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

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