| 
					
				 | 
			
			
				@@ -13,6 +13,7 @@ import { add } from 'ionicons/icons'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { documentText, chatbubbles, person, calendar, newspaper, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    medkit,clipboard, podium, videocam, people } from 'ionicons/icons'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { CloudObject, CloudQuery } from '../lib/ncloud'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { IonRefresher, IonRefresherContent } from '@ionic/angular/standalone'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 addIcons({ documentText, chatbubbles, person, calendar, newspaper, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    medkit,clipboard, podium, videocam, people 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  }); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -24,12 +25,19 @@ addIcons({ documentText, chatbubbles, person, calendar, newspaper, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   imports: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent, IonTabButton, IonButton, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     IonIcon,IonSearchbar,IonLabel,IonItem,IonList,CommonModule,IonCard,IonCardHeader,IonCardTitle,IonCardSubtitle, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    IonCardContent, IonThumbnail, IonFab,IonFabButton,IonIcon 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    IonCardContent, IonThumbnail, IonFab,IonFabButton,IonIcon,IonRefresher,IonRefresherContent 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export class Tab1Page { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  handleRefresh(event:any) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // Any calls to load data go here 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.loadDoctorList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      event.target.complete(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 2000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   constructor( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private router: Router, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      private modalCtrl: ModalController, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -41,7 +49,7 @@ export class Tab1Page { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     addIcons({ add }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   navigateToPage() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    this.router.navigate(['/atest']); // 替换为目标页面的路由 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this.router.navigate(['../agent-create']); // 替换为目标页面的路由 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    * Go to the ai page 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -129,4 +137,9 @@ export class Tab1Page { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     openChatPanelModal(this.modalCtrl,options) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  deleteAgent(agent:CloudObject){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    console.log("删除了",agent); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    agent.destroy(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this.loadDoctorList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |