Commit f61a439c authored by Asjoker's avatar Asjoker

各个页面的分页正常化

parent 1512995e
......@@ -98,7 +98,7 @@
<el-table-column type="selection" width="55" align="center" />
<el-table-column :show-overflow-tooltip="true" label="日志编号" width="100" align="center" prop="businessId">
<template slot-scope="scope">
{{ scope.row.businessId || '-' }}
{{ scope.row.operId || '-' }}
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" label="系统模块" align="center" prop="systemMode">
......@@ -158,8 +158,8 @@
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pu"
:limit.sync="queryParams.ps"
:page.sync="queryParams.page"
:limit.sync="queryParams.rows"
@pagination="getList"
/>
......@@ -234,10 +234,10 @@ export default {
form: {},
// 查询参数
queryParams: {
pu: 1,
ps: 10,
page: 1,
rows: 10,
status: 1,
// operTime: '',
operTime: '',
title: undefined,
operName: undefined
// businessType: undefined
......@@ -289,7 +289,7 @@ export default {
},
/** 查询按钮操作 */
handleQuery() {
this.queryParams.pu = 1
this.queryParams.page = 1
this.getList()
},
/** 重置按钮操作 */
......@@ -338,8 +338,8 @@ export default {
handleExport() {
const queryParams = Object.assign({}, this.queryParams)
// queryParams.operTime = queryParams.operTime ? this.$parseDate(new Date(queryParams.operTime), 'YYYYMM') : ''
delete queryParams.pu
delete queryParams.ps
delete queryParams.page
delete queryParams.rows
queryParams.ids = this.ids.join(',') || null
exportErrLog(queryParams).then(response => {
this.download(response.msg)
......
......@@ -40,19 +40,16 @@
<!-- </el-form-item>-->
<el-form-item label="登录时间">
<el-date-picker
v-model="dateRange"
v-model="queryParams.loginTime"
type="month"
size="small"
style="width: 240px"
type="daterange"
range-separator="-"
value-format="yyyy-MM-dd"
start-placeholder="开始日期"
end-placeholder="结束日期"
style="width: 170px"
value-format="yyyy-MM"
placeholder="请选择月份"
/>
</el-form-item>
<el-form-item>
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
<el-button type="primary" size="small" @click="handleQuery">查询</el-button>
</el-form-item>
<div style="float: right">
<el-form-item>
......@@ -173,8 +170,8 @@ export default {
rows: 10,
ipaddr: undefined,
username: undefined,
status: undefined
// loginTime: ''
status: undefined,
loginTime: ''
}
}
},
......
......@@ -158,8 +158,8 @@
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pu"
:limit.sync="queryParams.ps"
:page.sync="queryParams.page"
:limit.sync="queryParams.rows"
@pagination="getList"
/>
......@@ -235,8 +235,8 @@ export default {
// operTime: '',
// 查询参数
queryParams: {
pu: 1,
ps: 10,
page: 1,
rows: 10,
status: 0,
operTime: '',
title: undefined,
......@@ -290,7 +290,7 @@ export default {
},
/** 查询按钮操作 */
handleQuery() {
this.queryParams.pu = 1
this.queryParams.page = 1
this.getList()
},
/** 重置按钮操作 */
......
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