|
|
|
@ -78,6 +78,7 @@ |
|
|
|
<el-table-column prop="sponsor" label="活动主办方" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="$hasPermission('activity:activityinfo:update')" type="text" size="small" @click="updateAction(scope.row.id)">{{ $t('update') }} </el-button> |
|
|
|
<el-button v-if="$hasPermission('activity:activityinfo:update')" type="text" size="small" @click="detailAction(scope.row.id)">查看详情</el-button> |
|
|
|
<el-button v-if="$hasPermission('activity:activityinfo:cancel') && new Date() < new Date(scope.row.actEndTime)" type="text" :disabled="scope.row.actStatus ==='0'? true :false" size="small" @click="cancelHandle(scope.row)">下架</el-button> |
|
|
|
<el-button v-if="$hasPermission('activity:activityinfo:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">报名情况</el-button> |
|
|
|
@ -162,6 +163,10 @@ export default { |
|
|
|
this.$parent.selectComponent = 'ActInfoDetailView' |
|
|
|
this.$router.push({ path: '/activity-actinfo', query: { id: id } }) |
|
|
|
}, |
|
|
|
updateAction (id) { |
|
|
|
this.$parent.selectComponent = 'ActInfoUpdate' |
|
|
|
this.$router.push({ path: '/activityinfo-add-or-update', query: { id: id } }) |
|
|
|
}, |
|
|
|
cancelHandle (row) { |
|
|
|
let state = row.actStatus |
|
|
|
if (state === '1') { |
|
|
|
|