26063
This commit is contained in:
		
							
								
								
									
										6
									
								
								packages/3.0.0/AppNotice/components/Add.vue
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								packages/3.0.0/AppNotice/components/Add.vue
									
									
									
									
										vendored
									
									
								
							| @@ -14,7 +14,7 @@ | ||||
|             <el-form-item label="发布组织" style="width: 100%;" prop="publishUnitName" :rules="[{ required: true, message: '请输入发布组织', trigger: 'blur' }]"> | ||||
|               <el-input size="small" placeholder="请输入发布组织" :maxlength="50" v-model="form.publishUnitName"></el-input> | ||||
|             </el-form-item> | ||||
|             <el-form-item label="正文" style="width: 100%;" prop="content" :rules="[{ required: true, message: '请输入正文', trigger: 'blur' }]"> | ||||
|             <el-form-item label="正文" style="width: 100%;" prop="content"> | ||||
|               <el-input size="small" placeholder="请输入正文" :rows="6" :maxlength="1000" type="textarea" v-model="form.content"></el-input> | ||||
|             </el-form-item> | ||||
|             <el-form-item label="图片" style="width: 100%;" prop="images"> | ||||
| @@ -80,6 +80,10 @@ | ||||
|       confirm () { | ||||
|         this.$refs.form.validate((valid) => { | ||||
|           if (valid) { | ||||
|             if (!this.form.content && !this.form.content) { | ||||
|               return this.$message.error('请输入正文或上传图片') | ||||
|             } | ||||
|  | ||||
|             this.instance.post(`/app/appmininotice/addOrUpdate`, { | ||||
|               ...this.form, | ||||
|               images: this.form.images ? JSON.stringify(this.form.images) : [] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user