Skip to content

Commit

Permalink
style(layout): 页面样式修改
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Sep 11, 2020
1 parent 98c6d23 commit 5641a17
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/components/CrudTable/CrudTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export default class CrudTable extends Vue {
@Prop({ type: Boolean, default: false }) fullHeight!: boolean;
// 高度minus
@Prop({ type: Number, default: 205 }) maxHeightMinus!: number;
@Prop({ type: Number, default: 235 }) maxHeightMinus!: number;
// 高度minus
@Prop(Number) height!: number;
Expand Down
10 changes: 5 additions & 5 deletions src/views/layout/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="main-container">
<!-- TAB标签页 -->
<!-- <TagsView /> -->
<!-- <Breadcrumb></Breadcrumb> -->
<Breadcrumb></Breadcrumb>
<!-- 包含二级路由,可以继续嵌套子页面 -->
<AppMain />
</div>
Expand All @@ -26,7 +26,7 @@
<script>
import { AppMain, Header } from '@/views/layout/components/index.ts';
// import Breadcrumb from '@/components/Breadcrumb/index.vue';
import Breadcrumb from '@/components/Breadcrumb/index.vue';
export default {
name: 'Layout',
Expand All @@ -37,7 +37,7 @@ export default {
AppMain,
// TagsView,
Header,
// Breadcrumb,
Breadcrumb,
},
computed: {
sidebar() {
Expand Down Expand Up @@ -67,8 +67,8 @@ export default {
// 主体区域
.main-container {
background: #f0f3f7;
padding: 10px 50px;
height: calc(100% - 100px);
padding: 0 50px 10px;
height: calc(100% - 80px);
}
}
</style>
2 changes: 1 addition & 1 deletion src/views/layout/components/AppMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ export default {
<style lang="scss" scoped>
.app-main {
// padding-top: 16px;
height:100%;
height:calc(100% - 40px);
}
</style>
10 changes: 4 additions & 6 deletions src/views/system/Users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
<div class="page-container">
<el-row :gutter="15"
class="full-height">
<el-col :span="5"
<el-col :span="4"
class="full-height">
<div class="full-height"
style="overflow:auto">
<el-input placeholder="请输入查询内容"
v-model="filterText"
size="small"
prefix-icon="el-icon-search"> </el-input>
<!-- 部门树 -->
<el-tree v-loading="loading"
Expand Down Expand Up @@ -41,7 +42,7 @@
</el-tree>
</div>
</el-col>
<el-col :span="19">
<el-col :span="20">
<CrudTable ref="table"
table-name="users"
:tableTitle="tableTitle"
Expand Down Expand Up @@ -153,10 +154,7 @@ export default {
// 请求部门tree
funcGetDeptTree: (resolve) => {
// 此处暂时写死 admin权限的账号可以看到全部部门
crud(
DML.TREE,
'dept',
).then((res) => {
crud(DML.TREE, 'dept').then((res) => {
resolve(res.data);
});
},
Expand Down
10 changes: 4 additions & 6 deletions src/views/system/users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
<div class="page-container">
<el-row :gutter="15"
class="full-height">
<el-col :span="5"
<el-col :span="4"
class="full-height">
<div class="full-height"
style="overflow:auto">
<el-input placeholder="请输入查询内容"
v-model="filterText"
size="small"
prefix-icon="el-icon-search"> </el-input>
<!-- 部门树 -->
<el-tree v-loading="loading"
Expand Down Expand Up @@ -41,7 +42,7 @@
</el-tree>
</div>
</el-col>
<el-col :span="19">
<el-col :span="20">
<CrudTable ref="table"
table-name="users"
:tableTitle="tableTitle"
Expand Down Expand Up @@ -153,10 +154,7 @@ export default {
// 请求部门tree
funcGetDeptTree: (resolve) => {
// 此处暂时写死 admin权限的账号可以看到全部部门
crud(
DML.TREE,
'dept',
).then((res) => {
crud(DML.TREE, 'dept').then((res) => {
resolve(res.data);
});
},
Expand Down

0 comments on commit 5641a17

Please sign in to comment.