瀏覽代碼

机构信息导入导出接口调试

yuwenjun1997 2 年之前
父節點
當前提交
0c467358f9
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/views/normal/club/edit.vue
  2. 2 2
      src/views/normal/club/index.vue

+ 1 - 1
src/views/normal/club/edit.vue

@@ -391,7 +391,7 @@ export default {
         this.formData.fullAddress = res.data.address
         this.formData.point = res.data.lngAndLat
         this.formData.mobile = res.data.mobile
-        this.formData.logo = res.data.logo
+        this.formData.logo = res.data.logo || ''
         this.formData.banner = res.data.bannerList.length || ''
         this.formData.relationId = res.data.relationId
 

+ 2 - 2
src/views/normal/club/index.vue

@@ -218,7 +218,7 @@ export default {
     }
   },
   computed: {
-    ...mapGetters(['authUserId', 'userIdentity', 'copyUserInfo', 'prefix']),
+    ...mapGetters(['authUserId', 'userIdentity', 'UserInfo', 'prefix']),
     saveBtnClickable() {
       return this.uploadFileList.length > 0
     }
@@ -377,7 +377,7 @@ export default {
       const formData = new FormData()
 
       formData.append('authUserId', this.authUserId)
-      formData.append('createBy', this.copyUserInfo.authUserId)
+      formData.append('createBy', this.authUserId)
       formData.append('file', this.chooseFile)
 
       authImportExcel(formData)