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

pref:修改日志服务列表

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