Commit 19b1f9b6 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化日志列表

parent dab48e4a
......@@ -112,7 +112,10 @@ export default {
tableHeaders,
searchName: "",
tableLoading: false,
BegindAndEndTime: [],
BegindAndEndTime: [
// this.$moment().format("YYYY-MM-DD"),
// this.$moment().format("YYYY-MM-DD"),
],
tableSourceData: [],
pageSizeOptions: ["10", "30", "50", "100"],
current: 1,
......@@ -142,8 +145,8 @@ export default {
this.tableLoading = false;
this.dict = res.data.dict;
if (res.code === 1) {
let { result, total } = res.data;
this.tableSourceData = result;
let { data, total } = res.data;
this.tableSourceData = data;
this.total = total;
}
},
......@@ -162,7 +165,10 @@ export default {
},
resetSearch() {
this.current = 1;
this.BegindAndEndTime = [];
this.BegindAndEndTime = [
// this.$moment().format("YYYY-MM-DD"),
// this.$moment().format("YYYY-MM-DD"),
];
this.searchName = "";
this.getOperLogList();
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment