From 137910cf4fc73a3a2787a3a02718f1e1f637c368 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期五, 14 六月 2024 16:01:17 +0800 Subject: [PATCH] bug修改 --- src/views/components/laws.vue | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/components/laws.vue b/src/views/components/laws.vue index d5a811d..07ac494 100644 --- a/src/views/components/laws.vue +++ b/src/views/components/laws.vue @@ -3,7 +3,7 @@ <div class="main-content"> <div class="filters"> <el-form :model="state.querys"> - <el-form-item label="法律法规名称" style="width: 500px;margin-bottom: 0;margin-right: 20px"> + <el-form-item label="法律法规名称:" style="width: 500px;margin-bottom: 0;margin-right: 20px"> <el-input v-model="state.querys.title" /> </el-form-item> </el-form> @@ -13,7 +13,7 @@ <div class="list"> <div v-for="item in state.dataList" @click="openDetails('法律法规',item.id)"> <div> - <div><img src="src/assets/images/article.png"></div> + <div><img :src="articlePng"></div> <div>{{item.title}}</div> </div> <span> @@ -23,9 +23,10 @@ </div> <div class="pag-container" v-if="state.total&&state.total>0"> <el-pagination - :page-sizes="[10,15,20,25]" + :page-sizes="[10,15,20]" layout="total, sizes, prev, pager, next, jumper" :total="state.total" + :current-page="state.querys.pageNum" @size-change="handleSizeChange" @current-change="handleCurrentChange" /> @@ -40,6 +41,7 @@ import useUserStore from '@/store/modules/user' import { Search, Refresh } from '@element-plus/icons-vue' import {ElMessage} from "element-plus"; +import articlePng from "@/assets/images/article.png" const emit = defineEmits(['openDetails']) const route = useRoute() const router = useRouter() @@ -80,6 +82,7 @@ } const handleSizeChange = (val) => { + state.querys.pageNum = 1; state.querys.pageSize = val getData() } @@ -88,6 +91,7 @@ getData() } const search = () => { + state.querys.pageNum = 1; getData() } const reset = () => { @@ -114,11 +118,14 @@ width: 100%; display: flex; justify-content: center; - margin-top: 170px; + margin-top: 150px; + :deep(.el-form .el-form-item__label) { + font-size: 16px; + } .main-content{ width: 1200px; - margin: 20px 0; + margin: 15px 0; background: #fff; border-radius: 4px; box-shadow: 1px 1px 3px rgba(0,0,0,.04); @@ -155,7 +162,7 @@ .list{ padding: 15px 0; - max-height: calc(100vh - 402px); + height: calc(100vh - 332px); overflow-y: auto; &>div{ @@ -208,7 +215,7 @@ .pag-container{ width: 100%; - height: 80px; + height: 60px; display: flex; align-items: center; justify-content: right; -- Gitblit v1.9.2