| 
									
										
										
										
											2023-11-07 10:24:08 +08:00
										 |  |  |  | <template> | 
					
						
							|  |  |  |  |   <view class="content"> | 
					
						
							|  |  |  |  |     <u-list @scrolltolower="scrolltolower" v-if="list.length > 0"> | 
					
						
							|  |  |  |  |       <u-list-item v-for="(item, index) in list" :key="index"> | 
					
						
							|  |  |  |  |         <view style="display: flex;align-items: center;justify-content: space-between;"> | 
					
						
							|  |  |  |  |           <view> | 
					
						
							| 
									
										
										
										
											2024-08-27 15:04:44 +08:00
										 |  |  |  |             <u-image width="200rpx" height="200rpx" :src="$filePath + item.FILEPATH"></u-image> | 
					
						
							| 
									
										
										
										
											2023-11-07 10:24:08 +08:00
										 |  |  |  |           </view> | 
					
						
							|  |  |  |  |           <view class="ml-10" style="flex: 1;"> | 
					
						
							|  |  |  |  |             <view class="flex-between main-title"> | 
					
						
							|  |  |  |  |               <text>{{ item.CERTIFICATE }}</text> | 
					
						
							|  |  |  |  |             </view> | 
					
						
							|  |  |  |  |             <view class="flex-between mt-10 subtitle"> | 
					
						
							|  |  |  |  |               <text>证书编号:{{ item.SPECIAL_NUMBER }}</text> | 
					
						
							|  |  |  |  |             </view> | 
					
						
							|  |  |  |  |             <view class="flex-between mt-10 subtitle"> | 
					
						
							|  |  |  |  |               <text>复审时间:{{ item.REVIEW_TIME }}</text> | 
					
						
							|  |  |  |  |             </view> | 
					
						
							|  |  |  |  |             <view class="flex-between mt-10 subtitle"> | 
					
						
							|  |  |  |  |               <view></view> | 
					
						
							|  |  |  |  |               <view class="flex-between"> | 
					
						
							| 
									
										
										
										
											2024-09-30 09:40:54 +08:00
										 |  |  |  |                 <u-button type="primary" text="编辑" size="mini" | 
					
						
							|  |  |  |  |                           @click="fnEdit(item.SPECIAL_USER_ID)"></u-button> | 
					
						
							|  |  |  |  |                 <view class="ml-10"> | 
					
						
							|  |  |  |  |                   <u-button type="primary" text="查看" size="mini" | 
					
						
							|  |  |  |  |                             @click="fnView(item.SPECIAL_USER_ID)"></u-button> | 
					
						
							|  |  |  |  |                 </view> | 
					
						
							| 
									
										
										
										
											2023-11-07 10:24:08 +08:00
										 |  |  |  |               </view> | 
					
						
							|  |  |  |  |             </view> | 
					
						
							|  |  |  |  |           </view> | 
					
						
							|  |  |  |  |         </view> | 
					
						
							|  |  |  |  |       </u-list-item> | 
					
						
							|  |  |  |  |     </u-list> | 
					
						
							|  |  |  |  |     <empty v-else></empty> | 
					
						
							| 
									
										
										
										
											2024-09-30 09:40:54 +08:00
										 |  |  |  |     <fab-button @click="fnEdit"/> | 
					
						
							| 
									
										
										
										
											2023-11-07 10:24:08 +08:00
										 |  |  |  |   </view> | 
					
						
							|  |  |  |  | </template> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | <script> | 
					
						
							|  |  |  |  | import {getCertificateInformationList, getCertificateInformationView} from "../../api"; | 
					
						
							| 
									
										
										
										
											2024-09-30 09:40:54 +08:00
										 |  |  |  | import FabButton from '@/components/fab_button/index.vue' | 
					
						
							| 
									
										
										
										
											2023-11-07 10:24:08 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | export default { | 
					
						
							| 
									
										
										
										
											2024-09-30 09:40:54 +08:00
										 |  |  |  |   components: { | 
					
						
							|  |  |  |  |     FabButton, | 
					
						
							|  |  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2023-11-07 10:24:08 +08:00
										 |  |  |  |   data() { | 
					
						
							|  |  |  |  |     return { | 
					
						
							| 
									
										
										
										
											2024-09-30 09:40:54 +08:00
										 |  |  |  |       SPECIAL_USER_ID: '', | 
					
						
							| 
									
										
										
										
											2023-11-07 10:24:08 +08:00
										 |  |  |  |       info: {}, | 
					
						
							|  |  |  |  |       pageSize: 10, | 
					
						
							|  |  |  |  |       currentPage: 1, | 
					
						
							|  |  |  |  |       totalPage: 0, | 
					
						
							|  |  |  |  |       list: [] | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  |   }, | 
					
						
							|  |  |  |  |   /*onLoad(query) { | 
					
						
							|  |  |  |  |     this.SPECIAL_USER_ID = query.SPECIAL_USER_ID | 
					
						
							|  |  |  |  |     this.fnGetData() | 
					
						
							|  |  |  |  |   },*/ | 
					
						
							|  |  |  |  |   onShow() { | 
					
						
							|  |  |  |  |     this.resetList() | 
					
						
							|  |  |  |  |   }, | 
					
						
							|  |  |  |  |   methods: { | 
					
						
							|  |  |  |  |     async getData() { | 
					
						
							|  |  |  |  |       let resData = await getCertificateInformationList({ | 
					
						
							|  |  |  |  |         showCount: this.pageSize, | 
					
						
							|  |  |  |  |         currentPage: this.currentPage, | 
					
						
							|  |  |  |  |       }); | 
					
						
							|  |  |  |  |       this.list = [...this.list, ...resData.varList]; | 
					
						
							|  |  |  |  |       this.totalPage = resData.page.totalPage; | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |     resetList() { | 
					
						
							|  |  |  |  |       this.pageSize = 10 | 
					
						
							|  |  |  |  |       this.currentPage = 1 | 
					
						
							|  |  |  |  |       this.list = [] | 
					
						
							|  |  |  |  |       this.getData() | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |     scrolltolower() { | 
					
						
							|  |  |  |  |       this.currentPage++; | 
					
						
							|  |  |  |  |       if (this.totalPage >= this.currentPage) this.getData(); | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |     fnView(SPECIAL_USER_ID) { | 
					
						
							|  |  |  |  |       uni.$u.route({ | 
					
						
							|  |  |  |  |         url: '/pages/certificate_information/view', | 
					
						
							| 
									
										
										
										
											2024-09-30 09:40:54 +08:00
										 |  |  |  |         params: { | 
					
						
							| 
									
										
										
										
											2023-11-07 10:24:08 +08:00
										 |  |  |  |           SPECIAL_USER_ID | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |       }) | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |     fnEdit(SPECIAL_USER_ID) { | 
					
						
							|  |  |  |  |       uni.$u.route({ | 
					
						
							|  |  |  |  |         url: '/pages/certificate_information/add', | 
					
						
							| 
									
										
										
										
											2024-09-30 09:40:54 +08:00
										 |  |  |  |         params: { | 
					
						
							| 
									
										
										
										
											2023-11-07 10:24:08 +08:00
										 |  |  |  |           SPECIAL_USER_ID | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |       }) | 
					
						
							|  |  |  |  |     }, | 
					
						
							|  |  |  |  |   }, | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | </script> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | <style scoped> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | </style> |