Browse Source

爱心互助

master
jiangyy 3 years ago
parent
commit
6cff725eb3
  1. 14
      src/views/modules/communityParty/heart/heartFinish.vue
  2. 16
      src/views/modules/communityParty/heart/heartForm.vue
  3. 8
      src/views/modules/communityParty/heart/heartList.vue

14
src/views/modules/communityParty/heart/heartFinish.vue

@ -3,9 +3,10 @@
<div> <div>
<el-form ref="ref_form" <el-form ref="ref_form"
:inline="false" :inline="false"
:label-position="'left'"
:model="formData" :model="formData"
:rules="dataRule" :rules="dataRule"
class="div_form "> class="div_form mgl10">
<el-form-item label="实际活动时间" <el-form-item label="实际活动时间"
label-width="150px" label-width="150px"
style="display: block" style="display: block"
@ -98,7 +99,7 @@
header-align="center" header-align="center"
align="center" align="center"
label="理由" label="理由"
min-width="350"> min-width="320">
<template slot-scope="scope"> <template slot-scope="scope">
@ -359,10 +360,17 @@ export default {
.div_table { .div_table {
display: flex; display: flex;
justify-content: center; justify-content: flex-start;
.m_table { .m_table {
flex: 0 0 1200px; flex: 0 0 1200px;
// padding: 20px; // padding: 20px;
} }
} }
.div_form {
width: 90%;
margin-top: 20px;
}
.mgl10 {
margin-left: 20px;
}
</style> </style>

16
src/views/modules/communityParty/heart/heartForm.vue

@ -50,6 +50,7 @@
:action="uploadUlr" :action="uploadUlr"
list-type="picture-card" list-type="picture-card"
:on-exceed="exceedPic" :on-exceed="exceedPic"
:before-upload="beforeAvatarUpload"
:on-remove="removePic" :on-remove="removePic"
:file-list="replayImgList" :file-list="replayImgList"
:on-change="handleEditChange" :on-change="handleEditChange"
@ -104,7 +105,7 @@
label-width="150px" label-width="150px"
style="display: block"> style="display: block">
<el-input class="item_width_6" <el-input class="item_width_6"
maxlength="10" maxlength="20"
placeholder="请输入联系人" placeholder="请输入联系人"
v-model="formData.sponsorContacts"> v-model="formData.sponsorContacts">
</el-input> </el-input>
@ -117,7 +118,7 @@
label-width="150px" label-width="150px"
style="display: block"> style="display: block">
<el-input class="item_width_6" <el-input class="item_width_6"
maxlength="10" maxlength="20"
placeholder="请输入联系电话" placeholder="请输入联系电话"
v-model="formData.sponsorTel"> v-model="formData.sponsorTel">
</el-input> </el-input>
@ -459,7 +460,6 @@ export default {
}, },
// oss/file/uploadvariedfile // oss/file/uploadvariedfile
dialogImageUrl: 'oss/file/uploadvariedfile',
uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/uploadvariedfile', uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/uploadvariedfile',
// upload_url: '', // URL // upload_url: '', // URL
upload_name: '', // upload_name: '', //
@ -705,6 +705,16 @@ export default {
this.$message.warning("只能上传1张封面图") this.$message.warning("只能上传1张封面图")
}, },
beforeAvatarUpload (file) {
const isJPG = file.type === 'image/jpeg';
const isLt2M = file.size / 1024 / 1024 < 10;
if (!isLt2M) {
this.$message.error('上传图片大小不能超过 10MB!');
}
return isLt2M;
},
handleSuccess (response, file, fileList) { handleSuccess (response, file, fileList) {
this.replayImgList.push(file) this.replayImgList.push(file)
this.formData.coverPic = response.data.url this.formData.coverPic = response.data.url

8
src/views/modules/communityParty/heart/heartList.vue

@ -266,7 +266,7 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:title="'报名审核'" :title="'报名审核'"
width="1450px" width="90%"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="auditDiaClose"> @closed="auditDiaClose">
@ -278,7 +278,7 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:title="'查看人员'" :title="'查看人员'"
width="1550px" width="90%"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="personDiaClose"> @closed="personDiaClose">
@ -292,7 +292,7 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:title="'活动结束'" :title="'活动结束'"
width="1350px" width="1250px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="finishDiaClose"> @closed="finishDiaClose">
@ -309,7 +309,7 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:title="'活动回顾'" :title="'活动回顾'"
width="1350px" width="1150px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="reviewDiaClose"> @closed="reviewDiaClose">

Loading…
Cancel
Save