|
@@ -26,7 +26,8 @@
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" @click="getSearch">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" @click="getRefresh">重置</el-button>
|
|
|
- <el-button type="primary" icon="el-icon-plus" plain @click="getDetail">新增</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-plus" plain @click="getDetail"
|
|
|
+ v-hasPermi="['content:banner:add']">新增</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<!-- 列表 -->
|
|
@@ -45,11 +46,18 @@
|
|
|
<el-table-column label="结束时间" prop="endTime" align="center" />
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="scope.row.status === 1" type="text" @click="getChange(scope.row, 0)">下架</el-button>
|
|
|
+ <el-button v-if="scope.row.status === 1" type="text" @click="getChange(scope.row, 0)"
|
|
|
+ v-hasPermi="['content:banner:down']">下架</el-button>
|
|
|
<div v-else>
|
|
|
- <el-button type="text" @click="getDetail(scope.row)">编辑</el-button>
|
|
|
- <el-button type="text" @click="getChange(scope.row, 1)">上架</el-button>
|
|
|
- <el-button v-if="scope.row.status === 0" type="delete" @click="getDelete(scope.row)">删除
|
|
|
+ <el-button type="text" @click="getDetail(scope.row)" v-hasPermi="['content:banner:edit']">
|
|
|
+ 编辑
|
|
|
+ </el-button>
|
|
|
+ <el-button type="text" @click="getChange(scope.row, 1)" v-hasPermi="['content:banner:up']">
|
|
|
+ 上架
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="scope.row.status === 0" type="delete" @click="getDelete(scope.row)"
|
|
|
+ v-hasPermi="['content:banner:delete']">
|
|
|
+ 删除
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</template>
|