Browse Source

Merge branch 'dev-heart0629' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-heart0629

master
dai 3 years ago
parent
commit
86dde62a79
  1. 14
      src/views/modules/communityParty/heart/heartFinish.vue
  2. 29
      src/views/modules/communityParty/heart/heartForm.vue
  3. 8
      src/views/modules/communityParty/heart/heartList.vue
  4. 2071
      src/views/modules/visual/communityGovern/fivelayers/mapIndex-baidu.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>

29
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"
@ -85,6 +86,7 @@
style="display: block" style="display: block"
label-width="150px"> label-width="150px">
<el-input-number class="item_width_2" <el-input-number class="item_width_2"
:min="0"
v-model="formData.actQuota" v-model="formData.actQuota"
label="活动人数"></el-input-number> label="活动人数"></el-input-number>
</el-form-item> </el-form-item>
@ -94,6 +96,7 @@
style="display: block" style="display: block"
label-width="150px"> label-width="150px">
<el-input-number class="item_width_2" <el-input-number class="item_width_2"
:min="0"
v-model="formData.reward" v-model="formData.reward"
label="活动积分"></el-input-number> label="活动积分"></el-input-number>
</el-form-item> </el-form-item>
@ -102,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>
@ -115,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>
@ -158,7 +161,7 @@
type="textarea" type="textarea"
maxlength="200" maxlength="200"
show-word-limit show-word-limit
:rows="5" :rows="7"
placeholder="请输入报名条件,不超过200字" placeholder="请输入报名条件,不超过200字"
v-model="formData.requirement"></el-input> v-model="formData.requirement"></el-input>
</el-form-item> </el-form-item>
@ -188,6 +191,7 @@
style="display: block" style="display: block"
label-width="150px"> label-width="150px">
<el-input-number class="item_width_2" <el-input-number class="item_width_2"
:min="0"
v-model="formData.signInRadius" v-model="formData.signInRadius"
label="签到有效范围"></el-input-number> label="签到有效范围"></el-input-number>
</el-form-item> </el-form-item>
@ -407,7 +411,7 @@ export default {
actId: "", actId: "",
actLatitude: null, actLatitude: null,
actLongitude: null, actLongitude: null,
actQuota: undefined, actQuota: 0,
actStartTime: "", actStartTime: "",
actType: "heart", actType: "heart",
@ -418,7 +422,7 @@ export default {
noticePassedPeople: false, noticePassedPeople: false,
requirement: "", requirement: "",
reward: undefined, reward: 0,
signInAddress: "", signInAddress: "",
signInEndTime: "", signInEndTime: "",
@ -457,7 +461,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: '', //
@ -703,6 +706,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
@ -901,7 +914,7 @@ export default {
actId: "", actId: "",
actLatitude: null, actLatitude: null,
actLongitude: null, actLongitude: null,
actQuota: undefined, actQuota: 0,
actStartTime: "", actStartTime: "",
actType: "heart", actType: "heart",
@ -912,7 +925,7 @@ export default {
noticePassedPeople: false, noticePassedPeople: false,
requirement: "", requirement: "",
reward: undefined, reward: 0,
signInAddress: "", signInAddress: "",
signInEndTime: "", signInEndTime: "",

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">

2071
src/views/modules/visual/communityGovern/fivelayers/mapIndex-baidu.vue

File diff suppressed because it is too large
Loading…
Cancel
Save