lilei 2 роки тому
батько
коміт
3e2da10a6d
1 змінених файлів з 2 додано та 7 видалено
  1. 2 7
      src/views/productManagement/productInfo/list.vue

+ 2 - 7
src/views/productManagement/productInfo/list.vue

@@ -101,13 +101,8 @@
           :loading="loadingDownline"
           @click="handleBatchDownline"
           style="margin: 0 10px;">批量下线</a-button>
-        <a-dropdown id="productInfoList-batchImport">
-          <a-menu slot="overlay" @click="handleMenuClick">
-            <a-menu-item key="1" v-if="$hasPermissions('B_productInfo_batchImport')">新增产品导入</a-menu-item>
-            <a-menu-item key="2" v-if="$hasPermissions('B_offlineProduct_import')">下线产品导入</a-menu-item>
-          </a-menu>
-          <a-button type="primary" class="button-error" style="margin: 0 10px;"> 批量导入 <a-icon type="down" /> </a-button>
-        </a-dropdown>
+        <a-button type="primary" class="button-info" v-if="$hasPermissions('B_productInfo_batchImport')" style="margin: 0 10px;"> 新增产品导入</a-button>
+        <a-button type="primary" class="button-info" v-if="$hasPermissions('B_offlineProduct_import')" style="margin: 0 10px;"> 下线产品导入</a-button>
         <span style="margin-left: 8px" v-if="$hasPermissions('B_productInfo_batchAudit') || $hasPermissions('B_productInfo_batchLaunch') || $hasPermissions('B_productInfo_batchDownline')">
           <template v-if="rowSelectionInfo && rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
         </span>