Commit 9e9169c4 authored by “yiyousong”'s avatar “yiyousong”

pref:修改日志服务列表

parent df61275a
......@@ -49,7 +49,7 @@
import common from "@/mixins/common";
import menu from "@/mixins/menu";
import { getOperLogList } from "@/api/logs";
import Storage from "@/utils/js/Storage";
export default {
mixins: [common, menu],
name: "PortalAdminVueService",
......@@ -106,6 +106,7 @@ export default {
},
];
return {
siteId: Storage.get(2, "siteId") ? Storage.get(2, "siteId") : "",
tableHeaders,
searchName: "",
tableLoading: false,
......@@ -127,8 +128,16 @@ export default {
async getOperLogList() {
this.tableLoading = true;
let res = await getOperLogList({
page: this.current,
size: this.size,
pageInfo: {
prePageResult: this.size,
currPage: this.size,
},
query: {
logDateStart: this.BegindAndEndTime[0],
logDateEnd: this.BegindAndEndTime[1],
siteId: this.siteId,
content: `%${this.searchName}%`,
},
});
this.tableLoading = false;
this.dict = res.data.dict;
......@@ -155,6 +164,8 @@ export default {
},
resetSearch() {
this.current = 1;
this.BegindAndEndTime = [];
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