Kaynağa Gözat

Merge branch '2.0.0' of http://git.ycjcjy.com/fuxingfan/smartCommunity into 2.0.0

魏熙美 6 yıl önce
ebeveyn
işleme
ec7451d2d5

+ 6
- 1
VUECODE/smart-property-manage/src/views/social/activity/add/index.vue Dosyayı Görüntüle

@@ -2,7 +2,7 @@
2 2
   <div id="root">
3 3
     <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-position="top" label-width="150px" class="ruleForm">
4 4
       <el-form-item  prop="activityTitle">
5
-        <div>活动标题&nbsp;&nbsp;<el-input v-model="ruleForm.activityTitle" placeholder="20字以内" style="width: 80%;padding-left:3.5%;"/></div>
5
+        <div>活动标题&nbsp;&nbsp;<el-input v-model="ruleForm.activityTitle" placeholder="20字以内" style="width: 80%;padding-left:5.5%;"/></div>
6 6
       </el-form-item>
7 7
       <el-form-item  prop="activityCarouselImg">
8 8
         <div >
@@ -195,6 +195,11 @@ export default {
195 195
         return
196 196
       }
197 197
        console.log('this.ruleForm.activityContent',this.ruleForm.activityContent)
198
+       if(this.ruleForm.activityContent == '<p><br></p>'){
199
+             this.$message.error('活动详情描述不能为空!')
200
+             loading.close()
201
+             return
202
+          }
198 203
       if (this.ruleForm.activityContent =='') {
199 204
         this.$message.error('活动详情描述不能为空')
200 205
         loading.close()

+ 5
- 0
VUECODE/smart-property-manage/src/views/social/activity/edi/index.vue Dosyayı Görüntüle

@@ -146,6 +146,11 @@ export default {
146 146
            loading.close()
147 147
            return
148 148
           }
149
+          if(this.ruleForm.activityContent == ''){
150
+             this.$message.error('活动详情描述不能为空!')
151
+             loading.close()
152
+             return
153
+          }
149 154
           this.ruleForm.status = 1 // 发布状态
150 155
           this.$store.dispatch('UpdateActivity', this.ruleForm).then((res) => {
151 156
             if (res.code === '0') {

+ 1
- 1
VUECODE/smart-property-manage/src/views/social/announcement/add.vue Dosyayı Görüntüle

@@ -52,7 +52,7 @@
52 52
         <div>权重值&nbsp;&nbsp;<el-input-number  v-model="ruleForm.sort" label="权重值" @change="sortHandleChange" style="margin-left:5%"/></div>
53 53
         
54 54
       </el-form-item>
55
-      <el-form-item style="margin-left:13%">
55
+      <el-form-item style="margin-left:11.5%">
56 56
         <el-button @click="resetForm('ruleForm','2')">存为草稿</el-button>
57 57
         <el-button type="primary" @click="submitForm('ruleForm','1')">发布</el-button>
58 58
       </el-form-item>