Commit 87b119b0 by cwq0219

加分页

1 parent 65288b91
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class="default p-t15"> <div class="default p-t15">
<gl-button class="control-tabledata-button" size="small" @click="createRole">创建</gl-button> <gl-button class="control-tabledata-button" size="small" @click="createRole">创建</gl-button>
<div class="m-b8"> <div class="m-b8">
<gl-table :table="roleData"></gl-table> <gl-table :table="roleData" :pagination="pagination"></gl-table>
</div> </div>
<div> <div>
<label>显示 <label>显示
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<script> <script>
export default { export default {
name: 'role', name: 'role',
data() { data () {
return { return {
roleName: '', roleName: '',
showNumber: 10, showNumber: 10,
...@@ -120,6 +120,9 @@ export default { ...@@ -120,6 +120,9 @@ export default {
this.$alert(rows[index]) this.$alert(rows[index])
} }
}] }]
},
pagination: {
show: true
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!