biz9-logic 4.9.91 → 4.9.93
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 -10
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -1103,9 +1103,6 @@ class Event_Logic {
|
|
|
1103
1103
|
};
|
|
1104
1104
|
}
|
|
1105
1105
|
class Field_Logic {
|
|
1106
|
-
static get_field_value = (item_data_type,item_id,value_type,value_id,value,value_list) => {
|
|
1107
|
-
return {item_data_type:item_data_type,item_id:item_id,value_type:value_type,value_id:value_id,value:value,value_list:value_list};
|
|
1108
|
-
};
|
|
1109
1106
|
static get_item_field_value_type_list = () => {
|
|
1110
1107
|
return [
|
|
1111
1108
|
{value:'text',label:'Text'},
|
|
@@ -1114,11 +1111,14 @@ class Field_Logic {
|
|
|
1114
1111
|
{value:'list',label:'List'},
|
|
1115
1112
|
];
|
|
1116
1113
|
};
|
|
1117
|
-
static get_field_value_value = (value_type,item,value_id
|
|
1118
|
-
|
|
1114
|
+
static get_field_value_value = (value_type,item,value_id) =>{
|
|
1115
|
+
if(value_type!=Type.FIELD_VALUE_LIST){
|
|
1116
|
+
return !Str.check_is_null(item[Field_Logic.get_field_value_title(value_type,value_id)]) ? item[Field_Logic.get_field_value_title(value_type,value_id)] : ""
|
|
1117
|
+
}else{
|
|
1118
|
+
return !Str.check_is_null(item[Field_Logic.get_field_value_title(value_type,value_id)]) ? item[Field_Logic.get_field_value_title(value_type,value_id)] : []
|
|
1119
|
+
}
|
|
1119
1120
|
};
|
|
1120
|
-
static get_field_value_title = (value_type,value_id
|
|
1121
|
-
let type_str = '';
|
|
1121
|
+
static get_field_value_title = (value_type,value_id) =>{
|
|
1122
1122
|
switch(value_type){
|
|
1123
1123
|
case Type.FIELD_VALUE_TEXT:
|
|
1124
1124
|
return 'text'+'_value_'+value_id;
|
|
@@ -1130,10 +1130,10 @@ class Field_Logic {
|
|
|
1130
1130
|
return 'image'+'_value_'+value_id;
|
|
1131
1131
|
break;
|
|
1132
1132
|
case Type.FIELD_VALUE_LIST:
|
|
1133
|
-
return 'list'+'_value_'+value_id
|
|
1133
|
+
return 'list'+'_value_'+value_id;
|
|
1134
1134
|
break;
|
|
1135
1135
|
default:
|
|
1136
|
-
return
|
|
1136
|
+
return 'text'+'_value_'+value_id;
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
1139
|
static get_test_cost(){
|
|
@@ -1345,7 +1345,6 @@ class Field_Logic {
|
|
|
1345
1345
|
|
|
1346
1346
|
return option;
|
|
1347
1347
|
}
|
|
1348
|
-
|
|
1349
1348
|
}
|
|
1350
1349
|
class DataType {
|
|
1351
1350
|
static APP='app_biz';
|