|
@@ -72,9 +72,9 @@
|
|
<!-- 操作按钮 -->
|
|
<!-- 操作按钮 -->
|
|
<div class="table-operator">
|
|
<div class="table-operator">
|
|
<a-button id="productInfoList-add" type="primary" @click="handleEdit()">新增产品</a-button>
|
|
<a-button id="productInfoList-add" type="primary" @click="handleEdit()">新增产品</a-button>
|
|
- <a-button id="productInfoList-import" :disabled="!hasSelected" :loading="loading" @click="handleBatchAudit" style="margin: 0 15px;">批量审核</a-button>
|
|
|
|
- <a-button id="productInfoList-import" :disabled="!hasSelected" :loading="loading" @click="handleBatchLaunch" style="margin: 0 15px;">批量上线</a-button>
|
|
|
|
- <a-button id="productInfoList-import" :disabled="!hasSelected" :loading="loading" @click="handleBatchDownline" style="margin: 0 15px;">批量下线</a-button>
|
|
|
|
|
|
+ <a-button id="productInfoList-import" :loading="loading" @click="handleBatchAudit" style="margin: 0 15px;">批量审核</a-button>
|
|
|
|
+ <a-button id="productInfoList-import" :loading="loading" @click="handleBatchLaunch" style="margin: 0 15px;">批量上线</a-button>
|
|
|
|
+ <a-button id="productInfoList-import" :loading="loading" @click="handleBatchDownline" style="margin: 0 15px;">批量下线</a-button>
|
|
<span style="margin-left: 8px">
|
|
<span style="margin-left: 8px">
|
|
<template v-if="hasSelected">{{ `已选 ${selectedRowKeys.length} 项` }}</template>
|
|
<template v-if="hasSelected">{{ `已选 ${selectedRowKeys.length} 项` }}</template>
|
|
</span>
|
|
</span>
|
|
@@ -254,6 +254,10 @@ export default {
|
|
},
|
|
},
|
|
// 批量审核
|
|
// 批量审核
|
|
handleBatchAudit () {
|
|
handleBatchAudit () {
|
|
|
|
+ if (this.selectedRowKeys.length < 1) {
|
|
|
|
+ this.$message.warning('请在列表勾选后再进行批量操作!')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
const _this = this
|
|
const _this = this
|
|
this.$confirm({
|
|
this.$confirm({
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -271,6 +275,10 @@ export default {
|
|
},
|
|
},
|
|
// 批量上线
|
|
// 批量上线
|
|
handleBatchLaunch () {
|
|
handleBatchLaunch () {
|
|
|
|
+ if (this.selectedRowKeys.length < 1) {
|
|
|
|
+ this.$message.warning('请在列表勾选后再进行批量操作!')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
const _this = this
|
|
const _this = this
|
|
this.$confirm({
|
|
this.$confirm({
|
|
title: '提示',
|
|
title: '提示',
|