weiximei hace 6 años
padre
commit
ef80790433

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

@@ -52,7 +52,7 @@
52 52
       <el-form-item prop="sort">
53 53
         <div style="display: flex; justify-content: flex-start;">
54 54
           <span style="width: 120px;">权重值</span>
55
-          <el-input-number v-model="ruleForm.sort" :min="1" :max="10" label="权重值" @change="sortHandleChange"/>
55
+          <el-input-number v-model="ruleForm.sort" :min="1" label="权重值" @change="sortHandleChange"/>
56 56
         </div>
57 57
       </el-form-item>
58 58
       <el-form-item style="display: flex; justify-content: center;">
@@ -167,11 +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
+      if (this.ruleForm.activityCarouselImg <= 0) {
171
+        this.$message.error('轮播图未上传')
172
+        loading.close()
173
+        return
174
+      }
175 175
       if (this.ruleForm.activityContent.length <= 0 && this.ruleForm.contentImg.length <= 0) {
176 176
         this.$message.error('活动内容描述 和 活动配图至少要存在一个!')
177 177
         loading.close()

+ 1
- 1
VUECODE/smart-property-manage/src/views/social/activity/edi/index.vue Ver fichero

@@ -53,7 +53,7 @@
53 53
       <el-form-item prop="sort">
54 54
         <div style="display: flex; justify-content: flex-start;">
55 55
           <span style="width: 120px;">权重值</span>
56
-          <el-input-number v-model="ruleForm.sort" :min="1" :max="10" label="权重值" @change="sortHandleChange"/>
56
+          <el-input-number v-model="ruleForm.sort" :min="1" label="权重值" @change="sortHandleChange"/>
57 57
         </div>
58 58
       </el-form-item>
59 59
       <el-form-item style="display: flex; justify-content: center;">

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

@@ -178,6 +178,9 @@ export default {
178 178
       })
179 179
     },
180 180
     formatDate(val) {
181
+      if (val === null) {
182
+        return ''
183
+      }
181 184
       var value = new Date(val)
182 185
       var year = value.getFullYear()
183 186
       var month = value.getMonth() + 1

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

@@ -181,7 +181,7 @@ export default {
181 181
         return
182 182
       }
183 183
        let ide= this.deleteIds[0]
184
-       this.listQuery.id = ide 
184
+       this.listQuery.id = ide
185 185
       this.$store.dispatch('AnnouncementById', this.listQuery).then((res) => {
186 186
         const resData = res.data
187 187
         const announcement = resData.tpAnnouncement
@@ -211,6 +211,9 @@ export default {
211 211
       this.$router.push({ name: 'contentParticulars-details' ,params: { id: id }})
212 212
     },
213 213
     formatDate(val) {
214
+      if (val === null) {
215
+        return ''
216
+      }
214 217
       var value = new Date(val)
215 218
       var year = value.getFullYear()
216 219
       var month = value.getMonth() + 1