|
@@ -65,7 +65,7 @@
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
<template slot="areas" slot-scope="text, record">
|
|
|
- <span v-if="record.subareaNameSet">{{ record.subareaNameSet[0] }}</span>
|
|
|
+ <span v-if="record.subareaArea">{{ record.subareaArea.subareaName }}>{{ record.subareaArea.subareaAreaName }}</span>
|
|
|
<span v-else>--</span>
|
|
|
</template>
|
|
|
<template slot="action" slot-scope="text, record">
|
|
@@ -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: '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] || '--' }})
|
|
|
+ arr.splice(4, 0, { title: '所在区域', dataIndex: 'subareaArea.subareaName', width: '20%', align: 'center', customRender: function (text) { return text&&text[0] || '--' }})
|
|
|
+ arr.splice(5, 0, { title: '所在分区', dataIndex: 'subareaArea.subareaAreaName', width: '20%', align: 'center', customRender: function (text) { return text&&text[1] || '--' }})
|
|
|
}
|
|
|
return arr
|
|
|
},
|
|
@@ -231,7 +231,7 @@ export default {
|
|
|
this.$emit('plAdd', dealerSnList)
|
|
|
},
|
|
|
handleAdd (row) {
|
|
|
- if (row.subareaNameSet && row.subareaNameSet.length) {
|
|
|
+ if (row.subareaArea) {
|
|
|
const _this = this
|
|
|
this.$confirm({
|
|
|
title: '提示',
|