|
@@ -46,21 +46,21 @@
|
|
|
:scroll="{ y: tableHeight }"
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
- <template slot="showWarehouse" slot-scope="text, record">
|
|
|
- <div v-if="record.warehouseList &&record.warehouseList.length>0 ">
|
|
|
- <a-tooltip placement="bottom" class="warehouseBox">
|
|
|
- <template slot="title">
|
|
|
- <span v-for="con in record.warehouseList" :key="con.id">
|
|
|
- {{con.name}}
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- <span v-for="con in record.warehouseList" :key="con.id">
|
|
|
- {{con.name}}
|
|
|
- </span>
|
|
|
- </a-tooltip>
|
|
|
- </div>
|
|
|
- <div v-else>--</div>
|
|
|
- </template>
|
|
|
+ <template slot="showWarehouse" slot-scope="text, record">
|
|
|
+ <div v-if="record.warehouseList&&record.warehouseList.length>0 ">
|
|
|
+ <a-tooltip placement="bottom" class="warehouseBox">
|
|
|
+ <template slot="title">
|
|
|
+ <span v-for="con in record.warehouseList" :key="con.id">
|
|
|
+ {{ con.name }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ <span v-for="con in record.warehouseList" :key="con.id">
|
|
|
+ {{ con.name }}
|
|
|
+ </span>
|
|
|
+ </a-tooltip>
|
|
|
+ </div>
|
|
|
+ <div v-else>--</div>
|
|
|
+ </template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button size="small" type="link" class="button-warning" v-if="record.allDealerFlag!=1 || record.allProductFlag!=1" @click="handleSetCategory(record)">设置管辖范围</a-button>
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
{ title: '人员类型', dataIndex: 'bizUserTypeDictValue', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '管辖经销商', dataIndex: 'allDealerFlagDictValue', width: '18%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '管辖品类', dataIndex: 'allProductFlagDictValue', width: '18%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '管辖仓库',scopedSlots: { customRender: 'showWarehouse' }, width: '22%', align: 'center'},
|
|
|
+ { title: '管辖仓库', scopedSlots: { customRender: 'showWarehouse' }, width: '22%', align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '20%', align: 'center' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|