|
@@ -51,6 +51,10 @@
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data="loadData"
|
|
:data="loadData"
|
|
bordered>
|
|
bordered>
|
|
|
|
+ <!-- 地区 -->
|
|
|
|
+ <template slot="addressInfo" slot-scope="text, record">
|
|
|
|
+ <span v-if="record.dealer">{{ record.dealer.provinceName }}{{ record.dealer.cityName }}</span>
|
|
|
|
+ </template>
|
|
<!--是否启用 -->
|
|
<!--是否启用 -->
|
|
<template slot="isEnabled" slot-scope="text, record">
|
|
<template slot="isEnabled" slot-scope="text, record">
|
|
<a-switch checked-children="是" un-checked-children="否" :checked="record.isChecked" @change="handleChecked(record)" />
|
|
<a-switch checked-children="是" un-checked-children="否" :checked="record.isChecked" @change="handleChecked(record)" />
|
|
@@ -94,8 +98,8 @@ export default {
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
|
|
{ title: '设备编码', dataIndex: 'deviceCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '设备编码', dataIndex: 'deviceCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '设备名称', dataIndex: 'deviceName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '设备名称', dataIndex: 'deviceName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
- { title: '绑定客户', dataIndex: 'dealer.dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
- { title: '所属省份', dataIndex: 'dealer.provinceName', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '地区', scopedSlots: { customRender: 'addressInfo' }, align: 'center' },
|
|
|
|
+ { title: '经销商', dataIndex: 'dealer.dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '是否启用', scopedSlots: { customRender: 'isEnabled' }, align: 'center' },
|
|
{ title: '是否启用', scopedSlots: { customRender: 'isEnabled' }, align: 'center' },
|
|
{ title: '添加时间', dataIndex: 'createDate', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '添加时间', dataIndex: 'createDate', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, align: 'center' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, align: 'center' }
|
|
@@ -116,6 +120,9 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ mounted () {
|
|
|
|
+ this.getCityList()
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
// 获取所属省份
|
|
// 获取所属省份
|
|
getCityList () {
|
|
getCityList () {
|