|
@@ -65,7 +65,11 @@
|
|
|
:columns="columns"
|
|
|
:data-source="dealerList"
|
|
|
@change="handlePage"
|
|
|
- ></a-table>
|
|
|
+ >
|
|
|
+ <template slot="addressInfo" slot-scope="text, record">
|
|
|
+ {{ record.provinceName }}{{ '-'+ record.cityName }}{{ '-'+ record.districtName }}
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
</a-spin>
|
|
|
</template>
|
|
|
|
|
@@ -114,14 +118,6 @@ export default {
|
|
|
pageFlag: false,
|
|
|
chooseInfo: [],
|
|
|
selectedRowKeys: [],
|
|
|
- columns: [
|
|
|
- { title: '经销商名称', dataIndex: 'dealerName', width: '30%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '商户别名', dataIndex: 'dealerAlias', align: 'left', width: '30%', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '商户类型', dataIndex: 'dealerTypeDictValue', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '商户级别', dataIndex: 'dealerLevelDictValue', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '所在区域', dataIndex: 'subareaArea.subareaName', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '所在分区', dataIndex: 'subareaArea.subareaAreaName', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
- ],
|
|
|
dealerList: [],
|
|
|
tableHeight: 0,
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
@@ -131,6 +127,20 @@ export default {
|
|
|
computed: {
|
|
|
selectCount () {
|
|
|
return this.selectedRowKeys && this.selectedRowKeys.length
|
|
|
+ },
|
|
|
+ columns () {
|
|
|
+ const arr = [
|
|
|
+ { title: '经销商名称', dataIndex: 'dealerName', width: '30%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '商户别名', dataIndex: 'dealerAlias', align: 'left', width: '30%', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '商户类型', dataIndex: 'dealerTypeDictValue', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '商户级别', dataIndex: 'dealerLevelDictValue', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '所在区域', dataIndex: 'subareaArea.subareaName', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '所在分区', dataIndex: 'subareaArea.subareaAreaName', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
+ ]
|
|
|
+ if (this.pageType === 'dealerPromotion') {
|
|
|
+ arr.unshift({ title: '地区', scopedSlots: { customRender: 'addressInfo' }, width: '30%', align: 'center', ellipsis: true })
|
|
|
+ }
|
|
|
+ return arr
|
|
|
}
|
|
|
},
|
|
|
methods: {
|