|
@@ -43,8 +43,8 @@
|
|
|
<!-- 操作按钮 -->
|
|
|
<div class="table-operator">
|
|
|
<a-button type="primary" class="button-error" @click="chooseTModal">选择品类</a-button>
|
|
|
- <span v-if="!showEmpty && $route.params.dealerLevel != 'SPECIAL'">
|
|
|
- <a-button type="primary" class="button-info" @click="handleEdit()">批量编辑</a-button>
|
|
|
+ <span v-if="!showEmpty">
|
|
|
+ <a-button type="primary" v-if="$route.params.dealerLevel != 'SPECIAL'" class="button-info" @click="handleEdit()">批量编辑</a-button>
|
|
|
<a-button type="primary" ghost class="button-error" @click="handleDel()">批量删除</a-button>
|
|
|
</span>
|
|
|
</div>
|
|
@@ -69,7 +69,7 @@
|
|
|
</a-card>
|
|
|
</a-spin>
|
|
|
<!-- 选择产品分类 -->
|
|
|
- <chooseTypeModal ref="chooseType" :openModal="openTypeModal" @close="openTypeModal=false" @ok="resetSearchForm" />
|
|
|
+ <chooseTypeModal ref="chooseType" :openModal="openTypeModal" @close="openTypeModal=false" @ok="getData" />
|
|
|
<!-- 修改价格等级 -->
|
|
|
<editPriceLevelModal :priceLevelVal="itemPriceLevel" :openModal="openPriceLevelModal" @close="closePriceLevelModal" @ok="handlePriceLevelOk" />
|
|
|
</div>
|
|
@@ -138,10 +138,11 @@ export default {
|
|
|
}
|
|
|
const arr = [
|
|
|
{ title: '', field: '', key: 'acheck', width: 60, type: 'checkbox', align: 'center' },
|
|
|
- { title: '品牌', field: 'productBrandName', key: 'a', align: 'center', width: 160, operationColumn: false, renderBodyCell: ({ row, column }) => { return row[column.field] || '--' } },
|
|
|
+ { title: '品牌', field: 'productBrandName', key: 'a', align: 'center', width: 160, operationColumn: false, renderBodyCell: ({ row, column }) => { return row[column.field] || '全品类' } },
|
|
|
{ title: '一级分类', field: 'productTypeName1', key: 'b', width: 160, align: 'center', operationColumn: false, renderBodyCell: ({ row, column }) => { return row[column.field] || '--' } },
|
|
|
{ title: '二级分类', field: 'productTypeName2', key: 'c', width: 160, align: 'center', operationColumn: false, renderBodyCell: ({ row, column }) => { return row[column.field] || '--' } },
|
|
|
{ title: '三级分类', field: 'productTypeName3', key: 'd', width: 160, align: 'center', operationColumn: false, renderBodyCell: ({ row, column }) => { return row[column.field] || '--' } },
|
|
|
+ { title: '价格级别', field: 'priceLevelDictValue', key: 'd', width: 160, align: 'center', operationColumn: false, renderBodyCell: ({ row, column }) => { return row[column.field] || '--' } },
|
|
|
{ title: '操作', field: 'action', width: 100, key: 'e', align: 'center', fixed: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return actionFormat(row, row[column.field], h) } }
|
|
|
]
|
|
|
return arr
|
|
@@ -178,6 +179,7 @@ export default {
|
|
|
},
|
|
|
// 选择品类
|
|
|
chooseTModal () {
|
|
|
+ this.selectedRowKeys = []
|
|
|
this.openTypeModal = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.chooseType.getDisabledList()
|