|
@@ -28,7 +28,13 @@
|
|
</a-row>
|
|
</a-row>
|
|
</a-form>
|
|
</a-form>
|
|
</div>
|
|
</div>
|
|
- <div class="add"><a-button type="primary" icon="plus" class="addBtn" @click="showModal" id="bannerSetting-showModal">新增</a-button></div>
|
|
|
|
|
|
+ <div class="add"><a-button
|
|
|
|
+ type="primary"
|
|
|
|
+ icon="plus"
|
|
|
|
+ class="addBtn"
|
|
|
|
+ @click="showModal"
|
|
|
|
+ id="bannerSetting-showModal"
|
|
|
|
+ v-hasPermission="'B_partnerManage_add'">新增</a-button></div>
|
|
<!-- table列表 -->
|
|
<!-- table列表 -->
|
|
<s-table
|
|
<s-table
|
|
ref="table"
|
|
ref="table"
|
|
@@ -40,7 +46,7 @@
|
|
<span slot="action" slot-scope="text, record">
|
|
<span slot="action" slot-scope="text, record">
|
|
<template>
|
|
<template>
|
|
<a-icon
|
|
<a-icon
|
|
- v-if="record.state==0"
|
|
|
|
|
|
+ v-if="$hasPermissions('B_partnerManage_edit') && record.state==0"
|
|
type="edit"
|
|
type="edit"
|
|
id="bannerSetting-handleEdit"
|
|
id="bannerSetting-handleEdit"
|
|
title="编辑"
|
|
title="编辑"
|
|
@@ -49,10 +55,11 @@
|
|
<span v-if="record.state==1">--</span>
|
|
<span v-if="record.state==1">--</span>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
- <a-icon type="qrcode" title="查看小程序码" @click="getQrCode(record)" :style="{ fontSize: '20px', color: '#e29e14', padding: '0 10px' }" />
|
|
|
|
|
|
+ <a-icon type="qrcode" title="查看小程序码" @click="getQrCode(record)" :style="{ fontSize: '20px', color: '#e29e14', padding: '0 10px' }" v-hasPermission="'B_partnerManage_QRcode'" />
|
|
</span>
|
|
</span>
|
|
<span slot="state" slot-scope="text, record">
|
|
<span slot="state" slot-scope="text, record">
|
|
<a-switch
|
|
<a-switch
|
|
|
|
+ v-hasPermission="'B_partnerManage_enable'"
|
|
checkedChildren="启用"
|
|
checkedChildren="启用"
|
|
unCheckedChildren="禁用"
|
|
unCheckedChildren="禁用"
|
|
id="bannerSetting-changeFlagHandle"
|
|
id="bannerSetting-changeFlagHandle"
|