dingxin 6 年前
父节点
当前提交
0fe03916b0

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

157
         }
157
         }
158
 
158
 
159
         if ("".equals(tpActivity.getActivityContent())){
159
         if ("".equals(tpActivity.getActivityContent())){
160
-            responseBean.addError("活动内容描述不能为空");
160
+            responseBean.addError("活动详情描述不能为空");
161
             return responseBean;
161
             return responseBean;
162
         }
162
         }
163
 
163
 

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

194
         loading.close()
194
         loading.close()
195
         return
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
       this.ruleForm.status = status // 发布状态  1 是已发布   2 是草稿
203
       this.ruleForm.status = status // 发布状态  1 是已发布   2 是草稿
203
       console.log(' this.ruleForm', this.ruleForm.activityContent)
204
       console.log(' this.ruleForm', this.ruleForm.activityContent)
204
       this.$store.dispatch('AddActivity', this.ruleForm).then((res) => {
205
       this.$store.dispatch('AddActivity', this.ruleForm).then((res) => {

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

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

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

114
           //   return
114
           //   return
115
           // }
115
           // }
116
           this.ruleForm.status = status // 发布状态
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
              this.$message.error('公告内容描述不能为空!')
125
              this.$message.error('公告内容描述不能为空!')
119
              loading.close()
126
              loading.close()
120
              return
127
              return
191
 }
198
 }
192
 </script>
199
 </script>
193
 
200
 
194
-<style scoped>
201
+<style>
195
 #root {
202
 #root {
196
   display: flex;
203
   display: flex;
197
 }
204
 }

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

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