From b035e488bdb9d8c3a2b3ec219d4e9820e666508d Mon Sep 17 00:00:00 2001 From: duanliangtao <48194157+duanliangtao@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:36:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=97=E6=84=BF=E8=80=85=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E5=8F=8A=E5=8A=A8=E6=80=81=E6=B7=BB=E5=8A=A0=E7=BD=AE=E9=A1=B6?= =?UTF-8?q?=E4=B8=8Ebanner=E5=9B=BE=E5=B1=95=E7=A4=BA=E7=9A=84=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../volunteer/Dynamicmanagement/add.vue | 4 +- .../volunteer/Dynamicmanagement/edit.vue | 4 +- .../volunteer/Dynamicmanagement/info.vue | 4 +- .../modules/volunteer/activityArchive/add.vue | 33 ++++++++++- .../volunteer/activityArchive/index.vue | 56 +++++++++++++++++++ .../volunteer/activityArchive/realselect.vue | 14 ++++- .../volunteer/activityArchive/select.vue | 32 ++++++++++- 7 files changed, 138 insertions(+), 9 deletions(-) diff --git a/src/views/modules/volunteer/Dynamicmanagement/add.vue b/src/views/modules/volunteer/Dynamicmanagement/add.vue index 70612dbcc..25fb70b64 100644 --- a/src/views/modules/volunteer/Dynamicmanagement/add.vue +++ b/src/views/modules/volunteer/Dynamicmanagement/add.vue @@ -38,8 +38,8 @@ - + diff --git a/src/views/modules/volunteer/Dynamicmanagement/edit.vue b/src/views/modules/volunteer/Dynamicmanagement/edit.vue index 289f2c4c4..61d126f21 100644 --- a/src/views/modules/volunteer/Dynamicmanagement/edit.vue +++ b/src/views/modules/volunteer/Dynamicmanagement/edit.vue @@ -38,8 +38,8 @@ - + diff --git a/src/views/modules/volunteer/Dynamicmanagement/info.vue b/src/views/modules/volunteer/Dynamicmanagement/info.vue index 6b80fe9a4..514226aa0 100644 --- a/src/views/modules/volunteer/Dynamicmanagement/info.vue +++ b/src/views/modules/volunteer/Dynamicmanagement/info.vue @@ -42,8 +42,8 @@ - + diff --git a/src/views/modules/volunteer/activityArchive/add.vue b/src/views/modules/volunteer/activityArchive/add.vue index 6f421d4f3..76511ba69 100644 --- a/src/views/modules/volunteer/activityArchive/add.vue +++ b/src/views/modules/volunteer/activityArchive/add.vue @@ -163,7 +163,7 @@ - + @@ -208,6 +208,27 @@ + + + + + + + + + + + + + + + + + @@ -299,6 +320,8 @@ export default { latitude: this.$store.state.user.latitude,//纬度 type: "", online: 0, + top:0, + banner:0, sponsors: [{ name: "", phone: "" @@ -735,6 +758,14 @@ export default { // 将 value 转换为整数 this.formData.online = Number(value); }, + handleTopSwitchChange(value) { + // 将 value 转换为整数 + this.formData.top = Number(value); + }, + handleBannerSwitchChange(value) { + // 将 value 转换为整数 + this.formData.banner = Number(value); + }, handleOnlineRegistration(value) { if (value) { diff --git a/src/views/modules/volunteer/activityArchive/index.vue b/src/views/modules/volunteer/activityArchive/index.vue index 6185c9839..5c5f9b97d 100644 --- a/src/views/modules/volunteer/activityArchive/index.vue +++ b/src/views/modules/volunteer/activityArchive/index.vue @@ -97,6 +97,12 @@ 更多 + + 置顶 + 取消置顶 + 设置Banner + 取消Banner + 报名管理 打卡积分 删除活动 @@ -250,6 +256,52 @@ }) }, + + handleupTop(row){ + console.log(row,"row"); + if (row.top==1) { + row.top=0 + + }else{ + row.top=1 + } + + let url="/voluntary/activityInfo/top", + params={ + id:row.id, + top:row.top + } + requestPost(url,params).then(res=>{ + console.log(res); + this.getTableData() + + }) + }, + + handleupBanner(row){ + console.log(row,"row"); + if (row.banner==1) { + row.banner=0 + + }else{ + row.banner=1 + } + + let url="/voluntary/activityInfo/banner", + params={ + id:row.id, + banner:row.banner + } + requestPost(url,params).then(res=>{ + console.log(res); + this.getTableData() + + }) + }, + + + + //查询 handleSearch(){ console.log("this.long"); @@ -296,6 +348,10 @@ handelRegister(command, row) { if (command == "signup") { this.HandleRegistration(row); + } else if (command == "setTop") { + this.handleupTop(row); + } else if (command == "setBanner") { + this.handleupBanner(row); } else if (command == "clockin") { this.HandlePoints(row); } else if (command == "delete") { diff --git a/src/views/modules/volunteer/activityArchive/realselect.vue b/src/views/modules/volunteer/activityArchive/realselect.vue index c76937208..4aea3c1b0 100644 --- a/src/views/modules/volunteer/activityArchive/realselect.vue +++ b/src/views/modules/volunteer/activityArchive/realselect.vue @@ -92,10 +92,20 @@ {{ formData.deadline }} - + + + + + + + + +
@@ -179,6 +189,8 @@ latitude: this.$store.state.user.latitude,//纬度 type:"", online:0, + top:0, + banner:0, sponsors:[ ], diff --git a/src/views/modules/volunteer/activityArchive/select.vue b/src/views/modules/volunteer/activityArchive/select.vue index 5fab32b58..7001e0a6b 100644 --- a/src/views/modules/volunteer/activityArchive/select.vue +++ b/src/views/modules/volunteer/activityArchive/select.vue @@ -163,7 +163,7 @@ - + @@ -208,6 +208,25 @@
+ + + + + + + + + + + + + + + @@ -295,6 +314,8 @@ export default { latitude: this.$store.state.user.latitude,//纬度 type: "", online: 0, + top:0, + banner:0, sponsors: [ ] @@ -728,6 +749,15 @@ export default { // 将 value 转换为整数 this.formData.online = Number(value); }, + + handleTopSwitchChange(value) { + // 将 value 转换为整数 + this.formData.top = Number(value); + }, + handleBannerSwitchChange(value) { + // 将 value 转换为整数 + this.formData.banner = Number(value); + }, handleOnlineRegistration(value) { if (value) {