biz9-logic 4.8.360 → 4.8.362
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 +19 -16
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -318,8 +318,6 @@ class Type {
|
|
|
318
318
|
case Type.USER_ROLE_MANAGER:
|
|
319
319
|
case Type.USER_ROLE_USER:
|
|
320
320
|
case Type.USER_ROLE_GUEST:
|
|
321
|
-
case DataType.SECTION:
|
|
322
|
-
case DataType.SUB_SECTION:
|
|
323
321
|
case DataType.APP:
|
|
324
322
|
case DataType.BLANK:
|
|
325
323
|
case DataType.BLOG_POST:
|
|
@@ -348,6 +346,7 @@ class Type {
|
|
|
348
346
|
case DataType.SECURITY:
|
|
349
347
|
case DataType.STAT:
|
|
350
348
|
case DataType.TEMPLATE:
|
|
349
|
+
case DataType.TYPE:
|
|
351
350
|
case DataType.USER:
|
|
352
351
|
case DataType.VIDEO:
|
|
353
352
|
r_type = String(Str.get_title(type.replaceAll('_',' ').replaceAll('dt','').replace('biz',''))).trim();
|
|
@@ -925,7 +924,7 @@ class Field_Logic {
|
|
|
925
924
|
title:title,
|
|
926
925
|
setting_visible:"1",
|
|
927
926
|
title_url:Str.get_title_url(title),
|
|
928
|
-
|
|
927
|
+
description:"Description "+String(Num.get_id()),
|
|
929
928
|
note:Field_Logic.get_test_note(),
|
|
930
929
|
id:0,
|
|
931
930
|
date_create:new moment().toISOString(),
|
|
@@ -957,6 +956,17 @@ class Field_Logic {
|
|
|
957
956
|
}
|
|
958
957
|
return item;
|
|
959
958
|
}
|
|
959
|
+
static get_field_type_list = () =>{
|
|
960
|
+
return [
|
|
961
|
+
{ title:Type.get_title(DataType.BLOG_POST),type:DataType.BLOG_POST},
|
|
962
|
+
{ title:Type.get_title(DataType.CATEGORY),type:DataType.CATEGORY},
|
|
963
|
+
{ title:Type.get_title(DataType.EVENT),type:DataType.EVENT},
|
|
964
|
+
{ title:Type.get_title(DataType.GALLERY),type:DataType.GALLERY},
|
|
965
|
+
{ title:Type.get_title(DataType.USER),type:DataType.USER},
|
|
966
|
+
{ title:Type.get_title(DataType.PRODUCT),type:DataType.PRODUCT},
|
|
967
|
+
{ title:Type.get_title(DataType.SERVICE),type:DataType.SERVICE}
|
|
968
|
+
]
|
|
969
|
+
};
|
|
960
970
|
static get_value_list(item,option){
|
|
961
971
|
for(let b=0;b<option.value_count;b++){
|
|
962
972
|
if(option.get_blank == false){
|
|
@@ -1116,13 +1126,13 @@ class Field_Logic {
|
|
|
1116
1126
|
}
|
|
1117
1127
|
class DataType {
|
|
1118
1128
|
|
|
1119
|
-
|
|
1120
|
-
static SUB_SECTION='sub_section';
|
|
1121
|
-
|
|
1122
|
-
static APP='app_biz';
|
|
1129
|
+
static APP='app_biz';
|
|
1123
1130
|
static BLANK='blank_biz';
|
|
1124
1131
|
static BLOG_POST='blog_post_biz';
|
|
1125
1132
|
static CART_ITEM="cart_item_biz";
|
|
1133
|
+
static CART="cart_biz";
|
|
1134
|
+
static CART_ITEM="cart_item_biz";
|
|
1135
|
+
static CART_SUB_ITEM="cart_sub_item_biz";
|
|
1126
1136
|
static CATEGORY='category_biz';
|
|
1127
1137
|
static CUSTOM_FIELD='custom_field_biz';
|
|
1128
1138
|
static CONTENT='content_biz';
|
|
@@ -1130,20 +1140,13 @@ class DataType {
|
|
|
1130
1140
|
static FAQ='faq_biz';
|
|
1131
1141
|
static FAVORITE='favorite_biz';
|
|
1132
1142
|
static GALLERY='gallery_biz';
|
|
1133
|
-
static
|
|
1143
|
+
static IMAGE='image_biz';
|
|
1134
1144
|
static ITEM='item_biz';
|
|
1135
|
-
|
|
1136
|
-
static CART="cart_biz";
|
|
1137
|
-
static CART_ITEM="cart_item_biz";
|
|
1138
|
-
static CART_SUB_ITEM="cart_sub_item_biz";
|
|
1139
|
-
|
|
1140
1145
|
static ORDER="order_biz";
|
|
1141
1146
|
static ORDER_ITEM="order_item_biz";
|
|
1142
1147
|
static ORDER_SUB_ITEM="order_sub_item_biz";
|
|
1143
1148
|
static ORDER_PAYMENT="order_payment_biz";
|
|
1144
|
-
|
|
1145
1149
|
static PRODUCT='product_biz';
|
|
1146
|
-
static IMAGE='image_biz';
|
|
1147
1150
|
static PAGE='page_biz';
|
|
1148
1151
|
static REVIEW='review_biz';
|
|
1149
1152
|
static SERVICE='service_biz';
|
|
@@ -1521,7 +1524,7 @@ class Sub_Item_Logic {
|
|
|
1521
1524
|
parent_data_type:parent_item.data_type?parent_item.data_type:DataType.BLANK,
|
|
1522
1525
|
title:item_title,
|
|
1523
1526
|
title_url:Str.get_title_url(item_title),
|
|
1524
|
-
|
|
1527
|
+
description:"Description "+String(Num.get_id()),
|
|
1525
1528
|
note:Field_Logic.get_test_note()
|
|
1526
1529
|
}
|
|
1527
1530
|
);
|