biz9-logic 4.8.19 → 4.8.21
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.
- package/biz9_config +1 -1
- package/index.js +10 -7
- package/package.json +1 -1
- package/test.js +3 -3
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -129,7 +129,7 @@ class Page_Logic {
|
|
|
129
129
|
DataItem.get_new(DataType.PAGE,0),
|
|
130
130
|
DataItem.get_new(DataType.PAGE,0),
|
|
131
131
|
Field_Logic.get_test(title,option));
|
|
132
|
-
if(option.
|
|
132
|
+
if(option.get_section){
|
|
133
133
|
page.items = Sub_Item_Logic.get_test_section_list(page,page,option);
|
|
134
134
|
}
|
|
135
135
|
return page;
|
|
@@ -424,7 +424,7 @@ class Field_Logic {
|
|
|
424
424
|
if(!option.get_item){
|
|
425
425
|
option.get_item=false;
|
|
426
426
|
}
|
|
427
|
-
|
|
427
|
+
if(!option.item_count){
|
|
428
428
|
option.item_count=9;
|
|
429
429
|
}
|
|
430
430
|
if(!option.category_count){
|
|
@@ -437,6 +437,12 @@ class Field_Logic {
|
|
|
437
437
|
if(!option.page_count){
|
|
438
438
|
option.page_count=9;
|
|
439
439
|
}
|
|
440
|
+
if(!option.section_count){
|
|
441
|
+
option.section_count=9;
|
|
442
|
+
}
|
|
443
|
+
if(!option.get_section){
|
|
444
|
+
option.get_section=false;
|
|
445
|
+
}
|
|
440
446
|
}
|
|
441
447
|
if(option.data_type==DataType.PRODUCT){
|
|
442
448
|
if(!option.product_count){
|
|
@@ -966,9 +972,6 @@ class Team_Url {
|
|
|
966
972
|
};
|
|
967
973
|
}
|
|
968
974
|
class Url{
|
|
969
|
-
static get_search = (data_type,filter,sort_by,page_current,page_size) => {
|
|
970
|
-
return {data_type:data_type,filter:filter,sort_by:sort_by,page_current:page_current,page_size:page_size};
|
|
971
|
-
};
|
|
972
975
|
static copy_item = (biz9_config,data_type,id) => {
|
|
973
976
|
let action_url = "main/crud/copy/"+data_type + "/" + id;
|
|
974
977
|
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
|
|
@@ -1018,8 +1021,8 @@ class Url{
|
|
|
1018
1021
|
};
|
|
1019
1022
|
}
|
|
1020
1023
|
class Obj {
|
|
1021
|
-
static
|
|
1022
|
-
return
|
|
1024
|
+
static get_search = (biz9_config,data_type,filter,sort_by,page_current,page_size) => {
|
|
1025
|
+
return {data_type:data_type,filter:filter,sort_by:sort_by,page_current:page_current,page_size:page_size};
|
|
1023
1026
|
}
|
|
1024
1027
|
};
|
|
1025
1028
|
class Category_Logic {
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -59,7 +59,7 @@ describe("connect", () => {
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
/* --SEARCH--START */
|
|
62
|
-
console.log(Url.get_search(DataType.BLOG_POST,{title:-1},{cool:-1},1,10));
|
|
62
|
+
//console.log(Url.get_search(DataType.BLOG_POST,{title:-1},{cool:-1},1,10));
|
|
63
63
|
/* --SEARCH--END */
|
|
64
64
|
|
|
65
65
|
/* --CATEGORY--START */
|
|
@@ -147,8 +147,8 @@ describe("connect", () => {
|
|
|
147
147
|
/* --PAGE--START */
|
|
148
148
|
//let page = Page_Logic.get_test()
|
|
149
149
|
//let page = Page_Logic.get_test("Page "+Number.get_id())
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
let page = Page_Logic.get_test("Page "+Number.get_id(),{get_value:true,value_count:5,get_section:false})
|
|
151
|
+
Log.w("page",page);
|
|
152
152
|
//let page_list = Page_Logic.get_test_list({page_count:10});
|
|
153
153
|
//Log.w("Page_list",page_list);
|
|
154
154
|
/*
|