|
@@ -21,8 +21,8 @@
|
|
|
:rowKey="(record) => record.id"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
- :scroll="{ x: 1200 }"
|
|
|
:showPagination="false"
|
|
|
+ :defaultLoadData="false"
|
|
|
bordered>
|
|
|
<!-- 收货人 -->
|
|
|
<template slot="consignee" slot-scope="text, record">
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
{ title: '收货人', scopedSlots: { customRender: 'consignee' }, align: 'center', ellipsis: true },
|
|
|
{ title: '手机号码', dataIndex: 'consigneeTel', width: 230, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '收货地址', dataIndex: 'address', width: 400, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: 200, align: 'center', fixed: 'right' },
|
|
|
+ // { title: '操作', scopedSlots: { customRender: 'action' }, width: 200, align: 'center', fixed: 'right' },
|
|
|
{ title: '选择', scopedSlots: { customRender: 'choose' }, width: 80, align: 'center', fixed: 'right' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
@@ -201,6 +201,11 @@ export default {
|
|
|
isShow (newValue, oldValue) {
|
|
|
if (!newValue) {
|
|
|
this.$emit('close')
|
|
|
+ } else {
|
|
|
+ const _this = this
|
|
|
+ setTimeout(() => {
|
|
|
+ _this.$refs.table.refresh(true)
|
|
|
+ }, 300)
|
|
|
}
|
|
|
}
|
|
|
}
|