Commit 524bfd97 by caoyanzhi

update: 游戏营销-按钮权限

parent 3bcd8664
......@@ -6,7 +6,7 @@
</el-select>
<el-input v-model="listParams.searchParam" class="w200" placeholder="输入游戏名称" clearable @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-checkbox class="vertical-middle ml0" v-if="$store.state.marketing.isShowSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="refresh" />
<el-button class="fr" type="primary" @click="$router.push('/game/dzp/add')">新建游戏</el-button>
<el-button class="fr" type="primary" v-if="$getButtonLimit($buttonCode.marketingAddDzp)" :limit-code="$buttonCode.marketingAddDzp" @click="$router.push('/game/dzp/add')">新建游戏</el-button>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width:100%">
......@@ -21,10 +21,10 @@
<template slot-scope="scope">
<el-button type="text" @click="setLinks(scope.row, 1)">链接</el-button>
<el-button type="text" @click="$router.push('/game/dzp/record/' + scope.row.gameId)">中奖记录</el-button>
<el-button type="text" @click="$router.push('/game/dzp/edit/' + scope.row.gameId)" v-if="scope.row.canEdit && scope.row.gameStatus != '3'">编辑</el-button>
<el-button type="text" @click="$router.push('/game/dzp/edit/' + scope.row.gameId)" v-if="$getButtonLimit($buttonCode.marketingEditDzp) && scope.row.canEdit && scope.row.gameStatus != '3'" :limit-code="$buttonCode.marketingEditDzp">编辑</el-button>
<el-button type="text" @click="$router.push('/game/dzp/detail/' + scope.row.gameId)" v-else>详情</el-button>
<dm-delete @confirm="delData(scope.row)" v-if="scope.row.canEdit !== false" tips="是否删除该游戏?">
<el-button type="text">删除</el-button>
<dm-delete @confirm="delData(scope.row)" v-if="$getButtonLimit($buttonCode.marketingDelDzp) && scope.row.canEdit !== false" tips="是否删除该游戏?">
<el-button type="text" :limit-code="$buttonCode.marketingDelDzp">删除</el-button>
</dm-delete>
</template>
</el-table-column>
......
......@@ -7,7 +7,7 @@
<el-date-picker :clearable="false" :default-time="['00:00:00', '23:59:59']" class="w400" v-model="dateTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="loadLotteryRecordList"></el-date-picker>
<el-input v-model="listParams.searchParam" class="w200" placeholder="会员昵称/手机号/卡号" clearable @change="loadLotteryRecordList"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-checkbox border class="pl10" v-model="listParams.freeFlag" :true-label="1" :false-label="0" @change="loadLotteryRecordList">免费抽奖</el-checkbox>
<el-button :disabled="disabledDownload" icon="iconfont icon-icon_yunxiazai fz14 mr5" type="primary" class="fr" @click="exportLotteryExcel">
<el-button v-if="$getButtonLimit($buttonCode.marketingDownloadDzpRecord)" :limit-code="$buttonCode.marketingDownloadDzpRecord" :disabled="disabledDownload" icon="iconfont icon-icon_yunxiazai fz14 mr5" type="primary" class="fr" @click="exportLotteryExcel">
<el-tooltip :open-delay="300" :content="tips" effect="dark" v-if="disabledDownload">
<span>下载Excel</span>
</el-tooltip>
......
......@@ -6,7 +6,7 @@
</el-select>
<el-input v-model="listParams.searchParam" class="w200" placeholder="输入游戏名称" clearable @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-checkbox class="vertical-middle ml0" v-if="$store.state.marketing.isShowSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="refresh" />
<el-button class="fr" type="primary" @click="$router.push('/game/ggk/add')">新建游戏</el-button>
<el-button class="fr" type="primary" v-if="$getButtonLimit($buttonCode.marketingAddGgk)" :limit-code="$buttonCode.marketingAddGgk" @click="$router.push('/game/ggk/add')">新建游戏</el-button>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width: 100%">
......@@ -21,10 +21,10 @@
<template slot-scope="scope">
<el-button type="text" @click="setLinks(scope.row, 2)">链接</el-button>
<el-button type="text" @click="$router.push('/game/ggk/record/' + scope.row.gameId)">中奖记录</el-button>
<el-button type="text" @click="$router.push('/game/ggk/edit/' + scope.row.gameId)" v-if="scope.row.canEdit && scope.row.gameStatus != '3'">编辑</el-button>
<el-button type="text" @click="$router.push('/game/ggk/edit/' + scope.row.gameId)" v-if="$getButtonLimit($buttonCode.marketingEditGgk) && scope.row.canEdit && scope.row.gameStatus != '3'" :limit-code="$buttonCode.marketingEditGgk">编辑</el-button>
<el-button type="text" @click="$router.push('/game/ggk/detail/' + scope.row.gameId)" v-else>详情</el-button>
<dm-delete @confirm="delData(scope.row)" v-if="scope.row.canEdit !== false" tips="是否删除该游戏?">
<el-button type="text">删除</el-button>
<dm-delete @confirm="delData(scope.row)" v-if="$getButtonLimit($buttonCode.marketingDelGgk) && scope.row.canEdit !== false" tips="是否删除该游戏?">
<el-button type="text" :limit-code="$buttonCode.marketingDelGgk">删除</el-button>
</dm-delete>
</template>
</el-table-column>
......
......@@ -7,7 +7,7 @@
<el-date-picker :clearable="false" :default-time="['00:00:00', '23:59:59']" class="w400" v-model="dateTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="loadLotteryRecordList"></el-date-picker>
<el-input v-model="listParams.searchParam" class="w200" placeholder="会员昵称/手机号/卡号" clearable @change="loadLotteryRecordList"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-checkbox border class="pl10" v-model="listParams.freeFlag" :true-label="1" :false-label="0" @change="loadLotteryRecordList">免费抽奖</el-checkbox>
<el-button :disabled="disabledDownload" icon="iconfont icon-icon_yunxiazai fz14 mr5" type="primary" class="fr" @click="exportLotteryExcel">
<el-button v-if="$getButtonLimit($buttonCode.marketingDownloadGgkRecord)" :limit-code="$buttonCode.marketingDownloadGgkRecord" :disabled="disabledDownload" icon="iconfont icon-icon_yunxiazai fz14 mr5" type="primary" class="fr" @click="exportLotteryExcel">
<el-tooltip :open-delay="300" :content="tips" effect="dark" v-if="disabledDownload">
<span>下载Excel</span>
</el-tooltip>
......
......@@ -7,7 +7,7 @@
<el-input v-model="listParams.searchParam" class="w200" placeholder="输入游戏名称" clearable @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-checkbox class="vertical-middle ml0" v-if="$store.state.marketing.isShowSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="refresh" />
<!-- <el-button class="fr" icon="iconfont icon-icon_yunxiazai fz14" @click="downLoadQr"> 下载二维码 </el-button> -->
<el-button class="fr" type="primary" @click="$router.push('/game/klfl/add')">新建游戏</el-button>
<el-button class="fr" type="primary" v-if="$getButtonLimit($buttonCode.marketingAddKlfl)" :limit-code="$buttonCode.marketingAddKlfl" @click="$router.push('/game/klfl/add')">新建游戏</el-button>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width: 100%">
......@@ -23,10 +23,10 @@
<template slot-scope="scope">
<el-button type="text" @click="setLinks(scope.row, 5)">链接</el-button>
<el-button type="text" v-if="scope.row.sendStatus !== 0" @click="$router.push('/game/klfl/record/' + scope.row.gameActivityId)">中奖记录</el-button>
<el-button type="text" v-if="scope.row.canEdit && (scope.row.activityStatus === 0 || scope.row.activityStatus === 1)" @click="$router.push('/game/klfl/edit/' + scope.row.gameActivityId)">编辑</el-button>
<el-button type="text" v-if="$getButtonLimit($buttonCode.marketingEditKlfl) && scope.row.canEdit && (scope.row.activityStatus === 0 || scope.row.activityStatus === 1)" :limit-code="$buttonCode.marketingEditKlfl" @click="$router.push('/game/klfl/edit/' + scope.row.gameActivityId)">编辑</el-button>
<el-button type="text" v-else @click="$router.push('/game/klfl/info/' + scope.row.gameActivityId)">详情</el-button>
<dm-delete @confirm="delData(scope.row)" tips="是否删除该游戏?" v-if="scope.row.canEdit !== false">
<el-button type="text">删除</el-button>
<dm-delete @confirm="delData(scope.row)" tips="是否删除该游戏?" v-if="$getButtonLimit($buttonCode.marketingDelKlfl) && scope.row.canEdit !== false">
<el-button type="text" :limit-code="$buttonCode.marketingDelKlfl">删除</el-button>
</dm-delete>
</template>
</el-table-column>
......
......@@ -9,7 +9,7 @@
</el-select>
<el-date-picker :clearable="false" @change="klflReportList" v-model="date" class="w250" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
<el-input v-model="listParams.searchParam" class="w200" placeholder="会员昵称/手机号/卡号" clearable @change="klflReportList"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-button :disabled="disabledDownload" icon="iconfont icon-icon_yunxiazai fz14 mr5" type="primary" class="fr" @click="klflRecordExcel">
<el-button v-if="$getButtonLimit($buttonCode.marketingDownloadKlflRecord)" :limit-code="$buttonCode.marketingDownloadKlflRecord" :disabled="disabledDownload" icon="iconfont icon-icon_yunxiazai fz14 mr5" type="primary" class="fr" @click="klflRecordExcel">
<el-tooltip :open-delay="300" :content="tips" effect="dark" v-if="disabledDownload">
<span>下载Excel</span>
</el-tooltip>
......
......@@ -6,8 +6,8 @@
</el-select>
<el-input v-model="listParams.searchParam" class="w200" placeholder="输入游戏名称" clearable @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-checkbox class="vertical-middle ml0" v-if="$store.state.marketing.isShowSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="refresh" />
<el-button class="fr" @click="configShow = true">拼图配置</el-button>
<el-button class="fr mr10" type="primary" @click="$router.push('/game/ptyx/add')">新建游戏</el-button>
<el-button class="fr" v-if="$getButtonLimit($buttonCode.marketingSetPtyx)" :limit-code="$buttonCode.marketingSetPtyx" @click="configShow = true">拼图配置</el-button>
<el-button class="fr mr10" type="primary" v-if="$getButtonLimit($buttonCode.marketingAddPtyx)" :limit-code="$buttonCode.marketingAddPtyx" @click="$router.push('/game/ptyx/add')">新建游戏</el-button>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width: 100%">
<el-table-column v-for="(v, i) in tableHeader" :fixed="v.fixed" :show-overflow-tooltip="v.tooltip" :width="v.width" :min-width="v.minWidth" :align="v.align" :key="i" :prop="v.prop" :label="v.label" :formatter="v.formatter">
......@@ -21,10 +21,10 @@
<template slot-scope="scope">
<el-button type="text" @click="setLinks(scope.row, 3)">链接</el-button>
<el-button type="text" v-if="scope.row.activityStatus !== 0" @click="$router.push('/game/ptyx/record/' + scope.row.gameActivityId)">记录</el-button>
<el-button type="text" v-if="scope.row.canEdit && (scope.row.activityStatus === 0 || scope.row.activityStatus === 1)" @click="$router.push('/game/ptyx/edit/' + scope.row.gameActivityId)">编辑</el-button>
<el-button type="text" v-if="$getButtonLimit($buttonCode.marketingEditPtyx) && scope.row.canEdit && (scope.row.activityStatus === 0 || scope.row.activityStatus === 1)" :limit-code="$buttonCode.marketingEditPtyx" @click="$router.push('/game/ptyx/edit/' + scope.row.gameActivityId)">编辑</el-button>
<el-button type="text" v-else @click="$router.push('/game/ptyx/query/' + scope.row.gameActivityId)">详情</el-button>
<dm-delete @confirm="delData(scope.row)" tips="是否删除该游戏?" v-if="scope.row.canEdit !== false">
<el-button type="text">删除</el-button>
<dm-delete @confirm="delData(scope.row)" tips="是否删除该游戏?" v-if="$getButtonLimit($buttonCode.marketingDelPtyx) && scope.row.canEdit !== false">
<el-button type="text" :limit-code="$buttonCode.marketingDelPtyx">删除</el-button>
</dm-delete>
</template>
</el-table-column>
......
......@@ -11,7 +11,7 @@
</el-select>
<!-- eslint-disable-next-line -->
<el-input v-model="listParams.searchParam" class="w200" placeholder="会员昵称/手机号/卡号" clearable @change="listParams.currentPage = 1;LoadPtyxRecordList()"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-button :disabled="disabledDownload" icon="iconfont icon-icon_yunxiazai fz14 mr5" type="primary" class="fr" @click="exportPtyxExcel">
<el-button :disabled="disabledDownload" icon="iconfont icon-icon_yunxiazai fz14 mr5" type="primary" class="fr" v-if="$getButtonLimit($buttonCode.marketingDownloadPtyxRecord)" :limit-code="$buttonCode.marketingDownloadPtyxRecord" @click="exportPtyxExcel">
<el-tooltip :open-delay="300" :content="tips" effect="dark" v-if="disabledDownload">
<span>下载Excel</span>
</el-tooltip>
......
......@@ -6,7 +6,7 @@
</el-select>
<el-input v-model="listParams.searchParam" class="w200" placeholder="输入游戏名称" clearable @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-checkbox class="vertical-middle ml0" v-if="$store.state.marketing.isShowSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="refresh" />
<el-button class="fr" type="primary" @click="$router.push('/game/znm/add')">新建游戏</el-button>
<el-button class="fr" type="primary" v-if="$getButtonLimit($buttonCode.marketingAddZnm)" :limit-code="$buttonCode.marketingAddZnm" @click="$router.push('/game/znm/add')">新建游戏</el-button>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width: 100%">
<el-table-column v-for="(v, i) in tableHeader" :fixed="v.fixed" :show-overflow-tooltip="v.tooltip" :width="v.width" :min-width="v.minWidth" :align="v.align" :key="i" :prop="v.prop" :label="v.label" :formatter="v.formatter">
......@@ -20,10 +20,10 @@
<template slot-scope="scope">
<el-button type="text" @click="setLinks(scope.row, 4)">链接</el-button>
<el-button type="text" v-if="scope.row.activityStatus !== 0" @click="$router.push('/game/znm/record/' + scope.row.gameActivityId)">记录</el-button>
<el-button type="text" v-if="scope.row.canEdit && (scope.row.activityStatus === 0 || scope.row.activityStatus === 1)" @click="$router.push('/game/znm/edit/' + scope.row.gameActivityId)">编辑</el-button>
<el-button type="text" v-if="$getButtonLimit($buttonCode.marketingEditZnm) && scope.row.canEdit && (scope.row.activityStatus === 0 || scope.row.activityStatus === 1)" :limit-code="$buttonCode.marketingEditZnm" @click="$router.push('/game/znm/edit/' + scope.row.gameActivityId)">编辑</el-button>
<el-button type="text" v-else @click="$router.push('/game/znm/info/' + scope.row.gameActivityId)">详情</el-button>
<dm-delete @confirm="delData(scope.row)" tips="是否删除该游戏?" v-if="scope.row.canEdit !== false">
<el-button type="text">删除</el-button>
<dm-delete @confirm="delData(scope.row)" tips="是否删除该游戏?" v-if="$getButtonLimit($buttonCode.marketingDelZnm) && scope.row.canEdit !== false">
<el-button type="text" :limit-code="$buttonCode.marketingDelZnm">删除</el-button>
</dm-delete>
</template>
</el-table-column>
......
......@@ -5,7 +5,7 @@
<el-tab-pane label="排行榜" name="first">
<div class="pb22 clearfix">
<el-input v-model="listParams.searchParam" class="w200" placeholder="会员昵称/手机号/卡号" clearable @change="znmReportList"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-button :disabled="disabledDownload" icon="iconfont icon-icon_yunxiazai fz14 mr5" type="primary" class="fr" @click="znmRankExcel">
<el-button v-if="$getButtonLimit($buttonCode.marketingDownloadZnmRecord)" :limit-code="$buttonCode.marketingDownloadZnmRecord" :disabled="disabledDownload" icon="iconfont icon-icon_yunxiazai fz14 mr5" type="primary" class="fr" @click="znmRankExcel">
<el-tooltip :open-delay="300" :content="tips" effect="dark" v-if="disabledDownload">
<span>下载Excel</span>
</el-tooltip>
......
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