From 2ed6b03491d885e86ae61570663c7fecc5a4b2e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com>
Date: Thu, 25 Aug 2022 15:31:21 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/sunVillage_info/index.vue | 2 +-
src/views/sunVillage_info/list_register.vue | 73 ++++++++++++++++-----
2 files changed, 57 insertions(+), 18 deletions(-)
diff --git a/src/views/sunVillage_info/index.vue b/src/views/sunVillage_info/index.vue
index 260c29b4..5293ff36 100644
--- a/src/views/sunVillage_info/index.vue
+++ b/src/views/sunVillage_info/index.vue
@@ -174,7 +174,7 @@
},
logout(){
logout().then(res => {
- this.$router.push({path:"/sunVillage_info/login"})
+ this.$router.push({path:"/sunVillage_info/index_code",query:{bookId:Cookies.get('bookId'),deptId:Cookies.get('deptId')}})
})
},
selectChange(val){
diff --git a/src/views/sunVillage_info/list_register.vue b/src/views/sunVillage_info/list_register.vue
index 58c21b83..0bf6a415 100644
--- a/src/views/sunVillage_info/list_register.vue
+++ b/src/views/sunVillage_info/list_register.vue
@@ -5,18 +5,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
{{year == '' ? '全部': year}}{{year == '' ? '': '年'}}{{month}}{{month == '' ? '': '月'}}
+
共{{listLength}}条公告
+
+
+
全部
+
2022
+
2021
+
2020
+
+
+
{
_this.listLength = response.total;
response.rows.map(res=>{
_this.applicationList.push(res);
})
-
+ console.log(_this.applicationList.length)
if(_this.applicationList.length >= response.total){
_this.finished = true;
return;
@@ -120,7 +126,28 @@
});
},
tabClick(year){
- this.queryParams.year = year ;
+ this.year = year ;
+ if (year == ''){
+ this.queryParams.yearMonth = ''
+ this.month = ''
+ }else{
+ this.queryParams.yearMonth = year + '- 01'
+ this.month = '1'
+ }
+ this.finished = false;
+ this.queryParams.pageNum = 1;
+ this.applicationList = [];
+ this.getList();
+ },
+ tabClickMonth(month){
+ this.month = month ;
+ if (month < 10){
+ this.queryParams.yearMonth = this.year + '-0' + month
+ }else{
+ this.queryParams.yearMonth = this.year + '-' + month
+ }
+ this.finished = false;
+ this.queryParams.pageNum = 1;
this.applicationList = [];
this.getList();
},
@@ -285,9 +312,21 @@
}
}
}
+ .month_list{
+ .flex_block{
+ font-size: 30px;
+ color: #878787;
+ width: 12.5%;
+ padding-right: 0px;
+ &.current{
+ color: #4199fe;
+ font-weight: bold;
+ }
+ }
+ }
}
.list_main{
- padding:22px;
+ padding: 0 22px;
.item{
height: 140px;
border-radius: 30px;