Commit 05503ca6 by 黑潮

update: 修改bug

parent c310b9fa
......@@ -84,8 +84,8 @@
<el-table-column label="操作" align="left" width="160" fixed="right">
<template slot-scope="scope">
<!-- <template v-if="scope.row.canEdit !== false"> -->
<el-button type="text" v-if="($store.state.marketing.superAdmin == 1 || $store.state.marketing.useId == scope.row.creatorId) && (scope.row.effectType == 0 || scope.row.effectType == 1) && scope.row.onlineStatus != 2" @click="editData(scope.row)">编辑</el-button>
<el-button type="text" v-else-if="$store.state.marketing.superAdmin == 1 || $store.state.marketing.useId == scope.row.creatorId || [2, 3].includes($store.state.marketing.departAuth)" @click="$router.push(`/ecm/info/${scope.row.ecmPlanId}`)">详情</el-button>
<el-button type="text" v-if="($store.state.marketing.superAdmin == 1 || $store.state.marketing.userId == scope.row.creatorId) && (scope.row.effectType == 0 || scope.row.effectType == 1) && scope.row.onlineStatus != 2" @click="editData(scope.row)">编辑</el-button>
<el-button type="text" v-else-if="$store.state.marketing.superAdmin == 1 || $store.state.marketing.userId == scope.row.creatorId || [2, 3].includes($store.state.marketing.departAuth)" @click="$router.push(`/ecm/info/${scope.row.ecmPlanId}`)">详情</el-button>
<!-- </template> -->
<!-- <dm-delete v-if="scope.row.effectType !== 2 && scope.row.onlineStatus === 1 && scope.row.canEdit !== false" @confirm="offlineEcmPlan(scope.row)" tips="是否下线该计划?">
<el-button type="text">下线</el-button>
......
......@@ -21,8 +21,8 @@
<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="($store.state.marketing.superAdmin == 1 || $store.state.marketing.useId == scope.row.creatorId) && scope.row.gameStatus != '3'">编辑</el-button>
<el-button type="text" @click="$router.push('/game/dzp/detail/' + scope.row.gameId)" v-else-if="$store.state.marketing.superAdmin == 1 || $store.state.marketing.useId == scope.row.creatorId || [2, 3].includes($store.state.marketing.departAuth)">详情</el-button>
<el-button type="text" @click="$router.push('/game/dzp/edit/' + scope.row.gameId)" v-if="($store.state.marketing.superAdmin == 1 || $store.state.marketing.userId == scope.row.creatorId) && scope.row.gameStatus != '3'">编辑</el-button>
<el-button type="text" @click="$router.push('/game/dzp/detail/' + scope.row.gameId)" v-else-if="$store.state.marketing.superAdmin == 1 || $store.state.marketing.userId == scope.row.creatorId || [2, 3].includes($store.state.marketing.departAuth)">详情</el-button>
<dm-delete @confirm="delData(scope.row)" v-if="scope.row.canEdit !== false" tips="是否删除该游戏?">
<el-button type="text">删除</el-button>
</dm-delete>
......
......@@ -21,8 +21,8 @@
<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="($store.state.marketing.superAdmin == 1 || $store.state.marketing.useId == scope.row.creatorId) && scope.row.gameStatus != '3'">编辑</el-button>
<el-button type="text" @click="$router.push('/game/ggk/detail/' + scope.row.gameId)" v-else-if="$store.state.marketing.superAdmin == 1 || $store.state.marketing.useId == scope.row.creatorId || [2, 3].includes($store.state.marketing.departAuth)">详情</el-button>
<el-button type="text" @click="$router.push('/game/ggk/edit/' + scope.row.gameId)" v-if="($store.state.marketing.superAdmin == 1 || $store.state.marketing.userId == scope.row.creatorId) && scope.row.gameStatus != '3'">编辑</el-button>
<el-button type="text" @click="$router.push('/game/ggk/detail/' + scope.row.gameId)" v-else-if="$store.state.marketing.superAdmin == 1 || $store.state.marketing.userId == scope.row.creatorId || [2, 3].includes($store.state.marketing.departAuth)">详情</el-button>
<dm-delete @confirm="delData(scope.row)" v-if="scope.row.canEdit !== false" tips="是否删除该游戏?">
<el-button type="text">删除</el-button>
</dm-delete>
......
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