|
|
|
@ -60,6 +60,7 @@
@@ -60,6 +60,7 @@
|
|
|
|
|
class="table" |
|
|
|
|
v-loading="loading" |
|
|
|
|
:data="list" |
|
|
|
|
ref="tableRef" |
|
|
|
|
:highlight-current-row="true" |
|
|
|
|
:page-total="total" |
|
|
|
|
:current-page="queryParams.pageNo" |
|
|
|
@ -157,7 +158,7 @@ const total = ref(0) // 列表的总页数
@@ -157,7 +158,7 @@ const total = ref(0) // 列表的总页数
|
|
|
|
|
const list = ref<CustomerVO[]>([]) // 列表的数 |
|
|
|
|
const queryParams = reactive({ |
|
|
|
|
pageNo: 1, |
|
|
|
|
pageSize: 10, |
|
|
|
|
pageSize: undefined, |
|
|
|
|
name: undefined, |
|
|
|
|
contact: undefined, |
|
|
|
|
phone: undefined, |
|
|
|
@ -166,7 +167,11 @@ const queryParams = reactive({
@@ -166,7 +167,11 @@ const queryParams = reactive({
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
/** 查询列表 */ |
|
|
|
|
const tableRef = ref<any>(null) |
|
|
|
|
const getList = async () => { |
|
|
|
|
if (!queryParams.pageSize) { |
|
|
|
|
queryParams.pageSize = tableRef.value.getSize() |
|
|
|
|
} |
|
|
|
|
loading.value = true |
|
|
|
|
const res = await getCustomerList(queryParams) |
|
|
|
|
|
|
|
|
@ -238,7 +243,6 @@ const handleStatusChange = async (row: CustomerVO) => {
@@ -238,7 +243,6 @@ const handleStatusChange = async (row: CustomerVO) => {
|
|
|
|
|
id: row.id, |
|
|
|
|
enabled: row.enabled, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await getList() |
|
|
|
|
} catch { |
|
|
|
|