Browse Source

活动管理 审批按钮隐藏

master
zhangyongzhangyong 6 years ago
parent
commit
0467627ea3
  1. 11
      src/views/modules/heart/actuserrelation.vue

11
src/views/modules/heart/actuserrelation.vue

@ -39,7 +39,8 @@
<el-table-column prop="failureReason" 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 type="text" size="small" :disabled="scope.row.status ==='0'? false :true" @click="addOrUpdateHandle(scope.row.id)">审核</el-button>
<el-button type="text" size="small" v-if="show" @click="addOrUpdateHandle(scope.row.id)">审核</el-button>
<!-- <el-button type="text" size="small" :disabled="scope.row.status ==='0'? false :true" @click="addOrUpdateHandle(scope.row.id)">审核</el-button> -->
<el-button v-if="$hasPermission('heart:actinfo:look')" type="text" size="small" @click="detailHandle(scope.row.id)">查看</el-button>
</template>
</el-table-column>
@ -76,6 +77,7 @@ export default {
deleteURL: '/heart/actuserrelation',
deleteIsBatch: true
},
show: false,
dataForm: {
id: '',
actId: '',
@ -114,18 +116,25 @@ export default {
formatState: function (row, column) {
let state = row.status
if (state === '0') {
this.show = true
return '报名'
} else if (state === '1') {
this.show = false
return '审核通过'
} else if (state === '2') {
this.show = false
return '打卡'
} else if (state === '3') {
this.show = false
return '取消报名'
} else if (state === '4') {
this.show = false
return '审核不通过'
} else if (state === '5') {
this.show = false
return '确认加积分'
} else if (state === '6') {
this.show = false
return '拒绝加积分'
}
},

Loading…
Cancel
Save