wangfukang 3 weeks ago
parent
commit
c9d47d1cf9
  1. 17
      src/views/app/business/logiticsCompany/dictManage.vue

17
src/views/app/business/logiticsCompany/dictManage.vue

@ -17,7 +17,8 @@
</FormItem>
</Form>
</Row>
<Table :loading="loading" border :columns="columns" :data="data" :size="tableSize" ref="table"></Table>
<Table :loading="loading" border :columns="columns" :data="data" :size="tableSize" ref="table"
sortable="custom" @on-sort-change="changeSort"></Table>
<Row type="flex" justify="end" class="page">
<Page :current="searchForm.pageNum" :total="total" :page-size="searchForm.pageSize"
@on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
@ -102,6 +103,8 @@ export default {
pageNum: 1,
pageSize: 10,
keywords: "",
sort: "",
order: "",
},
editForm: {},
editDateRange: [],
@ -146,6 +149,7 @@ export default {
title: "秒杀价",
key: "seckillPrice",
width: 100,
sortable: "custom",
},
{
title: "库存",
@ -208,6 +212,17 @@ export default {
this.searchForm.pageNum = 1;
this.getDataList();
},
changeSort(e) {
if (e.order === "normal") {
this.searchForm.sort = "";
this.searchForm.order = "";
} else if (e.key === "seckillPrice") {
this.searchForm.sort = "seckillPrice";
this.searchForm.order = e.order;
}
this.searchForm.pageNum = 1;
this.getDataList();
},
getDataList() {
this.loading = true;
seckillProductList(this.searchForm).then((res) => {

Loading…
Cancel
Save