dingxin 6 years ago
parent
commit
a2eca55011

+ 2
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java View File

301
             response.addError("海康电话已存在,推送海康电话修改失败");
301
             response.addError("海康电话已存在,推送海康电话修改失败");
302
             return response;
302
             return response;
303
         }
303
         }
304
-        if(null!=codes && codes.equals(code)){;
304
+        if(null!=codes && codes.equals(code)){
305
             TaUser taUser=new TaUser();
305
             TaUser taUser=new TaUser();
306
             taUser.setLoginName(phone);
306
             taUser.setLoginName(phone);
307
             taUser.setId(userId);
307
             taUser.setId(userId);
328
                 buildingOwnerInfo.setOwnerTel(phone);
328
                 buildingOwnerInfo.setOwnerTel(phone);
329
                 tpBuildingOwnerInfoMapper.updateByPrimaryKeySelective(buildingOwnerInfo);
329
                 tpBuildingOwnerInfoMapper.updateByPrimaryKeySelective(buildingOwnerInfo);
330
             }
330
             }
331
-
331
+            response.addSuccess(new String[0]);
332
             return response;
332
             return response;
333
         }else {
333
         }else {
334
             response.addError("验证码错误或电话号码错误");
334
             response.addError("验证码错误或电话号码错误");

+ 6
- 6
VUECODE/smart-property-manage/src/views/social/announcement/edit.vue View File

12
           class="avatar-uploader"
12
           class="avatar-uploader"
13
           name="uploadFiles"
13
           name="uploadFiles"
14
           action="http://localhost:8086/property-api/uploadimage">
14
           action="http://localhost:8086/property-api/uploadimage">
15
-          <img v-if="imageUrl" :src="imageUrl" class="avatar">
15
+          <img v-if="Urlimage" :src="Urlimage" class="avatar">
16
           <i v-else class="el-icon-plus avatar-uploader-icon"/>
16
           <i v-else class="el-icon-plus avatar-uploader-icon"/>
17
         </el-upload>
17
         </el-upload>
18
       </el-form-item>
18
       </el-form-item>
60
         status: '' // 状态 0 是已作废 1 是已发布   2 是草稿 3 是已修改
60
         status: '' // 状态 0 是已作废 1 是已发布   2 是草稿 3 是已修改
61
       },
61
       },
62
       contentImgList: [],
62
       contentImgList: [],
63
-      imageUrl: '', // 轮播图预览
63
+      Urlimage: '', // 轮播图预览
64
       dialogVisible: false, // 活动配图, 默认不显示 (以单张为单位)
64
       dialogVisible: false, // 活动配图, 默认不显示 (以单张为单位)
65
       dialogImageUrl: '', // 活动配图, 图片链接 (以单张为单位)
65
       dialogImageUrl: '', // 活动配图, 图片链接 (以单张为单位)
66
       rules: {
66
       rules: {
126
     },
126
     },
127
     handleAvatarSuccess(res, file) { // 轮播图上传回调
127
     handleAvatarSuccess(res, file) { // 轮播图上传回调
128
       this.ruleForm.announcementCarouselImg = res.data[0]
128
       this.ruleForm.announcementCarouselImg = res.data[0]
129
-      this.imageUrl = URL.createObjectURL(file.raw)
129
+      this.Urlimage = URL.createObjectURL(file.raw)
130
     },
130
     },
131
     beforeAvatarUpload(file) { // 轮播图上传前操作
131
     beforeAvatarUpload(file) { // 轮播图上传前操作
132
       // const isJPG = file.type === 'image/jpeg'
132
       // const isJPG = file.type === 'image/jpeg'
168
         const resData = res.data
168
         const resData = res.data
169
         this.ruleForm.announcementTitle=resData.tpAnnouncement.announcementTitle// 标题
169
         this.ruleForm.announcementTitle=resData.tpAnnouncement.announcementTitle// 标题
170
         this.ruleForm.announcementContent=resData.tpAnnouncement.announcementContent// 内容
170
         this.ruleForm.announcementContent=resData.tpAnnouncement.announcementContent// 内容
171
-        this.imageUrl=resData.tpAnnouncement.announcementCarouselImg // 轮播图
171
+        this.Urlimage=resData.tpAnnouncement.announcementCarouselImg // 轮播图
172
         this.ruleForm.sort=resData.tpAnnouncement.sort// 权重
172
         this.ruleForm.sort=resData.tpAnnouncement.sort// 权重
173
         //多张图片进行遍历
173
         //多张图片进行遍历
174
         const imgArr=resData.studentList
174
         const imgArr=resData.studentList
175
         console.log("imgArr:",imgArr)
175
         console.log("imgArr:",imgArr)
176
-        console.log("res.studentList:",resData.studentList)
177
         this.ruleForm.contentImg=imgArr// 内容图片
176
         this.ruleForm.contentImg=imgArr// 内容图片
178
         for (let i = 0; i < imgArr.length; i++) {
177
         for (let i = 0; i < imgArr.length; i++) {
179
-          this.contentImgList.push({ url: imgArr[i] })
178
+          // this.contentImgList=resData.studentList[i].imageUrl
179
+          console.log("imgArr2.:",imgArr)
180
         }
180
         }
181
         // console.log("this.ruleForm.contentImg",imgArr)
181
         // console.log("this.ruleForm.contentImg",imgArr)
182
         // const resData = res.data
182
         // const resData = res.data