|
@@ -46,7 +46,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="" label="报名人数" width="100">
|
|
<el-table-column prop="" label="报名人数" width="100">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="adfac"><span style="color: #00AE57;">{{ scope.row.signedNumber||0 }}</span>/{{ scope.row.recruitmentMax||'无限制' }}</div>
|
|
|
|
|
|
|
+ <div class="adfac"><span style="color: #00AE57;">{{ scope.row.recruitmentNow||0 }}</span>/{{ scope.row.recruitmentMax||'无限制' }}</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="" label="上下架" width="100">
|
|
<el-table-column prop="" label="上下架" width="100">
|
|
@@ -60,15 +60,17 @@
|
|
|
<div class="as" :class="{'jxz':scope.row.activeState==2}">{{ activeStateCfg[scope.row.activeState] || '未知' }}</div>
|
|
<div class="as" :class="{'jxz':scope.row.activeState==2}">{{ activeStateCfg[scope.row.activeState] || '未知' }}</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="250" fixed="right">
|
|
|
|
|
|
|
+ <el-table-column label="操作" width="270" fixed="right">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <el-button link type="text" @click="handleEdit(scope.row)" v-if="scope.row.activeState!=3&&$hasPermission('core:activity:update')">编辑</el-button>
|
|
|
|
|
|
|
+ <!-- <el-button link type="text" @click="handleEdit(scope.row)" v-if="scope.row.activeState!=3&&$hasPermission('core:activity:update')">编辑</el-button> -->
|
|
|
|
|
+ <el-button link type="text" @click="handleEdit(scope.row)" v-if="$hasPermission('core:activity:update')">编辑</el-button>
|
|
|
<el-button link type="text" @click="handleInfo(scope.row)" v-if="scope.row.activeState!=0&&$hasPermission('core:activity:info')">报名信息</el-button>
|
|
<el-button link type="text" @click="handleInfo(scope.row)" v-if="scope.row.activeState!=0&&$hasPermission('core:activity:info')">报名信息</el-button>
|
|
|
<el-button link type="text" @click="handleCode(scope.row)" v-if="!scope.row.signCode&&scope.row.activeState==2&&$hasPermission('core:activity:code')">生成签到码</el-button>
|
|
<el-button link type="text" @click="handleCode(scope.row)" v-if="!scope.row.signCode&&scope.row.activeState==2&&$hasPermission('core:activity:code')">生成签到码</el-button>
|
|
|
<el-button link type="text" @click="handleReviewCode(scope.row)" v-if="scope.row.signCode&&scope.row.activeState==2&&$hasPermission('core:activity:code')">查看签到码</el-button>
|
|
<el-button link type="text" @click="handleReviewCode(scope.row)" v-if="scope.row.signCode&&scope.row.activeState==2&&$hasPermission('core:activity:code')">查看签到码</el-button>
|
|
|
- <el-button link type="text" @click="handleUpDown(scope.row,0)" v-if="scope.row.state==1&&(scope.row.activeState==0||scope.row.activeState==3)&&$hasPermission('core:activity:updown')">下架</el-button>
|
|
|
|
|
- <el-button link type="text" @click="handleUpDown(scope.row,1)" v-if="scope.row.state==0&&scope.row.activeState==0&&$hasPermission('core:activity:updown')">上架</el-button>
|
|
|
|
|
- <el-button link type="text" @click="handleDelete(scope.row)" v-if="$hasPermission('core:activity:delete')&&(scope.row.state==0||scope.row.activeState==0||scope.row.activeState==3)">删除</el-button>
|
|
|
|
|
|
|
+ <!-- <el-button link type="text" @click="handleUpDown(scope.row,0)" v-if="scope.row.state==1&&(scope.row.activeState==0||scope.row.activeState==3)&&$hasPermission('core:activity:updown')">下架</el-button> -->
|
|
|
|
|
+ <el-button link type="text" @click="handleUpDown(scope.row,0)" v-if="scope.row.state==1&&$hasPermission('core:activity:updown')">下架</el-button>
|
|
|
|
|
+ <el-button link type="text" @click="handleUpDown(scope.row,1)" v-if="scope.row.state==0&&$hasPermission('core:activity:updown')">上架</el-button>
|
|
|
|
|
+ <el-button link type="text" @click="handleDelete(scope.row)" v-if="$hasPermission('core:activity:delete')&&scope.row.state==0&&scope.row.activeState==0">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -211,6 +213,7 @@ export default {
|
|
|
this.show = false
|
|
this.show = false
|
|
|
},
|
|
},
|
|
|
handleUpDown (row, state) {
|
|
handleUpDown (row, state) {
|
|
|
|
|
+ if (row.recruitmentNow > 0) return this.$message.error('当前活动已存在报名人数,无法下架')
|
|
|
this.$confirm(`是否确认${state ? '上架' : '下架'}活动【${row.activityName}】?`, '提示', {
|
|
this.$confirm(`是否确认${state ? '上架' : '下架'}活动【${row.activityName}】?`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|