diff --git a/src/layouts/components/MenuContent.vue b/src/layouts/components/MenuContent.vue index 0d2207a..c2b3ea9 100644 --- a/src/layouts/components/MenuContent.vue +++ b/src/layouts/components/MenuContent.vue @@ -18,6 +18,7 @@ -
+
新增 协会活动 调查问卷 @@ -42,29 +42,29 @@ - + - - + - + - - - + @@ -78,6 +78,7 @@ accept="image/*" :allowUploadDuplicateFile="true" :format-response="formatResponse" + :sizeLimit="{ size: 500, unit: 'KB', message: '图片大小不超过500KB' }" > @@ -87,8 +88,8 @@ tips="请选择单个视频文件上传" accept="video/*" :showImageFileName="true" - :imageViewerProps="true" :format-response="formatResponseVideo" + :sizeLimit="{ size: 50, unit: 'MB', message: '视频大小不超过50MB' }" > @@ -115,7 +116,7 @@ - + + + + + + + + +
提交 @@ -178,7 +187,8 @@ export default { range: '3', number: '', if_sign: '1', - custom_points: '' + custom_points: '', + if_message:2, }, activity_video: '', activity_video_show: [], @@ -203,7 +213,7 @@ export default { autoFocus: true, MENU_CONF: { uploadImage: { - maxFileSize: 50 * 1024 * 1024, + maxFileSize: 1 * 1024 * 1024, server: store.state.user.apiUrl + '/api/common/upload', fieldName: 'file', metaWithUrl: false, @@ -218,8 +228,9 @@ export default { insertFn(res.data.fullurl, '', '') }, onError: (file, err, res) => { + console.log(err); if (err.message.indexOf('exceeds maximum allowed size') !== -1) { - this.$message.error('限制为50M,请调整好再上传!', 2000); + this.$message.error('图片限制为1M,请调整好再上传!', 2000); } }, } diff --git a/src/pages/activity/activity_edit.vue b/src/pages/activity/activity_edit.vue index 90a318b..3e5530d 100644 --- a/src/pages/activity/activity_edit.vue +++ b/src/pages/activity/activity_edit.vue @@ -36,7 +36,7 @@ - + @@ -47,13 +47,13 @@ :style="{ width: '480px' }"/> - + - + @@ -72,6 +72,7 @@ accept="image/*" :allowUploadDuplicateFile="true" :format-response="formatResponse" + :sizeLimit="{ size: 500, unit: 'KB', message: '图片大小不超过500KB' }" > @@ -83,6 +84,7 @@ :showImageFileName="true" :imageViewerProps="true" :format-response="formatResponseVideo" + :sizeLimit="{ size: 50, unit: 'MB', message: '视频大小不超过50MB' }" > @@ -109,7 +111,7 @@ - + + + + + + + + +
提交 @@ -171,7 +181,8 @@ export default { range: '3', number: '', if_sign: '1', - custom_points: '' + custom_points: '', + if_message:2, }, addMode: false, editID: 0, @@ -289,6 +300,7 @@ export default { this.addForm.signup_start_time = d.signup_start_time; this.addForm.signup_end_time = d.signup_end_time; + this.addForm.if_message = Number(d.if_message); this.addForm.if_auditing = String(d.if_auditing); this.addForm.range = String(d.range); this.addForm.number = String(d.number); diff --git a/src/pages/activity/activity_index.vue b/src/pages/activity/activity_index.vue index bcf1cf9..963248f 100644 --- a/src/pages/activity/activity_index.vue +++ b/src/pages/activity/activity_index.vue @@ -1,5 +1,5 @@