|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <a-card size="small" :bordered="false" class="productInfoList-wrap searchBottomSpace">
|
|
|
+ <a-card size="small" :bordered="false" class="productInfoList-wrap searchBoxNormal">
|
|
|
<!-- 搜索条件 -->
|
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
|
<a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
@@ -91,41 +91,43 @@
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
<!-- 操作按钮 -->
|
|
|
<div class="table-operator">
|
|
|
- <a-button id="productInfoList-add" type="primary" v-if="$hasPermissions('B_productInfo_add')" class="button-error" @click="handleEdit()">新增</a-button>
|
|
|
+ <a-button type="primary" v-if="$hasPermissions('B_productInfo_add')" @click="handleEdit()">新增</a-button>
|
|
|
+ <a-button type="primary" class="button-info" @click="handleMenuClick({key:'1'})" v-if="$hasPermissions('B_productInfo_batchImport')"> 新增产品导入</a-button>
|
|
|
+ <a-button type="primary" class="button-info" @click="handleMenuClick({key:'2'})" v-if="$hasPermissions('B_offlineProduct_import')"> 下线产品导入</a-button>
|
|
|
+
|
|
|
<a-button
|
|
|
id="productInfoList-batchAudit"
|
|
|
type="primary"
|
|
|
v-if="$hasPermissions('B_productInfo_batchAudit')"
|
|
|
- class="button-warning"
|
|
|
+ ghost
|
|
|
+ class="button-info"
|
|
|
:loading="loadingAudit"
|
|
|
@click="handleBatchAudit"
|
|
|
- style="margin: 0 10px;">批量审核</a-button>
|
|
|
+ style="margin: 0 5px;">批量审核</a-button>
|
|
|
<a-button
|
|
|
id="productInfoList-batchLaunch"
|
|
|
type="primary"
|
|
|
v-if="$hasPermissions('B_productInfo_batchLaunch')"
|
|
|
- class="button-primary"
|
|
|
+ ghost
|
|
|
:loading="loadingLaunch"
|
|
|
@click="handleBatchLaunch"
|
|
|
- style="margin: 0 10px;">批量上线</a-button>
|
|
|
+ style="margin: 0 5px;">批量上线</a-button>
|
|
|
<a-button
|
|
|
id="productInfoList-batchDownline"
|
|
|
type="primary"
|
|
|
v-if="$hasPermissions('B_productInfo_batchDownline')"
|
|
|
- class="button-grey"
|
|
|
+ ghost
|
|
|
:loading="loadingDownline"
|
|
|
@click="handleBatchDownline"
|
|
|
- style="margin: 0 10px;">批量下线</a-button>
|
|
|
- <a-button type="primary" class="button-error" @click="handleMenuClick({key:'1'})" v-if="$hasPermissions('B_productInfo_batchImport')" style="margin: 0 10px;"> 新增产品导入</a-button>
|
|
|
- <a-button type="primary" class="button-info" @click="handleMenuClick({key:'2'})" 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>
|
|
|
+ style="margin: 0 5px;">批量下线</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>
|
|
|
</div>
|
|
|
<s-table
|
|
|
class="sTable fixPagination"
|
|
|
ref="table"
|
|
|
- :style="{ height: tableHeight+84.5+'px' }"
|
|
|
+ :style="{ height: tableHeight+70+'px' }"
|
|
|
size="small"
|
|
|
:row-selection=" showSelect?{ columnWidth: 40 }:null"
|
|
|
:rowKey="(record) => record.id"
|
|
@@ -613,7 +615,7 @@ export default {
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 265
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 240
|
|
|
}
|
|
|
},
|
|
|
watch: {
|