|
@@ -101,13 +101,20 @@
|
|
|
:loading="loadingDownline"
|
|
|
@click="handleBatchDownline"
|
|
|
style="margin: 0 10px;">批量下线</a-button>
|
|
|
- <a-button
|
|
|
- id="productInfoList-batchImport"
|
|
|
+ <!-- <a-button
|
|
|
+
|
|
|
v-if="$hasPermissions('B_productInfo_batchImport')"
|
|
|
type="primary"
|
|
|
class="button-error"
|
|
|
@click="openGuideModal=true"
|
|
|
- style="margin: 0 10px;">批量导入</a-button>
|
|
|
+ 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">下线产品导入</a-menu-item>
|
|
|
+ </a-menu>
|
|
|
+ <a-button type="primary" class="button-error" style="margin: 0 10px;"> 批量导入 <a-icon type="down" /> </a-button>
|
|
|
+ </a-dropdown>
|
|
|
<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>
|
|
@@ -203,7 +210,7 @@
|
|
|
<!-- 产品下线 -->
|
|
|
<product-info-offline-modal v-drag :openModal="openOfflineModal" :offlineProductList="offlineProductList" @close="closeOfflineModal" @ok="$refs.table.refresh()" />
|
|
|
<!-- 导入产品 -->
|
|
|
- <importGuideModal :openModal="openGuideModal" @close="openGuideModal=false" @ok="hanldeOk" />
|
|
|
+ <importGuideModal :guideType="guideModalType" :openModal="openGuideModal" @close="openGuideModal=false" @ok="hanldeOk" />
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -286,7 +293,8 @@ export default {
|
|
|
openOfflineModal: false, // 下线 弹框
|
|
|
offlineProductList: [], // 下线 当前所选数据
|
|
|
pageFromInfo: null,
|
|
|
- rowSelectionInfo: null
|
|
|
+ rowSelectionInfo: null,
|
|
|
+ guideModalType: ''// 1 新增产品批量导入 2下线产品批量导入
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -296,6 +304,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 批量导入
|
|
|
+ handleMenuClick (e) {
|
|
|
+ this.guideModalType = e
|
|
|
+ this.openGuideModal = true
|
|
|
+ },
|
|
|
// 创建时间 change
|
|
|
dateChange (date) {
|
|
|
this.queryParam.updateBeginDate = date[0] || ''
|