|
@@ -46,10 +46,10 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" align="right" label="操作" width="150">
|
|
|
<template slot-scope="{row}">
|
|
|
- <el-button v-hasPermi="['business:coupon:edit']" type="text" @click="$router.push('/coupon/add?id=' + row.couponId)">编辑</el-button>
|
|
|
+ <el-button v-hasPermi="['business:coupon:edit']" type="text" @click="$router.push('/coupon/edit?id=' + row.couponId)">编辑</el-button>
|
|
|
<el-button v-if="JSON.parse(row.status).value === 'off'" v-hasPermi="['business:coupon:on']" type="text" @click="setStatus(row, 'on')">上架</el-button>
|
|
|
<el-button v-if="JSON.parse(row.status).value === 'on'" v-hasPermi="['business:coupon:off']" type="text" @click="setStatus(row, 'off')">下架</el-button>
|
|
|
- <el-button v-hasPermi="['business:coupon:off']" class="del" type="text" @click="del(row)">删除</el-button>
|
|
|
+ <el-button v-if="JSON.parse(row.status).value === 'off'" v-hasPermi="['business:coupon:remove']" class="del" type="text" @click="del(row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -64,6 +64,7 @@ export default {
|
|
|
return {
|
|
|
loading: false,
|
|
|
showSearch: true,
|
|
|
+ tableData: [],
|
|
|
queryParams: {},
|
|
|
total: 0
|
|
|
}
|