From 6848514bf1cbe029ed73e34e94840164bea6c800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Tue, 9 Jul 2024 15:13:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9F=A5=E7=9C=8Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityParty/activity/eventDetails.vue | 16 ++-- .../modules/communityParty/activity/index.vue | 13 ++- .../activity/initiateActivity.vue | 85 ++++++++++--------- .../communityParty/comPromotion/event.vue | 2 +- 4 files changed, 62 insertions(+), 54 deletions(-) diff --git a/src/views/modules/communityParty/activity/eventDetails.vue b/src/views/modules/communityParty/activity/eventDetails.vue index 785a99f98..cf346bf70 100644 --- a/src/views/modules/communityParty/activity/eventDetails.vue +++ b/src/views/modules/communityParty/activity/eventDetails.vue @@ -68,22 +68,23 @@ {{ formData.points || "--" }} - -
+ +
活动总结:  

-
+ +
活动图片:
Image
- -
+ +
报名名单
@@ -112,8 +113,8 @@
- -
+ +
活动实况
@@ -229,7 +230,6 @@ export default { }, async initForm(row) { - this.startLoading(); this.formData = JSON.parse(JSON.stringify(row)); console.log(this.formData,"this.formData"); diff --git a/src/views/modules/communityParty/activity/index.vue b/src/views/modules/communityParty/activity/index.vue index a14761c3c..1a07a293d 100644 --- a/src/views/modules/communityParty/activity/index.vue +++ b/src/views/modules/communityParty/activity/index.vue @@ -105,7 +105,7 @@ 查看 - 编辑 + @@ -42,8 +45,8 @@ @@ -64,20 +67,24 @@ :reserve-keyword="true" placeholder="请输入关键词" :remote-method="remoteMethod" :loading="loading"> + :key="item.value || index" :label="item.label" :value="item.value">
- +
+ + +
-
+
活动总结:  

-
+
活动图片:
- @@ -160,26 +160,13 @@ export default { advertisingTag(){ }, async initForm(typeid,row) { - console.log(row,typeid,'row'); - this.startLoading(); - this.formData = JSON.parse(JSON.stringify(row)); + if(row!=null){ + this.formData = JSON.parse(JSON.stringify(row)); + } + this.formType=typeid console.log(this.formData); - // console.log(this.formData,'this.formData'); - // // this.initLoading = true; - // // // console.log('this.formData,',this.formData); - - // // let { latitude, longitude } = this.$store.state.user; - // // console.log("lat" + latitude + ",lon" + longitude); - // // if (this.formData.latitude && this.formData.longitude) { - // // latitude = this.formData.latitude; - // // longitude = this.formData.longitude; - // // } - // // if (!latitude || latitude == "" || latitude == "0") { - // // latitude = 39.9088810666821; - // // longitude = 116.39743841556731; - // // } this.endLoading(); }, async advertisingTag () { diff --git a/src/views/modules/communityParty/comPromotion/event.vue b/src/views/modules/communityParty/comPromotion/event.vue index 6820df6f0..1cf3ed53e 100644 --- a/src/views/modules/communityParty/comPromotion/event.vue +++ b/src/views/modules/communityParty/comPromotion/event.vue @@ -21,7 +21,7 @@
发布时间:   - {{ formData.releaseTime || "--" }}至{{ formData.endTime || "--" }} + {{ formData.releaseTime || "--" }}
状态: diff --git a/src/views/modules/communityParty/comPromotion/index.vue b/src/views/modules/communityParty/comPromotion/index.vue index 51eac7a7a..8f7ba9a07 100644 --- a/src/views/modules/communityParty/comPromotion/index.vue +++ b/src/views/modules/communityParty/comPromotion/index.vue @@ -202,14 +202,6 @@ } this.tableLoading = false }, - handleAdd () { - this.formTitle = '新增' - - this.formShow = true - this.$nextTick(() => { - // this.$refs.ref_form.initForm('add', null) - }) - }, diaClose () { // this.$refs.ref_form.resetData() @@ -234,10 +226,9 @@ handleAdd () { this.formTitle = '新增' - this.formShow = true this.$nextTick(() => { - // this.$refs.ref_form.initForm('add', null) + this.$refs.ref_form.initForm('add',null) }) }, handleEdit (row) {