|
@@ -12,8 +12,8 @@
|
|
|
</span>
|
|
|
{{ actInfo.name }}
|
|
|
</p>
|
|
|
- <div class="btn-box">
|
|
|
- <Button type="warning" size="small">删除</Button>
|
|
|
+ <div class="btn-box" v-show="isArea || actInfo.scope === 'school'">
|
|
|
+ <Button type="warning" size="small" @click="delAct()">删除</Button>
|
|
|
</div>
|
|
|
<!-- <div class="btn-box">
|
|
|
<Steps :current="2" size="small">
|
|
@@ -655,6 +655,28 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ delAct() {
|
|
|
+ this.$Modal.confirm({
|
|
|
+ title: '确定删除本次活动吗?',
|
|
|
+ // content: `确定删除本次活动吗?`,
|
|
|
+ onOk: () => {
|
|
|
+ let params = {
|
|
|
+ grant_type: 'delete',
|
|
|
+ activityId: this.actInfo.id,
|
|
|
+ owner: this.actInfo.owner,
|
|
|
+ scope: this.actInfo.scope,
|
|
|
+ }
|
|
|
+ this.$api.areaActivity.manageAct(params).then(res => {
|
|
|
+ if(res.code === 201) {
|
|
|
+ this.$Message.success('删除成功')
|
|
|
+ this.$router.go(-1)
|
|
|
+ } else if(res.code === 200) {
|
|
|
+ this.$Message.warning('删除失败')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
deleteApplica(data, index, type) {
|
|
|
console.log(data, index);
|
|
|
if(type === 'join') {
|