Commit 2b64067a by cwq0219

create

1 parent 0a4cd5f2
<template> <template>
<div id="app" class="div-style"> <div id="app" class="outsider">
<router-view></router-view> <router-view></router-view>
</div> </div>
</template> </template>
...@@ -12,9 +12,9 @@ export default { ...@@ -12,9 +12,9 @@ export default {
</script> </script>
<style scoped> <style scoped>
.div-style{ .outsider{
background-color: #FFF; background-color: #FFF;
padding: 20px 0px 40px 0px; padding: 20px 0px 40px 0px;
margin: 20px 20px; /* margin: 20px 20px; */
} }
</style> </style>
...@@ -8,13 +8,15 @@ ...@@ -8,13 +8,15 @@
<hr style="height:1px;border:0px;background-color:#e7eaec"> <hr style="height:1px;border:0px;background-color:#e7eaec">
<div class="default-style"> <div class="default-style">
<gl-button class="create-button" size="small" @click="createRole">创建</gl-button> <gl-button class="create-button" size="small" @click="createRole">创建</gl-button>
<gl-table :table="roleData"></gl-table> <div class="dataTables-scroll">
<gl-dropdown> <gl-table :table="roleData"></gl-table>
<span class="gl-dropdown"> </div>
{{page}} <div>
<i class="gl-icon-arrow-down gl-icon--right"></i> <label>显示
</span> <gl-dropdown>{{showNumber}}</gl-dropdown>条
</gl-dropdown> </label>
<label>,&nbsp;共&nbsp;{{total}}&nbsp;条</label>
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -25,9 +27,11 @@ export default { ...@@ -25,9 +27,11 @@ export default {
data () { data () {
return { return {
roleName: '', roleName: '',
page: '10', showNumber: 10,
pageList: '', showNumberList: [],
total: 0,
roleData: { roleData: {
border: true,
data: [{ data: [{
id: '1032', id: '1032',
name: '好车主', name: '好车主',
...@@ -87,8 +91,8 @@ export default { ...@@ -87,8 +91,8 @@ export default {
} }
} }
}, },
created () { mounted () {
console.log(this.roleData.data.length) this.total = this.roleData.data.length
}, },
methods: { methods: {
findRoleName () { findRoleName () {
...@@ -117,6 +121,9 @@ export default { ...@@ -117,6 +121,9 @@ export default {
.role-header { .role-header {
margin-bottom: 20px; margin-bottom: 20px;
} }
.dataTables-scroll{
margin-bottom: 8px;
}
.role-input { .role-input {
width: 250px; width: 250px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!