|
@@ -18,7 +18,8 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" icon="el-icon-search" @click="getSearch">搜索</el-button>
|
|
<el-button type="primary" icon="el-icon-search" @click="getSearch">搜索</el-button>
|
|
<el-button icon="el-icon-refresh" @click="getRefresh">重置</el-button>
|
|
<el-button icon="el-icon-refresh" @click="getRefresh">重置</el-button>
|
|
- <el-button type="primary" icon="el-icon-plus" plain @click="getDetail" v-hasPermi="['operation:activity:add']">新增</el-button>
|
|
|
|
|
|
+ <el-button type="primary" icon="el-icon-plus" plain @click="getDetail"
|
|
|
|
+ v-hasPermi="['operation:activity:add']">新增</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
@@ -42,13 +43,18 @@
|
|
<el-table-column label="操作" align="center">
|
|
<el-table-column label="操作" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" @click="getDetail(scope.row, true)">查看</el-button>
|
|
<el-button type="text" @click="getDetail(scope.row, true)">查看</el-button>
|
|
- <el-button type="text" v-if="scope.row.status === 1" @click="getChange(scope.row.id, 0, '上架')" v-hasPermi="['operation:activity:up']">上架</el-button>
|
|
|
|
|
|
+ <el-button type="text" v-if="scope.row.status === 0" @click="getChange(scope.row.id, 1, '下架')"
|
|
|
|
+ v-hasPermi="['operation:activity:down']">下架</el-button>
|
|
<span v-else style="margin: 0 10px">
|
|
<span v-else style="margin: 0 10px">
|
|
- <el-button v-if="scope.row.status !== 2" type="text" @click="getDetail(scope.row)" v-hasPermi="['operation:activity:edit']">编辑</el-button>
|
|
|
|
- <el-button type="text" @click="getChange(scope.row.id, 1, '下架')" v-hasPermi="['operation:activity:down']">下架</el-button>
|
|
|
|
- <el-button type="delete" @click="getDelete(scope.row)" v-hasPermi="['operation:activity:delete']">删除</el-button>
|
|
|
|
|
|
+ <el-button v-if="scope.row.status !== 2" type="text" @click="getDetail(scope.row)"
|
|
|
|
+ v-hasPermi="['operation:activity:edit']">编辑</el-button>
|
|
|
|
+ <el-button type="text" @click="getChange(scope.row.id, 0, '上架')"
|
|
|
|
+ v-hasPermi="['operation:activity:up']">上架</el-button>
|
|
|
|
+ <el-button type="delete" @click="getDelete(scope.row)"
|
|
|
|
+ v-hasPermi="['operation:activity:delete']">删除</el-button>
|
|
</span>
|
|
</span>
|
|
- <el-button type="text" v-clipboard:copy="scope.row.copyUrl" v-clipboard:success="getCopy" v-hasPermi="['operation:activity:copy']">复制链接</el-button>
|
|
|
|
|
|
+ <el-button type="text" v-clipboard:copy="scope.row.copyUrl" v-clipboard:success="getCopy"
|
|
|
|
+ v-hasPermi="['operation:activity:copy']">复制链接</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|