Commit 080cde71 by caoyanzhi

update: 分享有礼-按钮权限

parent 600840f4
......@@ -206,6 +206,8 @@ import activeSelect from '@/components/active/active-select.vue';
<div class="to-active-tip font-14 color-606266">确认完成了所有前期准备工作,即可前往活动配置。</div>
<div class="to-active-btn">
<el-button
v-if="$getButtonLimit($buttonCode.marketingAddShare)"
:limit-code="$buttonCode.marketingAddShare"
type="primary"
:disabled="disableCreate"
@click="toCreate"
......
......@@ -25,13 +25,13 @@ import finishedActive from '@/components/active/finished-active.vue';
<div class="active-title-date font-14 color-909399 m-t-7">{{ item.startDate | formatTimeYmdHms }} - {{ item.endDate | formatTimeYmdHms }}</div>
</div>
<div class="active-title-right">
<el-button type="primary" plain @click.stop="toEdit(index, item)">活动配置</el-button>
<el-button type="primary" plain v-if="$getButtonLimit($buttonCode.marketingSetShare)" :limit-code="$buttonCode.marketingSetShare" @click.stop="toEdit(index, item)">活动配置</el-button>
<!-- <el-button
type="primary"
plain
@click="handleCopy(index, item)"
>复制路径</el-button> -->
<el-button type="primary" plain @click.stop="toDataList(index, item)">数据明细</el-button>
<el-button type="primary" plain v-if="$getButtonLimit($buttonCode.marketingShareData)" :limit-code="$buttonCode.marketingShareData" @click.stop="toDataList(index, item)">数据明细</el-button>
</div>
</div>
<div v-if="selectItem == item.activityId" class="finished-active-body">
......
......@@ -76,13 +76,15 @@ router.beforeEach((to, from, next) => {
}
})
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
store,
components: {
App
},
template: '<App/>'
});
window.getLimit(router, 'share-config').then(() => {
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
store,
components: {
App
},
template: '<App/>'
});
})
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