[],
+ uploadUrl: window.SITE_CONFIG["apiURL"] + "/oss/file/article/upload",
supKeys: ["imgUrlArr", "imgUrl"],
- supValues: [[], ""],
+ supValues: [() => [], ""],
beforeImgUpload(file, item, that) {
console.log(file);
const isLt1M = file.size / 1024 / 1024 < 10;
@@ -129,7 +131,7 @@ export default {
type: "cascader",
value: [],
supKeys: ["publishRangeDesc"],
- supValues: [[]],
+ supValues: [""],
optionUrl: "/gov/org/customeragency/agencygridtree",
optionUrlParams: {
agencyId: this.$store.state.user.agencyId,
@@ -217,8 +219,8 @@ export default {
label: "以组织名义",
optionList: [
{
- label: agencyId,
- value: agencyName,
+ label: agencyName,
+ value: agencyId,
type: "agency",
},
],
@@ -310,6 +312,7 @@ export default {
},
editElseRules: {},
editConfig: {
+ confirmBtnName: "发布",
cookInfoFn(data) {
if (data.richTextFlag == "0") {
data.content = data.contentList
@@ -326,7 +329,10 @@ export default {
})
.join(" ");
} else {
- data.content = data.contentList[0].content;
+ data.content =
+ Array.isArray(data.contentList) && data.contentList.length > 0
+ ? data.contentList[0].content
+ : "";
}
if (data.imgUrl) {
data.imgArr = [
diff --git a/src/views/modules/communityParty/article/index.vue b/src/views/modules/communityParty/article/index.vue
index 18c6f8db0..f0530a571 100644
--- a/src/views/modules/communityParty/article/index.vue
+++ b/src/views/modules/communityParty/article/index.vue
@@ -151,6 +151,8 @@ export default {
"agencyId",
"subAgencyList"
)[vals.length - 1]["level"];
+ item["supValues"][1] =
+ item["supValues"][1] == "grid" ? "grid" : "agency";
} else {
item["supValues"][0] = "";
item["supValues"][1] = "";
@@ -161,7 +163,7 @@ export default {
field: "发布时间",
keyName: "publishTime",
type: "date-range",
- supKeys: ["startTime", "endTime"],
+ supKeys: ["startDate", "endDate"],
supValues: ["", ""],
},
],
@@ -221,9 +223,11 @@ export default {
keyName: "imgArr",
type: "upload",
limit: 1,
+ listType: "picture-card",
editDisabled: true,
rules: [],
value: () => [],
+ uploadUrl: window.SITE_CONFIG["apiURL"] + "/oss/file/article/upload",
supKeys: ["imgUrlArr", "imgUrl"],
supValues: [() => [], ""],
beforeImgUpload(file, item, that) {
@@ -248,7 +252,7 @@ export default {
type: "cascader",
value: () => [],
supKeys: ["publishRangeDesc"],
- supValues: [() => []],
+ supValues: [""],
optionUrl: "/gov/org/customeragency/agencygridtree",
optionUrlParams: {
agencyId: this.$store.state.user.agencyId,
@@ -429,6 +433,7 @@ export default {
},
editElseRules: {},
editConfig: {
+ confirmBtnName: "发布",
cookInfoFn(data) {
if (data.richTextFlag == "0") {
data.content = data.contentList
diff --git a/src/views/modules/communityParty/heart/heartAudit.vue b/src/views/modules/communityParty/heart/heartAudit.vue
index c8260e08b..d8361e867 100644
--- a/src/views/modules/communityParty/heart/heartAudit.vue
+++ b/src/views/modules/communityParty/heart/heartAudit.vue
@@ -32,7 +32,7 @@
align="center"
label="姓名"
:show-overflow-tooltip="true"
- width="150">
+ min-width="100">
+ width="180">
+ min-width="100">
+ width="90">
diff --git a/src/views/modules/communityParty/heart/heartFinish.vue b/src/views/modules/communityParty/heart/heartFinish.vue
index 0c7fc05f7..bdf0a988b 100644
--- a/src/views/modules/communityParty/heart/heartFinish.vue
+++ b/src/views/modules/communityParty/heart/heartFinish.vue
@@ -3,9 +3,10 @@
+ class="div_form mgl10">
+ min-width="320">
@@ -359,10 +360,17 @@ export default {
.div_table {
display: flex;
- justify-content: center;
+ justify-content: flex-start;
.m_table {
flex: 0 0 1200px;
// padding: 20px;
}
}
+.div_form {
+ width: 90%;
+ margin-top: 20px;
+}
+.mgl10 {
+ margin-left: 20px;
+}
\ No newline at end of file
diff --git a/src/views/modules/communityParty/heart/heartForm.vue b/src/views/modules/communityParty/heart/heartForm.vue
index 14650b472..8f3c9bfe5 100644
--- a/src/views/modules/communityParty/heart/heartForm.vue
+++ b/src/views/modules/communityParty/heart/heartForm.vue
@@ -50,6 +50,7 @@
:action="uploadUlr"
list-type="picture-card"
:on-exceed="exceedPic"
+ :before-upload="beforeAvatarUpload"
:on-remove="removePic"
:file-list="replayImgList"
:on-change="handleEditChange"
@@ -84,7 +85,8 @@
prop="actQuota"
style="display: block"
label-width="150px">
-
@@ -93,7 +95,8 @@
prop="reward"
style="display: block"
label-width="150px">
-
@@ -102,7 +105,7 @@
label-width="150px"
style="display: block">
@@ -115,7 +118,7 @@
label-width="150px"
style="display: block">
@@ -141,7 +144,7 @@
style="display: block"
prop="signUpEndTime"
label-width="150px">
-
@@ -187,7 +190,8 @@
prop="signInRadius"
style="display: block"
label-width="150px">
-
@@ -407,7 +411,7 @@ export default {
actId: "",
actLatitude: null,
actLongitude: null,
- actQuota: undefined,
+ actQuota: 0,
actStartTime: "",
actType: "heart",
@@ -418,13 +422,13 @@ export default {
noticePassedPeople: false,
requirement: "",
- reward: undefined,
+ reward: 0,
signInAddress: "",
signInEndTime: "",
signInLatitude: null,
signInLongitude: null,
- signInRadius: undefined,
+ signInRadius: 200,
signInStartTime: "",
signUpEndTime: "",
sponsorContacts: "",
@@ -457,7 +461,6 @@ export default {
},
//图片相关 oss/file/uploadvariedfile
- dialogImageUrl: 'oss/file/uploadvariedfile',
uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/uploadvariedfile',
// upload_url: '', // 上传URL
upload_name: '', // 图片或视频名称
@@ -703,6 +706,16 @@ export default {
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) {
this.replayImgList.push(file)
this.formData.coverPic = response.data.url
@@ -901,7 +914,7 @@ export default {
actId: "",
actLatitude: null,
actLongitude: null,
- actQuota: undefined,
+ actQuota: 0,
actStartTime: "",
actType: "heart",
@@ -912,13 +925,13 @@ export default {
noticePassedPeople: false,
requirement: "",
- reward: undefined,
+ reward: 0,
signInAddress: "",
signInEndTime: "",
signInLatitude: null,
signInLongitude: null,
- signInRadius: undefined,
+ signInRadius: 200,
signInStartTime: "",
signUpEndTime: "",
sponsorContacts: "",
@@ -1020,11 +1033,15 @@ export default {
}
.text_p {
+ width: 1000px;
margin: 0 0;
border: 3px;
- > p {
- margin: 0 0;
+ p {
+ margin: 0;
+ padding: 0;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
}
}
.div_content {
diff --git a/src/views/modules/communityParty/heart/heartList.vue b/src/views/modules/communityParty/heart/heartList.vue
index 37c2f9357..3a99cd0c7 100644
--- a/src/views/modules/communityParty/heart/heartList.vue
+++ b/src/views/modules/communityParty/heart/heartList.vue
@@ -10,7 +10,7 @@
prop="title">
@@ -42,7 +42,7 @@
-
@@ -100,6 +102,7 @@
@@ -110,6 +113,7 @@
@@ -117,18 +121,20 @@
header-align="center"
align="center"
label="状态"
+ :show-overflow-tooltip="true"
min-width="100">
@@ -266,7 +272,7 @@
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="'报名审核'"
- width="1450px"
+ width="90%"
top="5vh"
class="dialog-h"
@closed="auditDiaClose">
@@ -278,11 +284,12 @@
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="'查看人员'"
- width="1550px"
+ width="90%"
top="5vh"
class="dialog-h"
@closed="personDiaClose">
@@ -291,7 +298,7 @@
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="'活动结束'"
- width="1350px"
+ width="1250px"
top="5vh"
class="dialog-h"
@closed="finishDiaClose">
@@ -308,7 +315,7 @@
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="'活动回顾'"
- width="1350px"
+ width="1150px"
top="5vh"
class="dialog-h"
@closed="reviewDiaClose">
@@ -586,6 +593,10 @@ export default {
this.personShow = false//
},
+ personDiaClose () {
+
+ this.personShow = false//
+ },
finishDiaClose () {
this.finishShow = false//
diff --git a/src/views/modules/communityParty/heart/heartPerson.vue b/src/views/modules/communityParty/heart/heartPerson.vue
index 0acab6d62..68cc71308 100644
--- a/src/views/modules/communityParty/heart/heartPerson.vue
+++ b/src/views/modules/communityParty/heart/heartPerson.vue
@@ -22,14 +22,14 @@
align="center"
label="姓名"
:show-overflow-tooltip="true"
- width="150">
+ min-width="100">
+ width="120">
@@ -37,7 +37,7 @@
header-align="center"
align="center"
label="身份证"
- min-width="180">
+ width="180">
+ min-width="100">
+ width="90">
+ width="90">
+ width="90">
+
+ 关 闭
+
+