通知公告分页调整
This commit is contained in:
parent
af8d6673d5
commit
096a85db6d
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div style="background: #fff;height: calc(100vh - 225px);overflow: auto;margin-top:10px;">
|
||||
<div style="background: #fff;height: calc(100vh - 225px);overflow-y: auto;overflow-x: hidden;margin-top:10px;">
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||
|
@ -83,7 +83,8 @@
|
|||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload(1);
|
||||
total.value = 1;
|
||||
handlePageChange(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -94,21 +95,21 @@
|
|||
queryParam.value.rwbh = rwbh;
|
||||
queryParam.value.xqxn = xqxn;
|
||||
queryParam.value.ggStatus='1';
|
||||
//刷新数据
|
||||
reload(1);
|
||||
total.value = 1;
|
||||
handlePageChange(1);
|
||||
}
|
||||
|
||||
//翻页
|
||||
function handlePageChange(page: number) {
|
||||
reload(page);
|
||||
pageNo.value = page;
|
||||
reload();
|
||||
}
|
||||
//进入就加载
|
||||
onMounted(() => {
|
||||
reload(1);
|
||||
});
|
||||
|
||||
function reload(arg){
|
||||
queryParam.pageNo = arg;
|
||||
function reload(){
|
||||
queryParam.value.pageNo = pageNo;
|
||||
queryParam.value.pageSize = pageSize;
|
||||
queryParam.value.rwbh = rwbh;
|
||||
queryParam.value.xqxn = xqxn;
|
||||
console.log(`🚀 ~ reload ~ queryParam:`, queryParam)
|
||||
defHttp.get({ url: '/zyGonggao/zyGonggao/list', params: queryParam.value }).then((res) => {
|
||||
console.log(res);
|
||||
|
@ -119,12 +120,17 @@
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
//进入就加载
|
||||
onMounted(() => {
|
||||
searchQuery();
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
padding: 0;
|
||||
width:99%;
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div style="background: #fff;height: calc(100vh - 225px);overflow: auto;margin-top:10px;">
|
||||
<div style="background: #fff;height: calc(100vh - 225px);overflow-y: auto;overflow-x: hidden;margin-top:10px;">
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container" style="border-bottom: 2px solid #f0f0f0;">
|
||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol" style="padding: 20px 10px 0px 10px;">
|
||||
|
@ -195,16 +195,15 @@
|
|||
*/
|
||||
function handleSuccess() {
|
||||
total.value = 1;
|
||||
pageNo.value = 0;
|
||||
reload()
|
||||
handlePageChange(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
pageNo.value = 0;
|
||||
reload();
|
||||
total.value = 1;
|
||||
handlePageChange(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -246,6 +245,8 @@
|
|||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
padding: 0;
|
||||
width:99%;
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
|
|
Loading…
Reference in New Issue