|
@@ -53,7 +53,7 @@
|
|
|
<div class="table-operator">
|
|
|
<a-button v-if="$hasPermissions('B_product_dealerProduct_add')" id="productInfoList-add" type="primary" class="button-error" @click="handleEdit()">新增</a-button>
|
|
|
<!-- <a-button id="productInfoList-import" @click="handleImport" style="margin: 0 15px;">批量导入产品</a-button> -->
|
|
|
- <a-dropdown>
|
|
|
+ <a-dropdown v-if="$hasPermissions('B_product_dealerProduct_enable')">
|
|
|
<a-menu slot="overlay" @click="handleMenuClick">
|
|
|
<a-menu-item key="1"> 批量启用</a-menu-item>
|
|
|
<a-menu-item key="2"> 批量禁用</a-menu-item>
|
|
@@ -68,7 +68,7 @@
|
|
|
ref="table"
|
|
|
:style="{ height: tableHeight + 84.5 + 'px' }"
|
|
|
size="small"
|
|
|
- :row-selection="rowSelection"
|
|
|
+ :row-selection="$hasPermissions('B_product_dealerProduct_enable')?rowSelection:null"
|
|
|
@rowSelection="rowSelectionFun"
|
|
|
rowKeyName="productSn"
|
|
|
:rowKey="(record) => record.productSn"
|