dingxin hace 6 años
padre
commit
7e11cd6359

+ 1
- 1
CODE/smart-community/property-api/src/main/resources/mapper/TpAnnouncementMapper.xml Ver fichero

@@ -15,7 +15,7 @@
15 15
       tp_announcement
16 16
       <where>
17 17
         <if test="record.id != null and record.id != ''" >
18
-          AND id =  #{record.id,jdbcType=INTEGER}
18
+          AND id like concat('%',#{record.id,jdbcType=INTEGER},'%')
19 19
         </if>
20 20
         <if test="record.announcementTitle != null and record.announcementTitle != ''" >
21 21
           AND announcement_title like concat('%',#{record.announcementTitle,jdbcType=VARCHAR},'%')

+ 5
- 0
VUECODE/smart-property-manage/src/views/social/activity/add/index.vue Ver fichero

@@ -167,6 +167,11 @@ export default {
167 167
         spinner: 'el-icon-loading',
168 168
         background: 'rgba(0, 0, 0, 0.7)'
169 169
       })
170
+      if(this.ruleForm.activityCarouselImg<=0){
171
+            this.$message.error('轮播图未上传')
172
+            loading.close()
173
+            return    
174
+          }
170 175
       if (this.ruleForm.activityContent.length <= 0 && this.ruleForm.contentImg.length <= 0) {
171 176
         this.$message.error('活动内容描述 和 活动配图至少要存在一个!')
172 177
         loading.close()

+ 4
- 0
VUECODE/smart-property-manage/src/views/social/announcement/add.vue Ver fichero

@@ -86,6 +86,10 @@ export default {
86 86
       })
87 87
       this.$refs[formName].validate((valid) => {
88 88
         if (valid) {
89
+          if(this.ruleForm.announcementCarouselImg<=0){
90
+            this.$message.error('轮播图未上传')
91
+            return    
92
+          }
89 93
           if (this.ruleForm.announcementContent.length <= 0 && this.ruleForm.contentImg.length <= 0) {
90 94
             this.$message.error('公告内容描述 和 公告配图至少要存在一个!')
91 95
             return 

+ 1
- 1
VUECODE/smart-property-manage/src/views/social/announcement/edit.vue Ver fichero

@@ -158,7 +158,7 @@ export default {
158 158
       this.ruleForm.sort = value
159 159
       console.log(value)
160 160
     },
161
-    getById(id) { // 页面初始化后调用此方法根据ID获取活动信息
161
+    getById(id) { // 页面初始化后调用此方法根据ID获取公告信息
162 162
       this.ruleForm.id=this.$route.params.id
163 163
       this.$store.dispatch('AnnouncementById', this.ruleForm).then((res) => {
164 164
       const resData = res.data