dingxin 6 年之前
父節點
當前提交
0fe03916b0

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivityServiceImpl.java 查看文件

@@ -157,7 +157,7 @@ public class TpActivityServiceImpl extends ServiceImpl<TpActivityMapper, TpActiv
157 157
         }
158 158
 
159 159
         if ("".equals(tpActivity.getActivityContent())){
160
-            responseBean.addError("活动内容描述不能为空");
160
+            responseBean.addError("活动详情描述不能为空");
161 161
             return responseBean;
162 162
         }
163 163
 

+ 6
- 5
VUECODE/smart-property-manage/src/views/social/activity/add/index.vue 查看文件

@@ -194,11 +194,12 @@ export default {
194 194
         loading.close()
195 195
         return
196 196
       }
197
-      // if (this.ruleForm.activityContent =='<p><br></p>') {
198
-      //   this.$message.error('活动内容描述不能为空')
199
-      //   loading.close()
200
-      //   return
201
-      // }
197
+       console.log('this.ruleForm.activityContent',this.ruleForm.activityContent)
198
+      if (this.ruleForm.activityContent =='') {
199
+        this.$message.error('活动详情描述不能为空')
200
+        loading.close()
201
+        return
202
+      }
202 203
       this.ruleForm.status = status // 发布状态  1 是已发布   2 是草稿
203 204
       console.log(' this.ruleForm', this.ruleForm.activityContent)
204 205
       this.$store.dispatch('AddActivity', this.ruleForm).then((res) => {

+ 1
- 1
VUECODE/smart-property-manage/src/views/social/activity/edi/index.vue 查看文件

@@ -142,7 +142,7 @@ export default {
142 142
       this.$refs[formName].validate((valid) => {
143 143
         if (valid) {
144 144
            if (this.ruleForm.activityContent =='<p><br></p>') {
145
-           this.$message.error('活动内容描述不能为空')
145
+           this.$message.error('活动详情描述不能为空')
146 146
            loading.close()
147 147
            return
148 148
           }

+ 9
- 2
VUECODE/smart-property-manage/src/views/social/announcement/add.vue 查看文件

@@ -114,7 +114,14 @@ export default {
114 114
           //   return
115 115
           // }
116 116
           this.ruleForm.status = status // 发布状态
117
-         if(this.ruleForm.announcementContent === '<p><br></p>'){
117
+          console.log('this.ruleForm.announcementContent',this.ruleForm.announcementContent)
118
+
119
+          if(this.ruleForm.announcementContent == '<p><br></p>'){
120
+             this.$message.error('公告内容描述不能为空!')
121
+             loading.close()
122
+             return
123
+          }
124
+         if(this.ruleForm.announcementContent == ''){
118 125
              this.$message.error('公告内容描述不能为空!')
119 126
              loading.close()
120 127
              return
@@ -191,7 +198,7 @@ export default {
191 198
 }
192 199
 </script>
193 200
 
194
-<style scoped>
201
+<style>
195 202
 #root {
196 203
   display: flex;
197 204
 }

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

@@ -109,11 +109,16 @@ export default {
109 109
       this.$refs[formName].validate((valid) => {
110 110
         if (valid) {
111 111
           this.ruleForm.status = status // 发布状态
112
-          if(this.ruleForm.announcementContent === '<p><br></p>'){
112
+          if(this.ruleForm.announcementContent == '<p><br></p>'){
113 113
              this.$message.error('公告内容不能为空!')
114 114
              loading.close()
115 115
              return
116 116
           }
117
+          if(this.ruleForm.announcementContent == ''){
118
+             this.$message.error('公告内容描述不能为空!')
119
+             loading.close()
120
+             return
121
+          }
117 122
           this.$store.dispatch('Updateannouncement', this.ruleForm).then((res) => {
118 123
             if (res.code === '0') {
119 124
               this.$message({