biz9-logic 4.8.22 → 4.8.24
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 +9 -2
- package/package.json +1 -1
- package/test.js +3 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -1360,11 +1360,18 @@ class Sub_Item_Logic {
|
|
|
1360
1360
|
let new_list = [];
|
|
1361
1361
|
for(let a=0;a<option.section_count;a++){
|
|
1362
1362
|
let item_title ="Section " + String(parseInt(a+1));
|
|
1363
|
-
|
|
1363
|
+
let item = Sub_Item_Logic.get_test(item_title,parent_item,top_item,option);
|
|
1364
|
+
let new_sub_list = [];
|
|
1365
|
+
for(let b=0;b<option.section_count;b++){
|
|
1366
|
+
let sub_item_title ="Section " + String(parseInt(b+1));
|
|
1367
|
+
let sub_item = Sub_Item_Logic.get_test(sub_item_title,item,top_item,option);
|
|
1368
|
+
new_sub_list.push(sub_item);
|
|
1369
|
+
}
|
|
1370
|
+
item = Sub_Item_Logic.bind_parent_child_list(item,new_sub_list);
|
|
1371
|
+
new_list.push(item);
|
|
1364
1372
|
}
|
|
1365
1373
|
return new_list;
|
|
1366
1374
|
}
|
|
1367
|
-
|
|
1368
1375
|
static bind_parent_child_list(item,item_list){
|
|
1369
1376
|
for(let a=0;a<item_list.length;a++){
|
|
1370
1377
|
item[Str.get_title_url(item_list[a].title)] = item_list[a];
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -147,8 +147,10 @@ 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
|
-
let page = Page_Logic.get_test("Page "+Number.get_id(),{get_value:true,value_count:5,get_section:true})
|
|
150
|
+
let page = Page_Logic.get_test("Page "+Number.get_id(),{get_value:true,value_count:5,get_section:true,section_count:2})
|
|
151
151
|
Log.w("page",page);
|
|
152
|
+
Log.w("page_section_1",page.section_1);
|
|
153
|
+
Log.w("page_section_1_section_1",page.section_1.section_1);
|
|
152
154
|
//let page_list = Page_Logic.get_test_list({page_count:10});
|
|
153
155
|
//Log.w("Page_list",page_list);
|
|
154
156
|
/*
|