|
@@ -51,7 +51,7 @@
|
|
|
<a-card size="small" :bordered="false">
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
<!-- 操作按钮 -->
|
|
|
- <div class="table-operator" v-if="$hasPermissions('B_promotionManagementAdd')">
|
|
|
+ <div class="table-operator" v-if="$hasPermissions('B_promoActivitiesAdd')">
|
|
|
<a-button type="primary" class="button-info" id="promotion-add1-btn" @click="handleEdit('BUY_PROD_GIVE_PROD')">买产品送产品</a-button>
|
|
|
<a-button type="primary" class="button-info" id="promotion-add2-btn" @click="handleEdit('PROMO_PROD')">特价产品</a-button>
|
|
|
<a-button type="primary" class="button-info" id="promotion-add3-btn" @click="handleEdit('BUY_PROD_GIVE_VALID')">买产品返代金券</a-button>
|
|
@@ -68,10 +68,9 @@
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
<!-- 促销名称 -->
|
|
|
- <!-- v-if="$hasPermissions('B_dealerPromotionDetail')" -->
|
|
|
<template slot="promotionName" slot-scope="text, record">
|
|
|
- <div :id="'promotion-info-'+record.id" class="link-bule nameBox text-overflows2" @click="handleDetail(record)">{{ record.promoName }}</div>
|
|
|
- <!-- <div v-else class="nameBox text-overflows2">{{ record.title }}</div> -->
|
|
|
+ <div :id="'promotion-info-'+record.id" v-if="$hasPermissions('B_promoActivitiesDetail')" class="link-bule nameBox text-overflows2" @click="handleDetail(record)">{{ record.promoName }}</div>
|
|
|
+ <div v-else class="nameBox text-overflows2">{{ record.promoName }}</div>
|
|
|
</template>
|
|
|
<!-- 促销时间 -->
|
|
|
<template slot="promotionTime" slot-scope="text, record">
|
|
@@ -103,33 +102,33 @@
|
|
|
class="button-warning"
|
|
|
:id="'promotion-edit-btn-'+record.id"
|
|
|
@click="handleEdit('edit',record)"
|
|
|
- v-if="(record.promoState=='NOT_RELEASE') && $hasPermissions('B_promotionManagementEdit')">编辑</a-button>
|
|
|
+ v-if="(record.promoState=='NOT_RELEASE') && $hasPermissions('B_promoActivitiesEdit')">编辑</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-warning"
|
|
|
:id="'promotion-abandon-btn-'+record.id"
|
|
|
- v-if="(record.promoState=='HAVE_RELEASE') && $hasPermissions('B_promotionManagementEdit')"
|
|
|
+ v-if="(record.promoState=='HAVE_RELEASE') && $hasPermissions('B_promoActivitiesAbandon')"
|
|
|
@click="handleAbandon(record)">废弃</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-warning"
|
|
|
:id="'promotion-img-btn-'+record.id"
|
|
|
- v-if="(record.promoState=='HAVE_RELEASE') && $hasPermissions('B_promotionManagementEdit')"
|
|
|
+ v-if="(record.promoState=='HAVE_RELEASE') && $hasPermissions('B_promoActivitiesImg')"
|
|
|
@click="handleSet(record)">轮播图</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-info"
|
|
|
@click="handleRelease(record)"
|
|
|
- v-if="record.promoState=='NOT_RELEASE'&&$hasPermissions('B_promotionManagementContent')"
|
|
|
+ v-if="record.promoState=='NOT_RELEASE'&&$hasPermissions('B_promoActivitiesRelease')"
|
|
|
:id="'promotion-release-btn-'+record.id">发布</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-error"
|
|
|
- v-if="record.promoState=='NOT_RELEASE'&&$hasPermissions('B_promotionManagementDel')"
|
|
|
+ v-if="record.promoState=='NOT_RELEASE'&&$hasPermissions('B_promoActivitiesDel')"
|
|
|
@click="handleDel(record)"
|
|
|
:id="'promotion-del-btn-'+record.id">删除</a-button>
|
|
|
</div>
|
|
@@ -229,14 +228,14 @@ export default {
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '促销名称', scopedSlots: { customRender: 'promotionName' }, width: '15%', align: 'left' },
|
|
|
- { title: '促销时间', scopedSlots: { customRender: 'promotionTime' }, width: '15%', align: 'center' },
|
|
|
+ { title: '促销名称', scopedSlots: { customRender: 'promotionName' }, width: '18%', align: 'left' },
|
|
|
+ { title: '促销时间', scopedSlots: { customRender: 'promotionTime' }, width: '18%', align: 'center' },
|
|
|
{ title: '参与经销商', scopedSlots: { customRender: 'joinCustomers' }, width: '8%', align: 'center' },
|
|
|
{ title: '促销类型', dataIndex: 'promoTypeDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '加盟商编辑', dataIndex: 'dealerEditFlag', width: '6%', align: 'center', customRender: function (text) { return (text ? text == '1' ? '是' : '否' : '--') } },
|
|
|
{ title: '首页轮播图', dataIndex: 'shopBannerFlag', width: '6%', align: 'center', customRender: function (text) { return (text ? text == '1' ? '是' : '否' : '--') } },
|
|
|
{ title: '促销状态', dataIndex: 'promoStateDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: '15%', align: 'center' }
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: '11%', align: 'center' }
|
|
|
]
|
|
|
}
|
|
|
},
|