Commit 22f7af6e authored by 沈翠玲's avatar 沈翠玲

增加分页

parent 87c04aed
......@@ -23,7 +23,13 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
......@@ -120,12 +126,7 @@ export default {
/** 查询工作单元列表 */
getList() {
this.loading = true;
console.log('this.userId', this.userId)
this.queryParams = {
pageNum: 1,
pageSize: 10,
userId: this.userId
}
this.queryParams.userId = this.userId
listWorkunituser(this.queryParams).then(response => {
this.workstationworkerList = response.rows;
this.total = response.total;
......
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