26722
This commit is contained in:
		
							
								
								
									
										12
									
								
								packages/3.0.0/AppContentInfo/components/Add.vue
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								packages/3.0.0/AppContentInfo/components/Add.vue
									
									
									
									
										vendored
									
									
								
							| @@ -37,7 +37,7 @@ | ||||
|             <el-form-item v-if="form.contentType === '0'" label="正文" prop="content" style="width: 100%;" :rules="[{required: true, message: '请输入内容', trigger: 'change'}]"> | ||||
|               <ai-editor v-model="form.content" :instance="instance"/> | ||||
|             </el-form-item> | ||||
|             <el-form-item v-if="form.contentType === '0'" label="封面图片" prop="files" style="width: 100%;"> | ||||
|             <el-form-item v-if="form.contentType === '0' && !isHideCoverimg" label="封面图片" prop="files" style="width: 100%;"> | ||||
|               <ai-uploader | ||||
|                 :instance="instance" | ||||
|                 v-model="form.files" | ||||
| @@ -132,6 +132,7 @@ | ||||
|             value: '1' | ||||
|           } | ||||
|         ], | ||||
|         isHideCoverimg: false, | ||||
|         cateList: [] | ||||
|       } | ||||
|     }, | ||||
| @@ -141,6 +142,7 @@ | ||||
|     }, | ||||
|  | ||||
|     created () { | ||||
|       this.getModuleInfo() | ||||
|       this.getCateList() | ||||
|       this.form.areaId = this.user.info.areaId | ||||
|       this.disabledLevel = this.user.info.areaList.length | ||||
| @@ -163,6 +165,14 @@ | ||||
|         }) | ||||
|       }, | ||||
|  | ||||
|       getModuleInfo () { | ||||
|         this.instance.post(`/app/appcontentmoduleinfo/queryDetailById?id=${this.$route.query.moduleId}`).then(res => { | ||||
|           if (res.code === 0) { | ||||
|             this.isHideCoverimg = res.data.styleType === '0' | ||||
|           } | ||||
|         }) | ||||
|       }, | ||||
|  | ||||
|       onChange () { | ||||
|         this.form.files = [] | ||||
|       }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user