Commit 2e706508 authored by 吴冠's avatar 吴冠

信息公告

parent cb2bc4eb
...@@ -35,7 +35,7 @@ html { ...@@ -35,7 +35,7 @@ html {
*, *,
*::before, *::before,
*::after { *::after {
box-sizing: border-box; box-sizing: none;
margin: 0; margin: 0;
} }
......
<template> <template>
<div> <div>
<div class="message"> <div class="flex">
<div class="sidebar"> <div class="sidebar">
<div class="sidebar-title">信息公告</div> <div class="sidebar-title">信息公告</div>
<el-col :span="12"> <el-col :span="12">
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
</el-menu> </el-menu>
</el-col> </el-col>
</div> </div>
<div class="message">
<ul> <ul>
<li <li
v-for="item in messageList" v-for="item in messageList"
...@@ -35,18 +36,6 @@ ...@@ -35,18 +36,6 @@
</div> </div>
<!-- </nuxt-link> --> <!-- </nuxt-link> -->
</li> </li>
<div class="pagination" v-show="isList">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:size="size"
:page-sizes="[10, 20, 30, 40]"
layout="total, prev, pager, next,sizes, jumper"
:total="total"
>
</el-pagination>
</div>
</ul> </ul>
<div class="content" v-show="!isList"> <div class="content" v-show="!isList">
<div> <div>
...@@ -73,6 +62,20 @@ ...@@ -73,6 +62,20 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 分页 -->
<div class="pagination" v-show="isList">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:size="size"
:page-sizes="[10, 20, 30, 40]"
layout="total, prev, pager, next,sizes, jumper"
:total="total"
>
</el-pagination>
</div>
</div>
</template> </template>
<script> <script>
import { import {
...@@ -215,16 +218,15 @@ export default { ...@@ -215,16 +218,15 @@ export default {
<style scoped> <style scoped>
.pagination { .pagination {
flex:0 ;
position: absolute; position: absolute;
bottom: 5%; margin-top: 20px;
left: 50%; left: 56%;
transform: translateX(-50%); transform: translateX(-50%);
} }
.message { .message {
border: 1px solid rgba(219, 219, 219, 1); border: 1px solid rgba(219, 219, 219, 1);
min-height: 6.98rem; min-height: 6.8rem;
position: absolute;
left:33%;
width: 9.2rem; width: 9.2rem;
} }
...@@ -246,9 +248,8 @@ export default { ...@@ -246,9 +248,8 @@ export default {
} }
.sidebar { .sidebar {
width: 2.4rem; width: 2.4rem;
margin-right: .3rem;
border: 1px solid rgba(219, 219, 219, 1); border: 1px solid rgba(219, 219, 219, 1);
position: absolute;
left: -30%
} }
.sidebar > .sidebar-title { .sidebar > .sidebar-title {
width: 2.4rem; width: 2.4rem;
...@@ -259,16 +260,17 @@ export default { ...@@ -259,16 +260,17 @@ export default {
font-size: 0.2rem; font-size: 0.2rem;
color: rgba(0, 0, 0, 1); color: rgba(0, 0, 0, 1);
font-weight: bold; font-weight: bold;
/* box-sizing: none; */
} }
.el-menu-vertical-demo { .el-menu-vertical-demo {
width: 2.4rem; width: 2.4rem;
/* box-sizing:none */
} }
.el-col-12 { .el-col-12 {
width: 100%; width: 100%;
} }
.content { .content {
width: 9.2rem; width: 9.2rem;
height: 100%;
} }
h1 { h1 {
display: flex; display: flex;
......
...@@ -286,7 +286,6 @@ import Cookies from 'js-cookie' ...@@ -286,7 +286,6 @@ import Cookies from 'js-cookie'
} }
.pagination{ .pagination{
position: absolute; position: absolute;
/* bottom: -2%; */
left: 50%; left: 50%;
transform:translateX(-50%); transform:translateX(-50%);
margin-top:20px margin-top:20px
......
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