|
@@ -40,6 +40,10 @@
|
|
|
:data="loadData"
|
|
|
:scroll="{ y: tableHeight }"
|
|
|
bordered>
|
|
|
+ <!-- 授权账号 -->
|
|
|
+ <template slot="loginName" slot-scope="text, record">
|
|
|
+ <span>{{ record.user.name || '' }} - {{ record.user.loginName || '' }}</span>
|
|
|
+ </template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button
|
|
@@ -77,10 +81,10 @@ export default {
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
|
- { title: '中心店名称', dataIndex: 'orgName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '中心店授权账号', dataIndex: 'allChildsName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '已绑配送店', dataIndex: 'allChildName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, align: 'center' }
|
|
|
+ { title: '中心店名称', dataIndex: 'user.name', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '中心店授权账号', dataIndex: 'user.loginName', scopedSlots: { customRender: 'loginName' }, width: 200, align: 'center' },
|
|
|
+ { title: '已绑配送店', dataIndex: 'userAllOrgName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: 150, align: 'center' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
@@ -112,7 +116,7 @@ export default {
|
|
|
},
|
|
|
// 新增/编辑
|
|
|
handleEdit (row) {
|
|
|
- this.itemSn = row ? row.orgSn : null
|
|
|
+ this.itemSn = row ? row.userSn : null
|
|
|
this.nowData = row || null
|
|
|
this.openModal = true
|
|
|
},
|
|
@@ -130,7 +134,7 @@ export default {
|
|
|
centered: true,
|
|
|
onOk () {
|
|
|
userOrgDel({
|
|
|
- sn: row.orgSn
|
|
|
+ sn: row.userSn
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|