biz9-logic 4.0.18 → 4.0.20
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 +21 -2
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -43,7 +43,7 @@ class Page{
|
|
|
43
43
|
DataItem.get_new(DataType.PAGE,0),
|
|
44
44
|
Field.get_test(title));
|
|
45
45
|
|
|
46
|
-
for(let a=0;a<
|
|
46
|
+
for(let a=0;a<20;a++){
|
|
47
47
|
page=Sub_Item.get_test_bind_new_child(Number.get_id(),"Section "+a,page,page,page);
|
|
48
48
|
}
|
|
49
49
|
page = Sub_Item.get_test_bind_item_sub_item(page);
|
|
@@ -708,7 +708,8 @@ class Sub_Item{
|
|
|
708
708
|
DataItem.get_new(DataType.ITEM,id),
|
|
709
709
|
DataItem.get_new(parent_item.data_type,parent_item.id),
|
|
710
710
|
DataItem.get_new(top_item.data_type,top_item.id),
|
|
711
|
-
|
|
711
|
+
get_bind_test_field(title)
|
|
712
|
+
)
|
|
712
713
|
new_sub_item.title = title;
|
|
713
714
|
if(options){
|
|
714
715
|
for (const key in options) {
|
|
@@ -721,7 +722,25 @@ class Sub_Item{
|
|
|
721
722
|
item[Str.get_title_url(title)] = new_sub_item;
|
|
722
723
|
item.items.push(new_sub_item);
|
|
723
724
|
return item;
|
|
725
|
+
function get_bind_test_field(title){
|
|
726
|
+
let item = {
|
|
727
|
+
date_create:new moment().toISOString(),
|
|
728
|
+
date_save:new moment().toISOString(),
|
|
729
|
+
title:title,
|
|
730
|
+
setting_visible:"1",
|
|
731
|
+
photo_data:"/images/no_img.jpg",
|
|
732
|
+
title_url:Str.get_title_url(title),
|
|
733
|
+
sub_note : "Sub Note "+String(Number.get_id()),
|
|
734
|
+
note : "Note "+String(Number.get_id())
|
|
735
|
+
}
|
|
736
|
+
for(let b = 1;b<20;b++){
|
|
737
|
+
item['value_'+String(b)] = title+ ' value ' + String(b);
|
|
738
|
+
}
|
|
739
|
+
return item;
|
|
740
|
+
};
|
|
741
|
+
|
|
724
742
|
};
|
|
743
|
+
|
|
725
744
|
}
|
|
726
745
|
module.exports = {
|
|
727
746
|
BiZ_Url,
|