ionic-vhframeworks 8.7.6 → 8.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14673,12 +14673,18 @@ export declare class VhQueryAutoWeb {
|
|
|
14673
14673
|
+ colname = 'services': value tìm trong trường 'name'
|
|
14674
14674
|
+ colname = 'newss': value tìm trong trường 'title' và 'content'
|
|
14675
14675
|
* @example
|
|
14676
|
-
* this.vhQueryAutoWeb.searchList('products', 'Điện Thoại', {price: {$gte: 10000}}, {price:1}
|
|
14676
|
+
* this.vhQueryAutoWeb.searchList('products', 'Điện Thoại', {price: {$gte: 10000}}, {price:1})
|
|
14677
14677
|
.then(response=>{
|
|
14678
14678
|
console.log('response', response);
|
|
14679
14679
|
if(response.vcode === 0){
|
|
14680
|
-
|
|
14681
|
-
|
|
14680
|
+
let data_searched = response.data;
|
|
14681
|
+
let limit = 20;
|
|
14682
|
+
let page = 1;
|
|
14683
|
+
let data_page = new Array(); //mảng dữ liệu phân theo page
|
|
14684
|
+
for(let i=0; i<data_searched.length;i++){
|
|
14685
|
+
if((i>=limit*(page-1))&&(i<limit*page)) data_page.push(data_searched[i]);
|
|
14686
|
+
}
|
|
14687
|
+
let totalpages = Math.ceil(data_searched.length/limit); // tổng số page
|
|
14682
14688
|
}
|
|
14683
14689
|
},(error:any)=>{
|
|
14684
14690
|
console.log('error', error)
|
|
@@ -14691,7 +14697,7 @@ export declare class VhQueryAutoWeb {
|
|
|
14691
14697
|
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
14692
14698
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
14693
14699
|
*/
|
|
14694
|
-
searchList(colname: string, value: any, query
|
|
14700
|
+
searchList(colname: string, value: any, query?: any, sort?: object): Promise<unknown>;
|
|
14695
14701
|
/**
|
|
14696
14702
|
* @example
|
|
14697
14703
|
* this.vhQueryAutoWeb.searchList_PatternBlock_Thumbnail('mùa xuân',["name", "describe"], 20, 1)
|
|
@@ -18809,7 +18815,7 @@ export declare class VhBuildAutoWeb {
|
|
|
18809
18815
|
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
18810
18816
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
18811
18817
|
*/
|
|
18812
|
-
searchList(colname: string, value: string, query
|
|
18818
|
+
searchList(colname: string, value: string, query?: object, sort?: object): Promise<unknown>;
|
|
18813
18819
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhBuildAutoWeb, never>;
|
|
18814
18820
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhBuildAutoWeb>;
|
|
18815
18821
|
}
|
|
@@ -20061,7 +20067,7 @@ export declare class VhDesignAutoWeb {
|
|
|
20061
20067
|
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
20062
20068
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
20063
20069
|
*/
|
|
20064
|
-
searchList(colname: string, value: string, query
|
|
20070
|
+
searchList(colname: string, value: string, query?: object, sort?: object): Promise<unknown>;
|
|
20065
20071
|
/**
|
|
20066
20072
|
* @example:
|
|
20067
20073
|
* this.vhDesignAutoWeb.isCloneBlockOrObject(block_or_object)
|