File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
uliweb_apijson/apijson/templates/vue Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 4
4
props : [
5
5
"table_name" ,
6
6
"config" ,
7
+ "custom_tcolumns_render_generator" ,
7
8
"hook_init" ,
8
9
"hook_ajax_params"
9
10
] ,
139
140
for ( var k in this . tcolumns ) {
140
141
var c = this . tcolumns [ k ]
141
142
if ( c . component != null ) {
142
- var g = this . tcolumns_render_generator [ c . component ]
143
+ var g = null
144
+ if ( this . custom_tcolumns_render_generator != null ) {
145
+ g = this . custom_tcolumns_render_generator [ c . component ]
146
+ }
147
+ if ( g == null ) {
148
+ g = this . tcolumns_render_generator [ c . component ]
149
+ }
143
150
if ( g != null ) {
144
151
c . render = g ( c . key )
145
152
}
397
404
for ( var k in this . add_items ) {
398
405
var d = this . add_items [ k ]
399
406
d . value = null
407
+ d . component = d . component || "input"
400
408
}
401
409
this . modal_add = true
402
410
} ,
453
461
this . config_table_fields = this . config . table_fields || null
454
462
this . config_viewedit_fields = this . config . viewedit_fields || null
455
463
this . config_add_fields = this . config . add_fields || null
456
- if ( this . config . add_fields != null ) {
464
+ if ( this . config_add_fields != null ) {
457
465
this . add_items = this . config_add_fields
458
466
}
459
467
if ( this . config . default_page_size != null ) {
462
470
this . config_delete_set_deleted = this . config . delete_set_deleted || false
463
471
this . config_deleted_field_name = this . config . deleted_field_name || "deleted"
464
472
}
473
+ //if not do this, the first notice will hide behind the navigation bar in uliweb apps
474
+ this . $Notice . config ( { top : 100 , duration : 8 } ) ;
465
475
if ( this . hook_init != null ) {
466
476
this . hook_init ( this )
467
477
}
You can’t perform that action at this time.
0 commit comments