|
@@ -50,12 +50,27 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{
|
|
|
field: 'operate',
|
|
|
title: __('Operate'),
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ name:'show_question',
|
|
|
+ text:'查看试题',
|
|
|
+ title:'查看试题',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog btn-show_question',
|
|
|
+ url:'exam/question/index/cate_id/{ids}',
|
|
|
+ target:'_self',
|
|
|
+ },
|
|
|
+ ],
|
|
|
table: table,
|
|
|
events: Table.api.events.operate,
|
|
|
formatter: Table.api.formatter.operate
|
|
|
}
|
|
|
]
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ onLoadSuccess:function(){
|
|
|
+ // 这里就是数据渲染结束后的回调函数
|
|
|
+ $(".btn-show_question").data("area", ['90%','90%']);
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
// 为表格绑定事件
|