dingxin 6 年之前
父節點
當前提交
3a30062f88
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      VUECODE/smart-property-manage/src/views/social/announcement/edit.vue

+ 3
- 1
VUECODE/smart-property-manage/src/views/social/announcement/edit.vue 查看文件

@@ -98,6 +98,7 @@ export default {
98 98
           }
99 99
           this.ruleForm.status = status // 发布状态
100 100
           this.$store.dispatch('Updateannouncement', this.ruleForm).then((res) => {
101
+
101 102
             if (res.code === '0') {
102 103
               this.$message({
103 104
                 message: res.message,
@@ -140,7 +141,7 @@ export default {
140 141
     handleRemove(file, fileList) { // 活动配图移除时
141 142
       this.ruleForm.contentImg = []
142 143
       for (let i = 0; i < fileList.length; i++) {
143
-        this.ruleForm.contentImg.push(fileList[i].response.data[0])
144
+        this.ruleForm.contentImg.push(fileList[i].url)
144 145
       }
145 146
       console.log(file, fileList)
146 147
     },
@@ -168,6 +169,7 @@ export default {
168 169
         //多张图片进行遍历
169 170
         for (let i = 0; i < resData.studentList.length; i++) {
170 171
           this.contentImgList.push({ url: resData.studentList[i].imageUrl })
172
+          this.ruleForm.contentImg.push(resData.studentList[i].imageUrl)
171 173
         }
172 174
       })
173 175
     }