biz9-logic 4.8.223 → 4.8.226
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 +10 -3
- package/package.json +1 -1
- package/test.js +3 -2
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -190,7 +190,15 @@ class Page_Logic {
|
|
|
190
190
|
item_list.push(Page_Logic.get_test( "Page " +parseInt(a+1)? !option.get_blank : "",option));
|
|
191
191
|
}
|
|
192
192
|
return item_list;
|
|
193
|
-
}
|
|
193
|
+
};
|
|
194
|
+
static get_section_type_list = () => {
|
|
195
|
+
return [
|
|
196
|
+
{value:'text',label:'Text'},
|
|
197
|
+
{value:'note',label:'Note'},
|
|
198
|
+
{value:'photo',label:'Photo'},
|
|
199
|
+
{value:'list',label:'List'},
|
|
200
|
+
];
|
|
201
|
+
};
|
|
194
202
|
static get_section_property = (type,section_id,value_id,is_title) =>{
|
|
195
203
|
//page['section_1_value_1_type'] -- / text,note,photo,list
|
|
196
204
|
//page['section_1_value_1_text_value']
|
|
@@ -225,7 +233,7 @@ class Page_Logic {
|
|
|
225
233
|
//page['section_1_value_1_list_value_2']
|
|
226
234
|
//page['section_1_value_1_list_field_3']
|
|
227
235
|
//page['section_1_value_1_list_value_3']
|
|
228
|
-
//
|
|
236
|
+
//section_1_value_2_list_field_value_3
|
|
229
237
|
let type_str = '';
|
|
230
238
|
switch(type){
|
|
231
239
|
case 'field':
|
|
@@ -235,7 +243,6 @@ class Page_Logic {
|
|
|
235
243
|
type_str = 'value';
|
|
236
244
|
break;
|
|
237
245
|
};
|
|
238
|
-
|
|
239
246
|
return 'section_'+section_id + '_value_'+value_id + "_list_" + type_str +"_" +row_id;
|
|
240
247
|
}
|
|
241
248
|
}
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -32,9 +32,10 @@ describe("connect", () => {
|
|
|
32
32
|
|
|
33
33
|
function(call) {
|
|
34
34
|
console.log('PAGE-SECTION-START');
|
|
35
|
+
console.log(Page_Logic.get_page_section_type_list());
|
|
35
36
|
//console.log(Page_Logic.get_section_property('text',1,2,false));
|
|
36
|
-
console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_VALUE,1,2,3));
|
|
37
|
-
console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_FIELD,1,2,3));
|
|
37
|
+
//console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_VALUE,1,2,3));
|
|
38
|
+
//console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_FIELD,1,2,3));
|
|
38
39
|
console.log('PAGE-SECTION-END');
|
|
39
40
|
|
|
40
41
|
|