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) {