Commit ae42d7ac authored by “yiyousong”'s avatar “yiyousong”

fix: 修复日志列表翻页错误

parent 3654ec95
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
v-model="BegindAndEndTime" v-model="BegindAndEndTime"
> >
</a-range-picker> </a-range-picker>
<a-button type="primary" class="addclass" @click="handleSearch">搜索</a-button> <a-button type="primary" class="addclass" @click="handleSearch"
>搜索</a-button
>
<a-button @click="resetSearch">重置</a-button> <a-button @click="resetSearch">重置</a-button>
</a-space> </a-space>
</div> </div>
...@@ -127,17 +129,19 @@ export default { ...@@ -127,17 +129,19 @@ export default {
// 获取日志列表 // 获取日志列表
async getOperLogList() { async getOperLogList() {
this.tableLoading = true; this.tableLoading = true;
let query = {
logDateStart: this.BegindAndEndTime[0],
logDateEnd: this.BegindAndEndTime[1],
};
if (this.searchName != "") {
query.content = `%${this.searchName}%`;
}
let res = await getOperLogList({ let res = await getOperLogList({
pageInfo: { pageInfo: {
prePageResult: this.size, prePageResult: this.size,
currPage: this.size, currPage: this.current,
},
query: {
logDateStart: this.BegindAndEndTime[0],
logDateEnd: this.BegindAndEndTime[1],
// siteId: this.siteId,
content: `%${this.searchName}%`,
}, },
query,
}); });
this.tableLoading = false; this.tableLoading = false;
this.dict = res.data.dict; this.dict = res.data.dict;
......
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