table 加载
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
<Table
|
<Table
|
||||||
style="margin-top: 20px"
|
style="margin-top: 20px"
|
||||||
|
:loading="loading"
|
||||||
size="small"
|
size="small"
|
||||||
border
|
border
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
@@ -59,6 +59,7 @@ import { pageingData, export_col_to_excel, sortByKey } from "@/libs/tools";
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
PageSizeOpts: [10, 15, 20, 30],
|
PageSizeOpts: [10, 15, 20, 30],
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
strfilter: "",
|
strfilter: "",
|
||||||
@@ -311,10 +312,12 @@ export default {
|
|||||||
inv_std: this.filter.inv_std,
|
inv_std: this.filter.inv_std,
|
||||||
so_code: this.filter.so_code,
|
so_code: this.filter.so_code,
|
||||||
};
|
};
|
||||||
|
this.loading=true;
|
||||||
let resp = await getInventorymonth(_filert);
|
let resp = await getInventorymonth(_filert);
|
||||||
this.pageNo = 1;
|
this.pageNo = 1;
|
||||||
this.datas = sortByKey(resp.data.data, "cInvCode");
|
this.datas = sortByKey(resp.data.data, "cInvCode");
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
finally{this.loading=false;}
|
||||||
},
|
},
|
||||||
handlePagechange(page) {
|
handlePagechange(page) {
|
||||||
this.pageNo = page;
|
this.pageNo = page;
|
||||||
|
|||||||
Reference in New Issue
Block a user