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

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

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