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

perf: 优化日志列表

parent dab48e4a
...@@ -112,7 +112,10 @@ export default { ...@@ -112,7 +112,10 @@ export default {
tableHeaders, tableHeaders,
searchName: "", searchName: "",
tableLoading: false, tableLoading: false,
BegindAndEndTime: [], BegindAndEndTime: [
// this.$moment().format("YYYY-MM-DD"),
// this.$moment().format("YYYY-MM-DD"),
],
tableSourceData: [], tableSourceData: [],
pageSizeOptions: ["10", "30", "50", "100"], pageSizeOptions: ["10", "30", "50", "100"],
current: 1, current: 1,
...@@ -142,8 +145,8 @@ export default { ...@@ -142,8 +145,8 @@ export default {
this.tableLoading = false; this.tableLoading = false;
this.dict = res.data.dict; this.dict = res.data.dict;
if (res.code === 1) { if (res.code === 1) {
let { result, total } = res.data; let { data, total } = res.data;
this.tableSourceData = result; this.tableSourceData = data;
this.total = total; this.total = total;
} }
}, },
...@@ -162,7 +165,10 @@ export default { ...@@ -162,7 +165,10 @@ export default {
}, },
resetSearch() { resetSearch() {
this.current = 1; this.current = 1;
this.BegindAndEndTime = []; this.BegindAndEndTime = [
// this.$moment().format("YYYY-MM-DD"),
// this.$moment().format("YYYY-MM-DD"),
];
this.searchName = ""; this.searchName = "";
this.getOperLogList(); 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