| @@ -8,8 +8,8 @@ | |||
| <div class="search_info"> | |||
| <div class="search_block"> | |||
| <i class="icon"></i> | |||
| <input type="text" class="ipt" v-model="queryParams.name" placeholder="搜索"> | |||
| <!-- @input="getSearchList"--> | |||
| <input type="text" class="ipt" v-model="queryParams.name" placeholder="搜索" @input="getSearchList"> | |||
| <!-- --> | |||
| </div> | |||
| <div class="total">共{{listLength}}个资产</div> | |||
| </div> | |||
| @@ -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<this.applicationListSecond.length;j++){ | |||
| if(this.applicationListSecond[j].name.indexOf(this.queryParams.name)>-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) | |||
| @@ -28,7 +28,7 @@ | |||
| </van-popup> | |||
| </div> | |||
| <div class="exit_btn"> | |||
| <div class="exit_btn" @click="logout"> | |||
| <i class="icon"></i> | |||
| </div> | |||
| </div> | |||
| @@ -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"}) | |||
| }) | |||
| } | |||
| }, | |||
| } | |||
| </script> | |||
| @@ -15,9 +15,9 @@ | |||
| <div class="index_info"> | |||
| <div class="title"></div> | |||
| <div class="nav_list"> | |||
| <router-link :to="{name:'sunVillageInfoListFinance'}" class="nav_item n_1">财务公开榜</router-link> | |||
| <router-link :to="{name:'sunVillageInfoListTourists'}" class="nav_item n_2">零工公开榜</router-link> | |||
| <router-link :to="{name:'sunVillageInfoListIssues'}" class="nav_item n_3">重大事项</router-link> | |||
| <router-link :to="{name:'sunVillageInfoListFinance',query:{type:'code'}}" class="nav_item n_1">财务公开榜</router-link> | |||
| <router-link :to="{name:'sunVillageInfoListTourists',query:{type:'code'}}" class="nav_item n_2">零工公开榜</router-link> | |||
| <router-link :to="{name:'sunVillageInfoListIssues',query:{type:'code'}}" class="nav_item n_3">重大事项</router-link> | |||
| <!-- <router-link :to="{name:'sunVillageInfoFixedAssets'}" class="nav_item n_4">固定资产</router-link>--> | |||
| <!-- <router-link :to="{name:'sunVillageInfoInformation'}" class="nav_item n_5">合同登记</router-link>--> | |||
| </div> | |||
| @@ -8,7 +8,7 @@ | |||
| <div class="search_info"> | |||
| <div class="search_block"> | |||
| <i class="icon"></i> | |||
| <input type="text" class="ipt" placeholder="搜索"> | |||
| <input type="text" class="ipt" placeholder="搜索" v-model="queryParams.name" @input="getSearchList"> | |||
| </div> | |||
| <div class="total">共{{listLength}}个合同</div> | |||
| </div> | |||
| @@ -115,20 +115,9 @@ | |||
| }, 1000); | |||
| }, | |||
| getSearchList(){ | |||
| this.loading = true; | |||
| if(this.applicationListSecond.length>0&&this.queryParams.name!=""){ | |||
| let newList = [] | |||
| for(let j = 0 ;j<this.applicationListSecond.length;j++){ | |||
| if(this.applicationListSecond[j].name.indexOf(this.queryParams.name)>-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) { | |||
| // 此时可以自行将文件上传至服务器 | |||
| @@ -3,7 +3,7 @@ | |||
| <div class="header_main"> | |||
| 财务公开榜 | |||
| <div class="return_btn" @click="onClickLeft"></div> | |||
| <div class="add_btn" @click="goAdd"></div> | |||
| <div class="add_btn" v-show="showBtn" @click="goAdd"></div> | |||
| </div> | |||
| <div class="record_main"> | |||
| <div class="record_det"> | |||
| @@ -39,15 +39,15 @@ | |||
| </div> | |||
| <div class="operation"> | |||
| <!-- delete 删除 edit编辑 view查看 --> | |||
| <div class="opera_btn edit" @click="goEdit(item.id)"> | |||
| <div class="opera_btn edit" @click="goEdit(item.id)" v-show="showBtn"> | |||
| <i class="icon "></i> | |||
| </div> | |||
| <div class="opera_btn delete" @click="goRemove(item.id)"> | |||
| <div class="opera_btn delete" @click="goRemove(item.id)" v-show="showBtn"> | |||
| <i class="icon"></i> | |||
| </div> | |||
| <!-- <div class="opera_btn view"> | |||
| <div class="opera_btn view" @click="goDetail(item.id)" v-show="!showBtn"> | |||
| <i class="icon "></i> | |||
| </div> --> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| @@ -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(){ | |||
| @@ -3,7 +3,7 @@ | |||
| <div class="header_main"> | |||
| 重大事项 | |||
| <div class="return_btn" @click="onClickLeft"></div> | |||
| <div class="add_btn" @click="goAdd"></div> | |||
| <div class="add_btn" @click="goAdd" v-show="showBtn"></div> | |||
| </div> | |||
| <div class="record_main"> | |||
| <div class="record_det"> | |||
| @@ -39,15 +39,15 @@ | |||
| </div> | |||
| <div class="operation"> | |||
| <!-- delete 删除 edit编辑 view查看 --> | |||
| <div class="opera_btn edit" @click="goEdit(item.id)"> | |||
| <div class="opera_btn edit" @click="goEdit(item.id)" v-show="showBtn"> | |||
| <i class="icon "></i> | |||
| </div> | |||
| <div class="opera_btn delete" @click="goRemove(item.id)"> | |||
| <div class="opera_btn delete" @click="goRemove(item.id)" v-show="showBtn"> | |||
| <i class="icon"></i> | |||
| </div> | |||
| <!-- <div class="opera_btn view"> | |||
| <i class="icon "></i> | |||
| </div> --> | |||
| <div class="opera_btn view" @click="goDetail(item.id)" v-show="!showBtn"> | |||
| <i class="icon "></i> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </van-list> | |||
| @@ -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(){ | |||
| @@ -3,7 +3,7 @@ | |||
| <div class="header_main"> | |||
| 零工公开榜 | |||
| <div class="return_btn" @click="onClickLeft"></div> | |||
| <div class="add_btn" @click="goAdd"></div> | |||
| <div class="add_btn" @click="goAdd" v-show="showBtn"></div> | |||
| </div> | |||
| <div class="record_main"> | |||
| <div class="record_det"> | |||
| @@ -39,15 +39,15 @@ | |||
| </div> | |||
| <div class="operation"> | |||
| <!-- delete 删除 edit编辑 view查看 --> | |||
| <div class="opera_btn edit" @click="goEdit(item.id)"> | |||
| <div class="opera_btn edit" @click="goEdit(item.id)" v-show="showBtn"> | |||
| <i class="icon "></i> | |||
| </div> | |||
| <div class="opera_btn delete" @click="goRemove(item.id)"> | |||
| <div class="opera_btn delete" @click="goRemove(item.id)" v-show="showBtn"> | |||
| <i class="icon"></i> | |||
| </div> | |||
| <!-- <div class="opera_btn view"> | |||
| <i class="icon "></i> | |||
| </div> --> | |||
| <div class="opera_btn view" @click="goDetail(item.id)" v-show="!showBtn"> | |||
| <i class="icon "></i> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </van-list> | |||
| @@ -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(){ | |||