mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
Improve search page
This commit is contained in:
@@ -39,15 +39,6 @@ export class SearchPage implements OnInit {
|
||||
|
||||
height: number = 411;
|
||||
width: number = 411;
|
||||
|
||||
data: CloudData[] = [
|
||||
{text: 'Docents', weight: 0.1, color: '#ffaaee'},
|
||||
{text: '1232', weight: 0.2, tooltip: 'display a tooltip'},
|
||||
{text: 'Dcuments', weight: 0.1, color: '#ffaaee'},
|
||||
{text: 'Cat', weight: 0.3, color: '#ffaaee'},
|
||||
{text: 'Dogs', weight: 0.1, tooltip: 'display a tooltip'},
|
||||
{text: 'cars', weight: 0.2, color: '#ffaaee'},
|
||||
];
|
||||
|
||||
// See http://idangero.us/swiper/api/ for valid options.
|
||||
slideOpts = {
|
||||
@@ -66,6 +57,10 @@ export class SearchPage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
this.wordCloud()
|
||||
}
|
||||
|
||||
wordCloud(){
|
||||
this.search.mostSeachWord("10").subscribe(res=>{
|
||||
|
||||
let list = []
|
||||
@@ -89,7 +84,6 @@ export class SearchPage implements OnInit {
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
close(){
|
||||
@@ -241,6 +235,13 @@ export class SearchPage implements OnInit {
|
||||
*/
|
||||
clearSearchInput(){
|
||||
this.searchSubject = ""
|
||||
|
||||
this.searchCategories = [];
|
||||
this.searchDocuments = [];
|
||||
this.showDocuments = false;
|
||||
|
||||
this.wordCloud();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user