商家端代码优化

This commit is contained in:
mabo
2021-08-10 10:17:48 +08:00
parent 1f02b45600
commit 604a918fd1
19 changed files with 149 additions and 187 deletions

View File

@@ -1,15 +1,13 @@
<template>
<div class="logistics">
<Card>
<Table
:loading="loading"
border
:columns="columns"
:data="data"
ref="table"
sortable="custom"
@on-sort-change="changeSort"
></Table>
<Table
:loading="loading"
border
:columns="columns"
:data="data"
ref="table"
></Table>
</Card>
</div>
</template>
@@ -110,15 +108,6 @@
init() {
this.getDataList();
},
// 变更排序
changeSort(e) {
this.searchForm.sort = e.key;
this.searchForm.order = e.order;
if (e.order === "normal") {
this.searchForm.order = "";
}
this.getDataList();
},
// 获取数据
getDataList() {
this.loading = true;