|
@ -97,6 +97,12 @@ |
|
|
更多<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
更多<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-dropdown-menu split-button="true" slot="dropdown"> |
|
|
<el-dropdown-menu split-button="true" slot="dropdown"> |
|
|
|
|
|
|
|
|
|
|
|
<el-dropdown-item v-if="scope.row.top != 1 &&scope.row.statusType!='已结束'" command="setTop">置顶</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item v-if="scope.row.top === 1 &&scope.row.statusType!='已结束'" command="setTop">取消置顶</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item v-if="scope.row.banner != 0 &&scope.row.statusType!='已结束'" command="setBanner">设置Banner</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item v-if="scope.row.banner === 1 &&scope.row.statusType!='已结束'" command="setBanner">取消Banner</el-dropdown-item> |
|
|
|
|
|
|
|
|
<el-dropdown-item command="signup">报名管理</el-dropdown-item> |
|
|
<el-dropdown-item command="signup">报名管理</el-dropdown-item> |
|
|
<el-dropdown-item command="clockin">打卡积分</el-dropdown-item> |
|
|
<el-dropdown-item command="clockin">打卡积分</el-dropdown-item> |
|
|
<el-dropdown-item v-if="scope.row.statusType!='进行中'" command="delete">删除活动</el-dropdown-item> |
|
|
<el-dropdown-item v-if="scope.row.statusType!='进行中'" command="delete">删除活动</el-dropdown-item> |
|
@ -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(){ |
|
|
handleSearch(){ |
|
|
console.log("this.long"); |
|
|
console.log("this.long"); |
|
@ -296,6 +348,10 @@ |
|
|
handelRegister(command, row) { |
|
|
handelRegister(command, row) { |
|
|
if (command == "signup") { |
|
|
if (command == "signup") { |
|
|
this.HandleRegistration(row); |
|
|
this.HandleRegistration(row); |
|
|
|
|
|
} else if (command == "setTop") { |
|
|
|
|
|
this.handleupTop(row); |
|
|
|
|
|
} else if (command == "setBanner") { |
|
|
|
|
|
this.handleupBanner(row); |
|
|
} else if (command == "clockin") { |
|
|
} else if (command == "clockin") { |
|
|
this.HandlePoints(row); |
|
|
this.HandlePoints(row); |
|
|
} else if (command == "delete") { |
|
|
} else if (command == "delete") { |
|
|