作者 开飞机的舒克

后台优化

@@ -58,7 +58,21 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -58,7 +58,21 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
58 {field: 'radar.title', title: __('Radar.title'), operate: false}, 58 {field: 'radar.title', title: __('Radar.title'), operate: false},
59 {field: 'createtime', title: __('Createtime'), operate:false, addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, 59 {field: 'createtime', title: __('Createtime'), operate:false, addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
60 //{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, 60 //{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
61 - {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} 61 + {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate,
  62 + buttons: [
  63 + {
  64 + name: 'details',
  65 + text: __('学生信息'),
  66 + title: __('学生信息'),
  67 + classname: 'btn btn-xs btn-primary btn-dialog',
  68 + icon: 'fa fa-list',
  69 + url: 'study/details',
  70 + callback: function (data) {
  71 + Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
  72 + },
  73 + },
  74 + ],
  75 + formatter: Table.api.formatter.operate}
62 ] 76 ]
63 ] 77 ]
64 }); 78 });