Commit f7087390 by caoyanzhi

update: 数据对话厅-按钮权限

parent ccdb4ada
......@@ -3,7 +3,7 @@
<div class="clearfix pb22">
<el-date-picker class="w400" v-model="dateTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="refresh"></el-date-picker>
<el-input v-model="listParams.search" class="w300" placeholder="请输入数据对话/创建人" clearable @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-button class="fr" type="primary" @click="$router.push('/activity/add')">新建数据对话</el-button>
<el-button class="fr" type="primary" v-if="$getButtonLimit($buttonCode.marketingAddActivity)" :limit-code="$buttonCode.marketingAddActivity" @click="$router.push('/activity/add')">新建数据对话</el-button>
<el-button class="fr mr10" @click="$router.push('/activity/history-list')">查看历史数据对话</el-button>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width: 100%">
......@@ -16,12 +16,12 @@
<el-table-column label="操作" align="left" width="210px" fixed="right">
<template slot-scope="scope">
<el-button type="text" @click="$router.push(`/activity/data-view/${scope.row.marketingActivityId}`)">数据概览</el-button>
<el-button type="text" @click="$router.push(`/activity/edit/${scope.row.marketingActivityId}`)">编辑</el-button>
<dm-delete @confirm="stopData(scope.row)" tips="是否下线该数据对话?">
<el-button type="text">下线</el-button>
<el-button type="text" v-if="$getButtonLimit($buttonCode.marketingEditActivity)" :limit-code="$buttonCode.marketingEditActivity" @click="$router.push(`/activity/edit/${scope.row.marketingActivityId}`)">编辑</el-button>
<dm-delete v-if="$getButtonLimit($buttonCode.marketingOutlineActivity)" @confirm="stopData(scope.row)" tips="是否下线该数据对话?">
<el-button :limit-code="$buttonCode.marketingOutlineActivity" type="text">下线</el-button>
</dm-delete>
<dm-delete @confirm="delData(scope.row)" tips="是否删除该数据对话?">
<el-button type="text">删除</el-button>
<dm-delete v-if="$getButtonLimit($buttonCode.marketingDelActivity)" @confirm="delData(scope.row)" tips="是否删除该数据对话?">
<el-button :limit-code="$buttonCode.marketingDelActivity" type="text">删除</el-button>
</dm-delete>
</template>
</el-table-column>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment