Commit a41e780f by 王志慧

权限按钮

1 parent 752913d4
This diff could not be displayed because it is too large.
......@@ -2,22 +2,13 @@
<template>
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="addCashCoupon()">新建代金券</el-button>
<GLButton :size="size" type="primary" class="el-icon-plus" @click="addCashCoupon()" fn="新建代金券" display="disabled" mode="el-button">新建代金券</GLButton>
<GLButton :size="size" type="primary" class="el-icon-plus" style="margin-left: 30px" @click="addDiscountCoupon()" fn="新建折扣劵" display="disabled" mode="el-button">新建折扣劵</GLButton>
<GLButton :size="size" type="primary" class="el-icon-plus" style="margin-left: 30px" @click="addExchangeCoupon()" fn="新建兑换券" display="disabled" mode="el-button">新建兑换券</GLButton>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="addCashCoupon()">新建代金券</el-button> -->
<!-- <el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addService()">新建会员服务</el-button> -->
<el-button
:size="size"
type="primary"
class="el-icon-plus"
style="margin-left:30px;"
@click="addDiscountCoupon()"
>新建折扣劵</el-button>
<el-button
:size="size"
type="primary"
class="el-icon-plus"
style="margin-left:30px;"
@click="addExchangeCoupon()"
>新建兑换券</el-button>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" style="margin-left: 30px" @click="addDiscountCoupon()">新建折扣劵</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left: 30px" @click="addExchangeCoupon()">新建兑换券</el-button> -->
</div>
<div class="container">
<div>
......@@ -30,36 +21,20 @@
</div>
<!-- 表格区域 开始 -->
<GLTable
ref="coupon"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
>
<GLTable ref="coupon" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)">生效</el-button>
<GLButton v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)" fn="生效" display="disabled" mode="el-button">生效</GLButton>
<!-- <el-button v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)">生效</el-button> -->
<el-button v-if="scope.scope.status == '2'" type="text" @click="end(scope.scope)">失效</el-button>
<el-button
v-if="scope.scope.status == '1'"
type="text"
@click="handleEdit(2, scope.scope)"
>编辑</el-button>
<el-button
v-if="scope.scope.status == '2' || scope.scope.status == '3'"
type="text"
@click="handleEdit(3, scope.scope)"
>查看</el-button>
<el-button
v-if="scope.scope.status == '1' || scope.scope.status == '3'"
type="text"
@click="del(scope.scope)"
>删除</el-button>
<el-button type="text" @click="writeOffDetail(scope.scope)">核销详情</el-button>
<el-button type="text" @click="receiveDetail(scope.scope)">领取详情</el-button>
<!-- <el-button v-if="scope.scope.status == '1'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<GLButton v-if="scope.scope.status == '2' || scope.scope.status == '3'" type="text" @click="handleEdit(3, scope.scope)" :fn="scope.scope.discountType == 3 ? '查看代金券' : scope.scope.discountType == 7 ? '查看会员服务' : scope.scope.discountType == 2 ? '查看折扣券' : '查看兑换券'" mode="el-button">查看</GLButton>
<!-- <el-button v-if="scope.scope.status == '2' || scope.scope.status == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button> -->
<GLButton v-if="scope.scope.status == '1' || scope.scope.status == '3'" type="text" @click="del(scope.scope)" fn="删除" mode="el-button" display="disabled">删除</GLButton>
<!-- <el-button v-if="scope.scope.status == '1' || scope.scope.status == '3'" type="text" @click="del(scope.scope)">删除</el-button> -->
<GLButton type="text" @click="writeOffDetail(scope.scope)" fn="核销详情" mode="el-button">核销详情</GLButton>
<GLButton type="text" @click="receiveDetail(scope.scope)" fn="领取详情" mode="el-button">领取详情</GLButton>
<!-- <el-button type="text" @click="writeOffDetail(scope.scope)">核销详情</el-button>
<el-button type="text" @click="receiveDetail(scope.scope)">领取详情</el-button> -->
</div>
</GLTable>
<!-- 表格区域 end -->
......
......@@ -2,7 +2,8 @@
<template>
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="addActivity()">新增秒杀活动</el-button>
<GLButton :size="size" type="primary" class="el-icon-plus" @click="addActivity()" fn="新增秒杀活动" mode="el-button">新增秒杀活动</GLButton>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="addActivity()">新增秒杀活动</el-button> -->
</div>
<div class="container">
<div>
......@@ -22,8 +23,10 @@
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.activityStatus == '1'" type="text" @click="start(scope.scope)">开始</el-button>
<el-button v-if="scope.scope.activityStatus == '2'" type="text" @click="end(scope.scope)">结束</el-button>
<el-button v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button>
<GLButton v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)" fn="编辑秒杀活动" mode="el-button">编辑</GLButton>
<!-- <el-button v-if="scope.scope.activityStatus == '1'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<GLButton v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)" fn="编辑秒杀活动" mode="el-button">查看</GLButton>
<!-- <el-button v-if="scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button> -->
<el-button v-if="scope.scope.activityStatus == '3'" type="text" @click="del(scope.scope)">删除</el-button>
<el-button type="text" @click="topping(scope.scope)">置顶</el-button>
<el-button v-if="scope.scope.activityStatus == '1' || scope.scope.activityStatus == '2'" type="text" @click="handleShare(scope.scope)">分享</el-button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!