biz9-logic 4.0.35 → 4.0.36
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 +14 -11
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -37,7 +37,7 @@ class Template{
|
|
|
37
37
|
class Page{
|
|
38
38
|
static get_test = (option) =>{
|
|
39
39
|
if(!option){
|
|
40
|
-
option = {item_count:9,page_count:9,get_value:false,get_item:false};
|
|
40
|
+
option = {item_count:9,page_count:9,get_value:false,get_item:false,value_count:20};
|
|
41
41
|
}
|
|
42
42
|
if(!option.item_count){
|
|
43
43
|
option.item_count=10;
|
|
@@ -59,7 +59,7 @@ class Page{
|
|
|
59
59
|
class Product{
|
|
60
60
|
static get_test = (option) =>{
|
|
61
61
|
if(!option){
|
|
62
|
-
option = {item_count:9,product_count:9,get_value:false,get_item:false};
|
|
62
|
+
option = {item_count:9,product_count:9,get_value:false,get_item:false,value_count:20};
|
|
63
63
|
}
|
|
64
64
|
let product = DataItem.get_new_full_item(
|
|
65
65
|
DataItem.get_new(DataType.PRODUCT,Number.get_id()),
|
|
@@ -101,7 +101,7 @@ class Product{
|
|
|
101
101
|
for(let a=0;a<category_list.length;a++){
|
|
102
102
|
for(let b=0;b<product_count;b++){
|
|
103
103
|
item_count++;
|
|
104
|
-
let product = Product.get_test({item_count:0,product_count:product_count,get_value:false,get_item:false});
|
|
104
|
+
let product = Product.get_test({item_count:0,product_count:product_count,get_value:false,get_item:false,value_count:20});
|
|
105
105
|
product.category = category_list[Number.get_id(category_list.length-1)].title;
|
|
106
106
|
product_list.push(product);
|
|
107
107
|
}
|
|
@@ -112,7 +112,7 @@ class Product{
|
|
|
112
112
|
class Service{
|
|
113
113
|
static get_test = (option) =>{
|
|
114
114
|
if(!option){
|
|
115
|
-
option = {item_count:10,get_value:false,get_item:false};
|
|
115
|
+
option = {item_count:10,get_value:false,get_item:false,value_count:20};
|
|
116
116
|
}
|
|
117
117
|
if(!option.item_count){
|
|
118
118
|
option.item_count=10;
|
|
@@ -178,7 +178,7 @@ class Service{
|
|
|
178
178
|
class Event{
|
|
179
179
|
static get_test = (option) =>{
|
|
180
180
|
if(!option){
|
|
181
|
-
option = {item_count:9,get_value:false,get_item:false};
|
|
181
|
+
option = {item_count:9,get_value:false,get_item:false,value_count:20};
|
|
182
182
|
}
|
|
183
183
|
if(!option.item_count){
|
|
184
184
|
option.item_count=10;
|
|
@@ -236,7 +236,7 @@ class Event{
|
|
|
236
236
|
for(let a=0;a<category_list.length;a++){
|
|
237
237
|
for(let b=0;b<event_count;b++){
|
|
238
238
|
item_count++;
|
|
239
|
-
let event = Event.get_test({item_count:0,event_count:event_count,get_value:false,get_item:false});
|
|
239
|
+
let event = Event.get_test({item_count:0,event_count:event_count,get_value:false,get_item:false,value_count:20});
|
|
240
240
|
event.category = category_list[Number.get_id(category_list.length-1)].title;
|
|
241
241
|
event_list.push(event);
|
|
242
242
|
}
|
|
@@ -250,7 +250,7 @@ class Field{
|
|
|
250
250
|
title="";
|
|
251
251
|
}
|
|
252
252
|
if(!option){
|
|
253
|
-
option={get_value:true};
|
|
253
|
+
option={get_value:true,value_count:20};
|
|
254
254
|
}
|
|
255
255
|
let item = {
|
|
256
256
|
date_create:new moment().toISOString(),
|
|
@@ -263,7 +263,10 @@ class Field{
|
|
|
263
263
|
note : "Note "+String(Number.get_id())
|
|
264
264
|
}
|
|
265
265
|
if(option.get_value){
|
|
266
|
-
|
|
266
|
+
if(!option.value_count){
|
|
267
|
+
option.value_count = 20;
|
|
268
|
+
}
|
|
269
|
+
for(let b = 1;b<parseInt(option.value_count);b++){
|
|
267
270
|
item['value_'+String(b)] = 'value ' + String(b);
|
|
268
271
|
}
|
|
269
272
|
}
|
|
@@ -396,7 +399,7 @@ class DataType {
|
|
|
396
399
|
class Blog_Post{
|
|
397
400
|
static get_test = (option) =>{
|
|
398
401
|
if(!option){
|
|
399
|
-
option = {item_count:10,get_value:false,get_item:false};
|
|
402
|
+
option = {item_count:10,get_value:false,get_item:false,value_count:20};
|
|
400
403
|
}
|
|
401
404
|
if(!option.item_count){
|
|
402
405
|
option.item_count=10;
|
|
@@ -419,7 +422,7 @@ class Blog_Post{
|
|
|
419
422
|
};
|
|
420
423
|
static get_test_list=(option)=>{
|
|
421
424
|
if(!option){
|
|
422
|
-
option = {blog_post_count:10,get_value:false,get_item:false};
|
|
425
|
+
option = {blog_post_count:10,get_value:false,get_item:false,value_count:20};
|
|
423
426
|
}
|
|
424
427
|
let item_list=[];
|
|
425
428
|
for(let a=0;a<option.blog_post_count;a++){
|
|
@@ -447,7 +450,7 @@ class Blog_Post{
|
|
|
447
450
|
for(let a=0;a<category_list.length;a++){
|
|
448
451
|
for(let b=0;b<blog_post_count;b++){
|
|
449
452
|
item_count++;
|
|
450
|
-
let blog_post = Blog_Post.get_test({item_count:0,blog_post_count:blog_post_count,get_value:false,get_item:false});
|
|
453
|
+
let blog_post = Blog_Post.get_test({item_count:0,blog_post_count:blog_post_count,get_value:false,get_item:false,value_count:20});
|
|
451
454
|
blog_post.category = category_list[Number.get_id(category_list.length-1)].title;
|
|
452
455
|
blog_post_list.push(blog_post);
|
|
453
456
|
}
|