|
@@ -69,7 +69,40 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'emergency', title: __('Emergency'), operate: 'LIKE'},
|
|
|
{field: 'is_first', title: __('Is_first'), searchList: {"0":__('Is_first 0'),"1":__('Is_first 1')}, formatter: Table.api.formatter.normal},
|
|
|
|
|
|
- {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
+ {field: 'operate', title: __('Operate'), table: table,
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ name:'trylessonorder',
|
|
|
+ text:'试课订单',
|
|
|
+ title:'试课订单',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog',
|
|
|
+ url:'trylessonorder/index/user_id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ extend:'data-area=["80%","80%"]'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name:'lessonorder',
|
|
|
+ text:'预约订单',
|
|
|
+ title:'预约订单',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog',
|
|
|
+ url:'lessonorder/index/user_id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ extend:'data-area=["80%","80%"]'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name:'packageorder',
|
|
|
+ text:'配套订单',
|
|
|
+ title:'配套订单',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog',
|
|
|
+ url:'packageorder/index/user_id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ extend:'data-area=["80%","80%"]'
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
|
|
});
|