|
@@ -45,7 +45,7 @@
|
|
|
</el-form>
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="primary" icon="el-icon-plus" size="mini" @click="$router.push({ path: '/exchange/addCode' })" v-hasPermi="['business:exchange:add']">创建兑换码</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-plus" size="mini" @click="$router.push({ path: '/exchange/addCode' })" v-hasPermi="['business:cdKey:add']">创建兑换码</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -55,7 +55,7 @@
|
|
|
size="mini"
|
|
|
:loading="exportLoading"
|
|
|
@click="handleExport"
|
|
|
- v-hasPermi="['business:exchange:export']"
|
|
|
+ v-hasPermi="['business:cdKey:export']"
|
|
|
>导出兑换码</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -89,8 +89,8 @@
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="{ row }">
|
|
|
<div>
|
|
|
- <el-button v-hasPermi="['business:exchange:detail']" type="text" @click="$router.push({ path: '/exchange/detailCode',query: {id: row.groupId} })">查看</el-button>
|
|
|
- <el-button v-if="row.status && JSON.parse(row.status).value == 'noactive'" v-hasPermi="['business:exchange:edit']" type="text" @click="setStatus(row)">激活</el-button>
|
|
|
+ <el-button v-hasPermi="['business:cdKey:query']" type="text" @click="$router.push({ path: '/exchange/detailCode',query: {id: row.groupId} })">查看</el-button>
|
|
|
+ <el-button v-if="row.status && JSON.parse(row.status).value == 'noactive'" v-hasPermi="['business:cdKey:activate']" type="text" @click="setStatus(row)">激活</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|