From a63320669c8400c27ffc7a12c00c83fbe50ef4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Wed, 17 Aug 2022 17:50:01 +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/fixedAssets.vue | 24 ++++++--------------- src/views/sunVillage_info/index.vue | 9 ++++++-- src/views/sunVillage_info/index_code.vue | 6 +++--- src/views/sunVillage_info/information.vue | 19 ++++------------ src/views/sunVillage_info/list_finance.vue | 16 ++++++++------ src/views/sunVillage_info/list_issues.vue | 18 ++++++++++------ src/views/sunVillage_info/list_tourists.vue | 18 ++++++++++------ 7 files changed, 53 insertions(+), 57 deletions(-) diff --git a/src/views/sunVillage_info/fixedAssets.vue b/src/views/sunVillage_info/fixedAssets.vue index 566cc681..7fc585af 100644 --- a/src/views/sunVillage_info/fixedAssets.vue +++ b/src/views/sunVillage_info/fixedAssets.vue @@ -8,8 +8,8 @@
- - + +
共{{listLength}}个资产
@@ -87,7 +87,8 @@ }, uploadFiles1:[], projectId:'', - projectIndex:'' + projectIndex:'', + showBtn:true, }; }, created() { @@ -193,20 +194,9 @@ }); }, getSearchList(){ - this.loading = true; - if(this.applicationListSecond.length>0&&this.queryParams.name!=""){ - let newList = [] - for(let j = 0 ;j-1){ - newList.push(this.applicationListSecond[j]); - } - } - this.applicationList = newList - } - if(this.queryParams.name==""){ - this.applicationList = this.applicationListSecond; - } - this.loading = false; + this.applicationList = []; + this.queryParams.pageNum = 1; + this.getList(); }, deleteFile1(file){ console.log(file) diff --git a/src/views/sunVillage_info/index.vue b/src/views/sunVillage_info/index.vue index a2b8a225..f99b464c 100644 --- a/src/views/sunVillage_info/index.vue +++ b/src/views/sunVillage_info/index.vue @@ -28,7 +28,7 @@ -
+
@@ -53,6 +53,7 @@ import {changeDept} from "../../api/onlineHome/done"; import {bookListByDeptId} from "../../api/homestead"; import Cookies from "js-cookie"; + import {logout} from "../../api/login"; export default { name: "certificateList", data() { @@ -153,7 +154,11 @@ onCancelBook(e){ this.bookVisbile = false }, - + logout(){ + logout().then(res => { + this.$router.push({path:"/sunVillage_info/login"}) + }) + } }, } diff --git a/src/views/sunVillage_info/index_code.vue b/src/views/sunVillage_info/index_code.vue index bfb09f25..794bc7d1 100644 --- a/src/views/sunVillage_info/index_code.vue +++ b/src/views/sunVillage_info/index_code.vue @@ -15,9 +15,9 @@
diff --git a/src/views/sunVillage_info/information.vue b/src/views/sunVillage_info/information.vue index d4f45599..8ed10fa9 100644 --- a/src/views/sunVillage_info/information.vue +++ b/src/views/sunVillage_info/information.vue @@ -8,7 +8,7 @@
- +
共{{listLength}}个合同
@@ -115,20 +115,9 @@ }, 1000); }, getSearchList(){ - this.loading = true; - if(this.applicationListSecond.length>0&&this.queryParams.name!=""){ - let newList = [] - for(let j = 0 ;j-1){ - newList.push(this.applicationListSecond[j]); - } - } - this.applicationList = newList - } - if(this.queryParams.name==""){ - this.applicationList = this.applicationListSecond; - } - this.loading = false; + this.applicationList = []; + this.queryParams.pageNum = 1; + this.getList(); }, afterRead(file) { // 此时可以自行将文件上传至服务器 diff --git a/src/views/sunVillage_info/list_finance.vue b/src/views/sunVillage_info/list_finance.vue index 09ac7ca5..52bfd5fd 100644 --- a/src/views/sunVillage_info/list_finance.vue +++ b/src/views/sunVillage_info/list_finance.vue @@ -3,7 +3,7 @@
财务公开榜
-
+
@@ -39,15 +39,15 @@
-
+
-
+
- +
@@ -87,7 +87,8 @@ }, uploadFiles1:[], projectId:'', - projectIndex:'' + projectIndex:'', + showBtn:true, }; }, created() { @@ -103,6 +104,9 @@ console.log(Cookies.get('bookId')) this.queryParams.bookId = Cookies.get('bookId'); this.queryParams.deptId = Cookies.get('deptId'); + if (this.$route.query.type == 'code'){ + this.showBtn = false; + } }, methods: { getList(){ diff --git a/src/views/sunVillage_info/list_issues.vue b/src/views/sunVillage_info/list_issues.vue index f67b4ecd..c423b3c7 100644 --- a/src/views/sunVillage_info/list_issues.vue +++ b/src/views/sunVillage_info/list_issues.vue @@ -3,7 +3,7 @@
重大事项
-
+
@@ -39,15 +39,15 @@
-
+
-
+
- +
+ +
@@ -86,7 +86,8 @@ }, uploadFiles1:[], projectId:'', - projectIndex:'' + projectIndex:'', + showBtn:true, }; }, created() { @@ -102,6 +103,9 @@ console.log(Cookies.get('bookId')) this.queryParams.bookId = Cookies.get('bookId'); this.queryParams.deptId = Cookies.get('deptId'); + if (this.$route.query.type == 'code'){ + this.showBtn = false; + } }, methods: { getList(){ diff --git a/src/views/sunVillage_info/list_tourists.vue b/src/views/sunVillage_info/list_tourists.vue index e1eb27f2..48cdf2c9 100644 --- a/src/views/sunVillage_info/list_tourists.vue +++ b/src/views/sunVillage_info/list_tourists.vue @@ -3,7 +3,7 @@
零工公开榜
-
+
@@ -39,15 +39,15 @@
-
+
-
+
- +
+ +
@@ -86,7 +86,8 @@ }, uploadFiles1:[], projectId:'', - projectIndex:'' + projectIndex:'', + showBtn:true, }; }, created() { @@ -102,6 +103,9 @@ console.log(Cookies.get('bookId')) this.queryParams.bookId = Cookies.get('bookId'); this.queryParams.deptId = Cookies.get('deptId'); + if (this.$route.query.type == 'code'){ + this.showBtn = false; + } }, methods: { getList(){