Commit 2b64067a by cwq0219

create

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