|
@@ -156,7 +156,7 @@ export default {
|
|
|
const _this = this
|
|
|
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 || '--' } },
|
|
|
+ { 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 || '--' } }
|
|
|
]
|
|
@@ -165,8 +165,8 @@ export default {
|
|
|
arr.splice(5, 0, { title: '当前所属区域', scopedSlots: { customRender: 'areas' }, width: '30%', align: 'center' })
|
|
|
arr.splice(6, 0, { title: '操作', scopedSlots: { customRender: 'action' }, width: '20%', align: 'center' })
|
|
|
} else {
|
|
|
- arr.splice(4, 0, { title: '所在区域', dataIndex: 'subareaName', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true })
|
|
|
- arr.splice(5, 0, { title: '所在分区', dataIndex: 'subareaAreaName', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true })
|
|
|
+ arr.splice(4, 0, { title: '所在区域', dataIndex: 'subareaNameSet', width: '20%', align: 'center', customRender: function (text) { return text&&text[0] || '--' }})
|
|
|
+ arr.splice(5, 0, { title: '所在分区', dataIndex: 'subareaNameSet', width: '20%', align: 'center', customRender: function (text) { return text&&text[1] || '--' }})
|
|
|
}
|
|
|
return arr
|
|
|
},
|
|
@@ -208,7 +208,10 @@ export default {
|
|
|
subareaAreaSn: undefined
|
|
|
}
|
|
|
}
|
|
|
- this.$refs.subarea.clearData()
|
|
|
+ if(this.pageType!='viewDealers'){
|
|
|
+ this.$refs.subarea.clearData()
|
|
|
+ }
|
|
|
+
|
|
|
this.$refs.table.refresh(true)
|
|
|
this.$refs.table.clearSelected()
|
|
|
},
|